mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Nesting added to util.get_decomposition function
This commit is contained in:
@@ -641,6 +641,9 @@ def get_decomposition(element):
|
||||
for rel in getattr(element, "HasFillings", []):
|
||||
queue.append(rel.RelatedBuildingElement)
|
||||
results.append(rel.RelatedBuildingElement)
|
||||
for rel in getattr(element, "IsNestedBy", []):
|
||||
queue.extend(rel.RelatedObjects)
|
||||
results.extend(rel.RelatedObjects)
|
||||
return results
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user