also different BRepTools::Write on occ lower than 7.6

This commit is contained in:
Christopher Lackner 2025-04-14 09:12:08 +02:00
parent b05c32675b
commit 1db8ea3500

View File

@ -851,8 +851,12 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
} }
else else
{ {
#if OCC_VERSION_MAJOR>=7 && OCC_VERSION_MINOR>=6
TopTools_FormatVersion v = version ? (TopTools_FormatVersion)(*version) : TopTools_FormatVersion_CURRENT; TopTools_FormatVersion v = version ? (TopTools_FormatVersion)(*version) : TopTools_FormatVersion_CURRENT;
BRepTools::Write(shape, filename.c_str(), withTriangles, withNormals, v); 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("filename"), py::arg("withTriangles")=true,
py::arg("withNormals")=false, py::arg("withNormals")=false,