mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 13:52:23 +00:00
Fix #2838. Bug where invalid 3D entity was used for 2D coordinates.
This commit is contained in:
@@ -48,7 +48,7 @@ class Usecase:
|
|||||||
if self.file.schema == "IFC2X3":
|
if self.file.schema == "IFC2X3":
|
||||||
curve = self.file.createIfcPolyline([self.file.createIfcCartesianPoint(p) for p in points])
|
curve = self.file.createIfcPolyline([self.file.createIfcCartesianPoint(p) for p in points])
|
||||||
else:
|
else:
|
||||||
curve = self.file.createIfcIndexedPolyCurve(self.file.createIfcCartesianPointList3D(points))
|
curve = self.file.createIfcIndexedPolyCurve(self.file.createIfcCartesianPointList2D(points))
|
||||||
if self.settings["x_angle"]:
|
if self.settings["x_angle"]:
|
||||||
extrusion_direction = self.file.createIfcDirection(
|
extrusion_direction = self.file.createIfcDirection(
|
||||||
(0.0, sin(self.settings["x_angle"]), cos(self.settings["x_angle"]))
|
(0.0, sin(self.settings["x_angle"]), cos(self.settings["x_angle"]))
|
||||||
|
|||||||
Reference in New Issue
Block a user