mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Don't include IfcSpace since there can be _lots_ in a large file, and ifc spaces actually have geometry
This commit is contained in:
@@ -31,7 +31,7 @@ class IfcImporter():
|
||||
bpy.context.scene.collection.children.link(self.project['blender'])
|
||||
|
||||
def create_spatial_hierarchy(self):
|
||||
elements = self.file.by_type('IfcSpatialStructureElement')
|
||||
elements = self.file.by_type('IfcSite') + self.file.by_type('IfcBuilding') + self.file.by_type('IfcBuildingStorey')
|
||||
while len(self.spatial_structure_elements) < len(elements):
|
||||
for element in elements:
|
||||
parent = element.Decomposes[0].RelatingObject
|
||||
|
||||
Reference in New Issue
Block a user