From cdee5532b60ad59033d6fcada1e9851bcd8a3bd6 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Thu, 9 Mar 2023 21:01:54 +1100 Subject: [PATCH] Fix #2838. Bug where invalid 3D entity was used for 2D coordinates. --- .../ifcopenshell/api/geometry/add_slab_representation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_slab_representation.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_slab_representation.py index 800e3ff4fe..251c81ad7a 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_slab_representation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_slab_representation.py @@ -48,7 +48,7 @@ class Usecase: if self.file.schema == "IFC2X3": curve = self.file.createIfcPolyline([self.file.createIfcCartesianPoint(p) for p in points]) else: - curve = self.file.createIfcIndexedPolyCurve(self.file.createIfcCartesianPointList3D(points)) + curve = self.file.createIfcIndexedPolyCurve(self.file.createIfcCartesianPointList2D(points)) if self.settings["x_angle"]: extrusion_direction = self.file.createIfcDirection( (0.0, sin(self.settings["x_angle"]), cos(self.settings["x_angle"]))