mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
faces in DXF polyfacemesh objects can have three or four sides (#1414)
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user