bends - adjusting compatible fitting rotation to match the segments

Demo - https://imgur.com/a/cYdWy9X (note that no bend types created in the process - it's just adjusting the type created for the first two segments).
This commit is contained in:
Andrej730
2023-09-13 16:16:56 +05:00
parent 58199ef7c9
commit 7ec8f8b03e
2 changed files with 39 additions and 4 deletions
@@ -1446,5 +1446,13 @@ class ShapeBuilder:
body = ifcopenshell.util.representation.get_context(self.file, "Model", "Body", "MODEL_VIEW")
rep = self.get_representation(body, rep_items)
bend_data = {"start_length": start_length, "end_length": end_length, "radius": radius, "angle": degrees(theta)}
bend_data = {
"start_length": start_length,
"end_length": end_length,
"radius": radius,
"angle": degrees(theta),
"lateral_axis": lateral_axis,
"lateral_sign": lateral_sign,
"flip_z_axis": flip_z_axis,
}
return rep, bend_data