Arch: IFC export, fix because one malformed geometry can break the whole export

This commit is contained in:
Bernd Hahnebach
2023-02-17 10:51:58 +01:00
committed by GitHub
parent b8a7ba0c2e
commit acb78e8e88

View File

@@ -2237,6 +2237,11 @@ def getRepresentation(
loops = []
verts = [v.Point for v in fcface.OuterWire.OrderedVertexes]
c = fcface.CenterOfMass
if len(verts) < 1:
print("Warning: OuterWire returned no ordered Vertexes in ", obj.Label)
# Part.show(fcface)
# Part.show(fcsolid)
continue
v1 = verts[0].sub(c)
v2 = verts[1].sub(c)
try: