diff --git a/factory.py b/factory.py index dbd24c9..d6095c2 100644 --- a/factory.py +++ b/factory.py @@ -54,14 +54,14 @@ def constructCone(z1, z2, radius1, radius2, nSegments, capBottom=True, capTop=Tr # for i in range(nSegments): # i2=(i+1)%nSegments # mesh.faces.append(Face([verticesBottom[i2],verticesBottom[i],centerBottom])) - mesh.faces.append(Face(verticesBottom)) + mesh.faces.append(Face(list(reversed(verticesBottom)))) if capTop: # centerTop=Vertex(0,0,z2) # mesh.vertices.append(centerTop) # for i in range(nSegments): # i2=(i+1)%nSegments # mesh.faces.append(Face([verticesTop[i],verticesTop[i2],centerTop])) - mesh.faces.append(Face(list(reversed(verticesTop)))) + mesh.faces.append(Face(verticesTop)) return mesh def constructBox(x1,y1,z1,x2,y2,z2):