mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 13:04:49 +00:00
IfcImporter small optimization
This commit is contained in:
@@ -299,6 +299,7 @@ class IfcImporter:
|
|||||||
if self.ifc_import_settings.should_setup_viewport_camera:
|
if self.ifc_import_settings.should_setup_viewport_camera:
|
||||||
self.setup_viewport_camera()
|
self.setup_viewport_camera()
|
||||||
self.setup_arrays()
|
self.setup_arrays()
|
||||||
|
self.profile_code("Setup arrays")
|
||||||
self.update_progress(100)
|
self.update_progress(100)
|
||||||
bpy.context.window_manager.progress_end()
|
bpy.context.window_manager.progress_end()
|
||||||
|
|
||||||
@@ -602,6 +603,9 @@ class IfcImporter:
|
|||||||
return products
|
return products
|
||||||
|
|
||||||
def predict_dense_mesh(self):
|
def predict_dense_mesh(self):
|
||||||
|
if self.ifc_import_settings.should_use_native_meshes:
|
||||||
|
return
|
||||||
|
|
||||||
threshold = 10000 # Just from experience.
|
threshold = 10000 # Just from experience.
|
||||||
|
|
||||||
faces = [len(e.CfsFaces) for e in self.file.by_type("IfcClosedShell")]
|
faces = [len(e.CfsFaces) for e in self.file.by_type("IfcClosedShell")]
|
||||||
|
|||||||
Reference in New Issue
Block a user