From 64d98f129521102fab02073e7edb8d4c356d279e Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 1 May 2023 20:16:39 +0200 Subject: [PATCH] #2676 --- src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py b/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py index 2d5be63210..3f2446fddd 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py @@ -216,6 +216,11 @@ def get_bounding_box_center(bbox): def serialize_shape(shape): shapes = BRepTools.BRepTools_ShapeSet() + + # @todo provide method to get ifcopenshell's built-in occt version to + # see whether this is necessary + shapes.SetFormatNb(2) + shapes.Add(shape) return shapes.WriteToString()