mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
Create transform orientation slots (#6215)
Setting the default container switches to an appropriate orientation slot if the orientation of this container isn't global. eg. if a building is rotated, selecting to work in a storey will set the orientation to the building orientation. Closes #6128
This commit is contained in:
@@ -121,6 +121,10 @@ def import_spatial_decomposition(spatial: tool.Spatial) -> None:
|
||||
spatial.import_spatial_decomposition()
|
||||
|
||||
|
||||
def set_orientation_slot(spatial: tool.Spatial, container: ifcopenshell.entity_instance) -> None:
|
||||
spatial.create_orientation_slot(container)
|
||||
|
||||
|
||||
def contract_container(spatial: tool.Spatial, container: ifcopenshell.entity_instance) -> None:
|
||||
spatial.contract_container(container)
|
||||
spatial.import_spatial_decomposition()
|
||||
|
||||
Reference in New Issue
Block a user