From de873461e142c97d3ee5f08ba95bbbc0a68718b3 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 18 May 2021 16:41:55 +1000 Subject: [PATCH] Fix bug where IFC2X3 files did not correctly generate 2D representations --- .../ifcopenshell/api/geometry/add_representation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py index 00ca5ab0dd..2c439ba2e9 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py @@ -252,7 +252,7 @@ class Usecase: def create_curves_from_mesh_ifc2x3(self, is_2d=False): curves = [] 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 ] coord_list = [p.Coordinates for p in points]