mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-24 10:32:03 +05:00
also different BRepTools::Write on occ lower than 7.6
This commit is contained in:
parent
b05c32675b
commit
1db8ea3500
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user