From 0f825b705011c2840bc5803142ad0462e9584fda Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 3 May 2017 15:10:20 +0200 Subject: [PATCH] Fix missing import --- src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py | 2 ++ 1 file changed, 2 insertions(+) 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()