mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 13:20:34 +05:00
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:
commit
aa9f93a487
@ -1747,7 +1747,10 @@ namespace netgen
|
|||||||
Array<TopoDS_Shape> shape_list;
|
Array<TopoDS_Shape> shape_list;
|
||||||
|
|
||||||
ar & dimension;
|
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())
|
for (TopExp_Explorer e(shape, typ); e.More(); e.Next())
|
||||||
{
|
{
|
||||||
auto ds = e.Current();
|
auto ds = e.Current();
|
||||||
|
Loading…
Reference in New Issue
Block a user