diff --git a/src/speckleifc/ifc_geometry_processing.py b/src/speckleifc/ifc_geometry_processing.py index 8a564b1..d5e5050 100644 --- a/src/speckleifc/ifc_geometry_processing.py +++ b/src/speckleifc/ifc_geometry_processing.py @@ -51,4 +51,10 @@ def open_ifc(file_path: str) -> file: def create_geometry_iterator(ifc_file: file | sqlite) -> iterator: - return iterator(_create_iterator_settings(), ifc_file, multiprocessing.cpu_count()) + GEOMETRY_LIBRARY = "hybrid-opencascade-cgal" # First OCC then fallback to CGAL + return iterator( + _create_iterator_settings(), + ifc_file, + multiprocessing.cpu_count(), + geometry_library=GEOMETRY_LIBRARY, # type: ignore + )