diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index 27a582fe..9c645a37 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -46,6 +46,7 @@ #include #include #include +#include #include #include #include @@ -806,7 +807,10 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) .def("WriteStep", [](const TopoDS_Shape & shape, string & filename) { step_utils::WriteSTEP(shape, filename); } , py::arg("filename"), "export shape in STEP - format") - + .def("WriteBrep", [](const TopoDS_Shape & shape, const string& filename) + { + BRepTools::Write(shape, filename.c_str()); + }, py::arg("filename"), "export shape in BREP - format") .def("bc", [](const TopoDS_Shape & shape, const string & name) { for (TopExp_Explorer e(shape, TopAbs_FACE); e.More(); e.Next())