From d79b912e0ed8679aec72c3a470446a658a5e6c34 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 13 Sep 2023 16:30:01 +0500 Subject: [PATCH] bends - consider profile dimensions searching for compatible fitting So basically now it won't reuse a bend fitting created for the same profile but with different dimension. --- src/blenderbim/blenderbim/bim/module/model/mep.py | 1 + src/ifcopenshell-python/ifcopenshell/util/shape_builder.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/blenderbim/blenderbim/bim/module/model/mep.py b/src/blenderbim/blenderbim/bim/module/model/mep.py index 540cbf0e43..7eceb0d574 100644 --- a/src/blenderbim/blenderbim/bim/module/model/mep.py +++ b/src/blenderbim/blenderbim/bim/module/model/mep.py @@ -1121,6 +1121,7 @@ class MEPAddBend(bpy.types.Operator, tool.Ifc.Operator): "end_length": self.end_length / si_conversion, "radius": self.radius / si_conversion, "angle": degrees(angle), + "main_profile_dimension": profile_dim[lateral_axis] / si_conversion, } # find the compatible fitting type fitting_data = MEPGenerator().get_compatible_fitting_type( diff --git a/src/ifcopenshell-python/ifcopenshell/util/shape_builder.py b/src/ifcopenshell-python/ifcopenshell/util/shape_builder.py index def232d795..ccedb3f107 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/shape_builder.py +++ b/src/ifcopenshell-python/ifcopenshell/util/shape_builder.py @@ -1454,5 +1454,6 @@ class ShapeBuilder: "lateral_axis": lateral_axis, "lateral_sign": lateral_sign, "flip_z_axis": flip_z_axis, + "main_profile_dimension": profile_dim[lateral_axis], } return rep, bend_data