mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +00:00
Fix bug where IFC2X3 files did not correctly generate 2D representations
This commit is contained in:
@@ -252,7 +252,7 @@ class Usecase:
|
|||||||
def create_curves_from_mesh_ifc2x3(self, is_2d=False):
|
def create_curves_from_mesh_ifc2x3(self, is_2d=False):
|
||||||
curves = []
|
curves = []
|
||||||
points = [
|
points = [
|
||||||
self.create_cartesian_point(v.co.x, v.co.y, v.co.z if is_2d else None)
|
self.create_cartesian_point(v.co.x, v.co.y, v.co.z if not is_2d else None)
|
||||||
for v in self.settings["geometry"].vertices
|
for v in self.settings["geometry"].vertices
|
||||||
]
|
]
|
||||||
coord_list = [p.Coordinates for p in points]
|
coord_list = [p.Coordinates for p in points]
|
||||||
|
|||||||
Reference in New Issue
Block a user