mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 10:16:53 +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", []):
|
for rel in getattr(element, "HasFillings", []):
|
||||||
queue.append(rel.RelatedBuildingElement)
|
queue.append(rel.RelatedBuildingElement)
|
||||||
results.append(rel.RelatedBuildingElement)
|
results.append(rel.RelatedBuildingElement)
|
||||||
|
for rel in getattr(element, "IsNestedBy", []):
|
||||||
|
queue.extend(rel.RelatedObjects)
|
||||||
|
results.extend(rel.RelatedObjects)
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user