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:
Bruno Postle
2025-03-22 09:01:54 +00:00
committed by GitHub
parent 775106d0a0
commit 5830573cda
3 changed files with 60 additions and 0 deletions
+4
View File
@@ -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()