diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index 3d3b21dd..fe84b65c 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -1018,6 +1019,12 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) .def("Identify", OCCGeometry::IdentifyFaces, "Identify faces", py::arg("from"), py::arg("to"), py::arg("name"), py::arg("type")=Identifications::PERIODIC) + + .def("Distance", [](const TopoDS_Shape& self, + const TopoDS_Shape& other) + { + return BRepExtrema_DistShapeShape(self, other).Value(); + }) .def("Triangulation", [](const TopoDS_Shape & shape) {