mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
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.
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user