mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Fix #4090. Bug where profile set generator didn't accommodate optional axes.
This commit is contained in:
@@ -456,7 +456,9 @@ class DumbProfileJoiner:
|
|||||||
if not extrusion:
|
if not extrusion:
|
||||||
return None, None
|
return None, None
|
||||||
position = extrusion.Position
|
position = extrusion.Position
|
||||||
return (position.Axis.DirectionRatios, position.RefDirection.DirectionRatios)
|
if position.Axis:
|
||||||
|
return (position.Axis.DirectionRatios, position.RefDirection.DirectionRatios)
|
||||||
|
return ((0.0, 0.0, 1.0), (1.0, 0.0, 0.0))
|
||||||
|
|
||||||
old_body = ifcopenshell.util.representation.get_representation(element, "Model", "Body", "MODEL_VIEW")
|
old_body = ifcopenshell.util.representation.get_representation(element, "Model", "Body", "MODEL_VIEW")
|
||||||
new_body = ifcopenshell.api.run(
|
new_body = ifcopenshell.api.run(
|
||||||
|
|||||||
Reference in New Issue
Block a user