mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
Mirror mesh: invert surface elements, update num vertices
This commit is contained in:
parent
43182c80cc
commit
f38d258d15
@ -7168,7 +7168,10 @@ namespace netgen
|
||||
nel[i] = point_map[el[i]];
|
||||
|
||||
if(!(nel==el))
|
||||
nm.AddSurfaceElement(nel);
|
||||
{
|
||||
nel.Invert();
|
||||
nm.AddSurfaceElement(nel);
|
||||
}
|
||||
}
|
||||
|
||||
for (auto ei : Range(LineSegments()))
|
||||
@ -7189,6 +7192,7 @@ namespace netgen
|
||||
nm.AddSegment(nel);
|
||||
}
|
||||
|
||||
nm.ComputeNVertices();
|
||||
return nm_;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user