faces in DXF polyfacemesh objects can have three or four sides (#1414)

This commit is contained in:
Bruno Postle
2021-04-06 23:28:11 +01:00
committed by GitHub
parent 23be1a6939
commit de37aeb515
+4 -1
View File
@@ -1,3 +1,6 @@
import ifcopenshell
import ezdxf
class Dxf2Ifc:
def execute(self):
self.create_ifc_file()
@@ -14,7 +17,7 @@ class Dxf2Ifc:
[
self.file.createIfcFaceOuterBound(
self.file.createIfcPolyLoop(
[self.file.createIfcCartesianPoint((v.dxf.location)) for v in face[0:3]]
[self.file.createIfcCartesianPoint((face[index].dxf.location)) for index in range(len(face) -1)]
),
True,
)