Skip to content

Commit

Permalink
reverse bottom cap
Browse files Browse the repository at this point in the history
  • Loading branch information
worbit committed Feb 26, 2020
1 parent 2fc0047 commit a6840da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a6840da

Please sign in to comment.