From 9b9ad1fd8260a52421d537746475a3584cd7fb2e Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Tue, 2 Apr 2024 22:46:55 +0200 Subject: [PATCH] function to reset occ global shape properties --- libsrc/occ/python_occ_shapes.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index 09381e4c..fbeb8e5a 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -683,6 +683,10 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) .export_values() ; + m.def("ResetGlobalShapeProperties", [] () { + OCCGeometry::global_shape_properties.clear(); + OCCGeometry::global_shape_property_indices.Clear(); + }); py::class_ (m, "TopoDS_Shape") .def("__str__", [] (const TopoDS_Shape & shape)