fix generation of mesh from cone