diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index 795a7947..553a835f 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -76,6 +76,7 @@ #include #include #include +#include #include #include #include @@ -775,6 +776,14 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) return py::make_tuple( ng2occ(box.PMin()), ng2occ(box.PMax()) ); }, "returns bounding box (pmin, pmax)") + .def("LimitTolerance", [](TopoDS_Shape& self, double tmin, + double tmax, TopAbs_ShapeEnum type) + { + ShapeFix_ShapeTolerance fix; + fix.LimitTolerance(self, tmin, tmax, type); + }, py::arg("tmin"), py::arg("tmax")=0., py::arg("type")=TopAbs_SHAPE, + "limit tolerance of shape to range [tmin, tmax]") + .def("Properties", [] (const TopoDS_Shape & shape) { auto props = Properties(shape);