mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-25 12:42:03 +05:00
Revert changes in divide mesh
This commit is contained in:
parent
6975910031
commit
ba8172e1fe
@ -546,9 +546,10 @@ namespace netgen
|
|||||||
{
|
{
|
||||||
auto first_new_pi = m_.pmap.Range().Next();
|
auto first_new_pi = m_.pmap.Range().Next();
|
||||||
auto & m = *m_.mesh;
|
auto & m = *m_.mesh;
|
||||||
Array<PointIndex, PointIndex> pmap;
|
Array<PointIndex, PointIndex> pmap(m.Points().Size());
|
||||||
pmap = m_.pmap;
|
for(auto pi : Range(PointIndex(PointIndex::BASE), first_new_pi))
|
||||||
pmap.SetSize(mesh.GetNP() + m.GetNP() - first_new_pi);
|
pmap[pi] = m_.pmap[pi];
|
||||||
|
|
||||||
for (auto pi : Range(first_new_pi, m.Points().Range().Next()))
|
for (auto pi : Range(first_new_pi, m.Points().Range().Next()))
|
||||||
pmap[pi] = mesh.AddPoint(m[pi]);
|
pmap[pi] = mesh.AddPoint(m[pi]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user