From 75823e82441c8cbf458874871dace7a145c2cc4d Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Sun, 13 Oct 2024 10:57:29 +0200 Subject: [PATCH] propagate idnrs in merge mesh (for ZRefine) --- libsrc/meshing/meshfunc.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libsrc/meshing/meshfunc.cpp b/libsrc/meshing/meshfunc.cpp index fc9ca918..1111c491 100644 --- a/libsrc/meshing/meshfunc.cpp +++ b/libsrc/meshing/meshfunc.cpp @@ -560,6 +560,14 @@ namespace netgen el.SetIndex(m_.domain); mesh.AddVolumeElement(el); } + for(const auto& [p1p2, idnr] : m.GetIdentifications().GetIdentifiedPoints()) + mesh.GetIdentifications().Add(pmap[p1p2[0]], pmap[p1p2[1]], idnr); + for(auto i : Range(m.GetIdentifications().GetMaxNr())) + { + mesh.GetIdentifications().SetType(i+1, m.GetIdentifications().GetType(i+1)); + if(auto name = m.GetIdentifications().GetName(i+1); name != "") + mesh.GetIdentifications().SetName(i+1, name); + } } }