mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 02:31:09 +00:00
Fix error creating polylines in ifc2x3 after 9fbcb39
By accident it was providing numpy array instead of ifc points entities.
This commit is contained in:
@@ -282,7 +282,7 @@ class ShapeBuilder:
|
|||||||
ifc_points = [self.file.create_entity("IfcCartesianPoint", p) for p in points.tolist()]
|
ifc_points = [self.file.create_entity("IfcCartesianPoint", p) for p in points.tolist()]
|
||||||
if closed:
|
if closed:
|
||||||
ifc_points.append(ifc_points[0])
|
ifc_points.append(ifc_points[0])
|
||||||
ifc_curve = self.file.createIfcPolyline(Points=points)
|
ifc_curve = self.file.createIfcPolyline(Points=ifc_points)
|
||||||
return ifc_curve
|
return ifc_curve
|
||||||
|
|
||||||
dimensions = len(points[0])
|
dimensions = len(points[0])
|
||||||
|
|||||||
Reference in New Issue
Block a user