Skip to content

Commit cb551e1

Browse files
committed
Fix issue with creating walls from slabs in IFC2X3 files. Related to #6963
1 parent 915c389 commit cb551e1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/bonsai/bonsai/bim/module/model

src/bonsai/bonsai/bim/module/model/wall.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,8 @@ def derive_from_slab(self):
891891
elevation = self.container_obj.location.z
892892
representation = ifcopenshell.util.representation.get_representation(slab, "Model", "Body", "MODEL_VIEW")
893893
extrusion = tool.Model.get_extrusion(representation)
894-
polyline_points = extrusion.SweptArea.OuterCurve.Points.CoordList
894+
builder = ifcopenshell.util.shape_builder.ShapeBuilder(tool.Ifc.get())
895+
polyline_points = builder.get_polyline_coords(extrusion.SweptArea.OuterCurve)
895896
polyline_points = [[(v * self.unit_scale) for v in p] for p in polyline_points]
896897
polyline_points = [slab_obj.matrix_world @ Vector((p[0], p[1], elevation)) for p in polyline_points]
897898
if not tool.Cad.is_counter_clockwise_order(polyline_points[0], polyline_points[1], polyline_points[2]):

0 commit comments

Comments
 (0)