building.py
building.py copied to clipboard
triangle winding incorrect
the top face of a solid has the same winding as the bottom face
# Bottomface
count = 0
face = []
for x in range(numPoints):
face.append(count)
count = count + 1
faces.append(face)
# Topface
# TODO: correct winding
count = 0
face = []
for x in range(numPoints):
face.append(count+numPoints)
count = count + 1
faces.append(face)