From 7b28bc9c682755effa884c157d42236cce0c24b5 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 18 Sep 2023 11:30:36 +0500 Subject: [PATCH] fixed bug creating transition shapes it was accidentally assigning extrusion vector instead of an offset --- src/ifcopenshell-python/ifcopenshell/util/shape_builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/shape_builder.py b/src/ifcopenshell-python/ifcopenshell/util/shape_builder.py index 43822dfc6c..6941e37b2f 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/shape_builder.py +++ b/src/ifcopenshell-python/ifcopenshell/util/shape_builder.py @@ -1075,7 +1075,7 @@ class ShapeBuilder: transition_items.append(self.extrude_face_set(first_profile_points, start_length, end_cap=False)) transition_items.append( - self.extrude_face_set(second_profile_points, end_length, end_extrusion_offset, start_cap=False) + self.extrude_face_set(second_profile_points, end_length, offset=end_extrusion_offset, start_cap=False) ) first_profile_points = [p + start_offset for p in first_profile_points] @@ -1105,7 +1105,7 @@ class ShapeBuilder: transition_items.append(self.extrude_face_set(start_points, start_length, end_cap=False)) transition_items.append( - self.extrude_face_set(end_points, end_length, end_extrusion_offset, start_cap=False) + self.extrude_face_set(end_points, end_length, offset=end_extrusion_offset, start_cap=False) ) # offset verts