3BMLabs / building.py

Python Library for creating buildings, building systems, objects, and exporting to various programs like Blender, Revit, IFC, Struct4U, DXF & Speckle.
GNU General Public License v2.0
17 stars 3 forks source link

triangle winding incorrect #16

Open JohnHeikens opened 1 month ago

JohnHeikens commented 1 month ago

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

JohnHeikens commented 1 month ago
    # 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)