mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-07 12:56:26 +00:00
Merge branch 'feature/extract-openings' of https://github.com/iospectar/IfcOpenShell into iospectar-feature/extract-openings
# Conflicts: # src/ifcpatch/recipes/ExtractElements.py
This commit is contained in:
@@ -30,6 +30,9 @@ class Patcher:
|
|||||||
new_spatial_element = self.new.add(spatial_element)
|
new_spatial_element = self.new.add(spatial_element)
|
||||||
self.contained_ins.setdefault(spatial_element.GlobalId, set()).add(new_element)
|
self.contained_ins.setdefault(spatial_element.GlobalId, set()).add(new_element)
|
||||||
self.add_spatial_tree(spatial_element, new_spatial_element)
|
self.add_spatial_tree(spatial_element, new_spatial_element)
|
||||||
|
for opening in element.HasOpenings:
|
||||||
|
self.new.add(opening)
|
||||||
|
self.new.add(opening.RelatedOpeningElement)
|
||||||
|
|
||||||
def add_spatial_tree(self, spatial_element, new_spatial_element):
|
def add_spatial_tree(self, spatial_element, new_spatial_element):
|
||||||
for rel in spatial_element.Decomposes:
|
for rel in spatial_element.Decomposes:
|
||||||
|
|||||||
Reference in New Issue
Block a user