mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-15 10:28:34 +05:00
propagate idnrs in merge mesh (for ZRefine)
This commit is contained in:
parent
5b245d4de3
commit
75823e8244
@ -560,6 +560,14 @@ namespace netgen
|
|||||||
el.SetIndex(m_.domain);
|
el.SetIndex(m_.domain);
|
||||||
mesh.AddVolumeElement(el);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user