From 1497404a4c2a1e1b870b619e46c8b9eae8cc868e Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Wed, 25 May 2022 16:29:34 +0200 Subject: [PATCH] Fix mesh saving/loading with OCC 7.6 --- libsrc/occ/occgeom.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsrc/occ/occgeom.cpp b/libsrc/occ/occgeom.cpp index 11fdae3e..1db78fa8 100644 --- a/libsrc/occ/occgeom.cpp +++ b/libsrc/occ/occgeom.cpp @@ -1589,7 +1589,11 @@ namespace netgen if(ar.Output()) { std::stringstream ss; +#if OCC_VERSION_HEX < 0x070600 BRepTools::Write(shape, ss); +#else + BRepTools::Write(shape, ss, false, false, TopTools_FormatVersion_VERSION_1); +#endif ar << ss.str(); } else