building.py icon indicating copy to clipboard operation
building.py copied to clipboard

triangle winding incorrect

Open JohnHeikens opened this issue 1 year ago • 1 comments

the top face of a solid has the same winding as the bottom face

JohnHeikens avatar Jun 12 '24 15:06 JohnHeikens

    # 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)

JohnHeikens avatar Jun 12 '24 15:06 JohnHeikens