mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user