From c2119bf32df26359f7bd4bc5594233f25df3faf8 Mon Sep 17 00:00:00 2001 From: Julius Zimmermann Date: Thu, 20 Jul 2023 16:54:10 +0200 Subject: [PATCH] export BREP --- 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 45a5098f..9468a148 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -787,6 +787,10 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) { step_utils::WriteSTEP(shape, filename); } , py::arg("filename"), "export shape in STEP - format") + .def("Write", [](const TopoDS_Shape & shape, 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())