mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 15:07:38 +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:
|
class Dxf2Ifc:
|
||||||
def execute(self):
|
def execute(self):
|
||||||
self.create_ifc_file()
|
self.create_ifc_file()
|
||||||
@@ -14,7 +17,7 @@ class Dxf2Ifc:
|
|||||||
[
|
[
|
||||||
self.file.createIfcFaceOuterBound(
|
self.file.createIfcFaceOuterBound(
|
||||||
self.file.createIfcPolyLoop(
|
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,
|
True,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user