Fix #2838. Bug where invalid 3D entity was used for 2D coordinates.

This commit is contained in:
Dion Moult
2023-03-09 21:01:54 +11:00
parent 38019288de
commit cdee5532b6
@@ -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"]))