mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix bug where filtering did not work for indirectly spatially contained elements
This commit is contained in:
@@ -79,6 +79,9 @@ def get_material(element, should_skip_usage=False):
|
||||
|
||||
|
||||
def get_container(element):
|
||||
aggregate = get_aggregate(element)
|
||||
if aggregate:
|
||||
return get_container(aggregate)
|
||||
if hasattr(element, "ContainedInStructure") and element.ContainedInStructure:
|
||||
return element.ContainedInStructure[0].RelatingStructure
|
||||
|
||||
|
||||
Reference in New Issue
Block a user