From 7d0bbdab07fedec87ab08ecc8ef3e900d701cdad Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Thu, 12 Dec 2024 17:45:39 +0100 Subject: [PATCH] archive vertex properties (in backwards compatible way) --- libsrc/occ/occgeom.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libsrc/occ/occgeom.cpp b/libsrc/occ/occgeom.cpp index 033dd645..38f069bd 100644 --- a/libsrc/occ/occgeom.cpp +++ b/libsrc/occ/occgeom.cpp @@ -1747,7 +1747,10 @@ namespace netgen Array shape_list; ar & dimension; - for (auto typ : { TopAbs_SOLID, TopAbs_FACE, TopAbs_EDGE }) + auto types = Array{ TopAbs_SOLID, TopAbs_FACE, TopAbs_EDGE }; + if(ar.GetVersion("netgen") >= "v6.2.2406-22") + types.Append(TopAbs_VERTEX); + for (auto typ : types) for (TopExp_Explorer e(shape, typ); e.More(); e.Next()) { auto ds = e.Current();