Merge branch 'occ_archive_vertex_properties' into 'master'

archive vertex properties (in backwards compatible way)

See merge request ngsolve/netgen!689
This commit is contained in:
Schöberl, Joachim 2024-12-13 12:48:57 +01:00
commit aa9f93a487

View File

@ -1747,7 +1747,10 @@ namespace netgen
Array<TopoDS_Shape> shape_list;
ar & dimension;
for (auto typ : { TopAbs_SOLID, TopAbs_FACE, TopAbs_EDGE })
auto types = Array<TopAbs_ShapeEnum>{ 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();