From 09d5fafdf8fbdaa8d7a99593dddb1a6b0db4e3fb Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 15 Jul 2024 15:55:19 +0500 Subject: [PATCH] note on OCC imports --- src/ifcopenshell-python/ifcopenshell/geom/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/geom/__init__.py b/src/ifcopenshell-python/ifcopenshell/geom/__init__.py index 38021e325f..604e5b8e37 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/__init__.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/__init__.py @@ -29,6 +29,9 @@ geometry. See also :mod:`ifcopenshell.util.shape` for deriving quantities. def _has_occ(): + # NOTE: All pythonocc versions since 7.4.0 are using OCC.Core. + # Previous versions (pythonocc<=0.17.3) are using just OCC. + try: import OCC.Core.BRepTools