From a6840da4fc0c94c149b35d2b097ca290f366a739 Mon Sep 17 00:00:00 2001 From: worbit Date: Wed, 26 Feb 2020 16:00:39 +0100 Subject: [PATCH] reverse bottom cap --- factory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):