From 1db8ea35007bb6e50c568b8a52b1710c2dad0bc0 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Mon, 14 Apr 2025 09:12:08 +0200 Subject: [PATCH] also different BRepTools::Write on occ lower than 7.6 --- 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 00bd925c..c09620ba 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -851,8 +851,12 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) } else { +#if OCC_VERSION_MAJOR>=7 && OCC_VERSION_MINOR>=6 TopTools_FormatVersion v = version ? (TopTools_FormatVersion)(*version) : TopTools_FormatVersion_CURRENT; BRepTools::Write(shape, filename.c_str(), withTriangles, withNormals, v); +#else // OCC_VERSION_MAJOR>=7 && OCC_VERSION_MINOR>=6 + BRepTools::Write(shape, filename.c_str()); +#endif // OCC_VERSION_MAJOR>=7 && OCC_VERSION_MINOR>=6 } }, py::arg("filename"), py::arg("withTriangles")=true, py::arg("withNormals")=false,