mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 02:00:01 +00:00
Implement recursive contract / expand of the spatial tree
This commit is contained in:
@@ -125,13 +125,13 @@ def set_orientation_slot(spatial: tool.Spatial, container: ifcopenshell.entity_i
|
||||
spatial.create_orientation_slot(container)
|
||||
|
||||
|
||||
def contract_container(spatial: tool.Spatial, container: ifcopenshell.entity_instance) -> None:
|
||||
spatial.contract_container(container)
|
||||
def contract_container(spatial: tool.Spatial, container: ifcopenshell.entity_instance, is_recursive: bool) -> None:
|
||||
spatial.contract_container(container, is_recursive=is_recursive)
|
||||
spatial.import_spatial_decomposition()
|
||||
|
||||
|
||||
def expand_container(spatial: tool.Spatial, container: ifcopenshell.entity_instance) -> None:
|
||||
spatial.expand_container(container)
|
||||
def expand_container(spatial: tool.Spatial, container: ifcopenshell.entity_instance, is_recursive: bool) -> None:
|
||||
spatial.expand_container(container, is_recursive=is_recursive)
|
||||
spatial.import_spatial_decomposition()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user