diff --git a/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py b/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py index a510837bd0..6ac620e546 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py @@ -182,6 +182,8 @@ def get_bounding_box_center(bbox): def serialize_shape(shape): + import OCC.BRepTools + shapes = OCC.BRepTools.BRepTools_ShapeSet() shapes.Add(shape) return shapes.WriteToString()