Fix mesh saving/loading with OCC 7.6

This commit is contained in:
Matthias Hochsteger 2022-05-25 16:29:34 +02:00
parent b113ec48ed
commit 1497404a4c

View File

@ -1589,7 +1589,11 @@ namespace netgen
if(ar.Output()) if(ar.Output())
{ {
std::stringstream ss; std::stringstream ss;
#if OCC_VERSION_HEX < 0x070600
BRepTools::Write(shape, ss); BRepTools::Write(shape, ss);
#else
BRepTools::Write(shape, ss, false, false, TopTools_FormatVersion_VERSION_1);
#endif
ar << ss.str(); ar << ss.str();
} }
else else