Mirror mesh: invert surface elements, update num vertices

This commit is contained in:
Joachim Schoeberl 2021-10-15 09:00:19 +02:00
parent 43182c80cc
commit f38d258d15

View File

@ -7168,8 +7168,11 @@ namespace netgen
nel[i] = point_map[el[i]]; nel[i] = point_map[el[i]];
if(!(nel==el)) if(!(nel==el))
{
nel.Invert();
nm.AddSurfaceElement(nel); nm.AddSurfaceElement(nel);
} }
}
for (auto ei : Range(LineSegments())) for (auto ei : Range(LineSegments()))
{ {
@ -7189,6 +7192,7 @@ namespace netgen
nm.AddSegment(nel); nm.AddSegment(nel);
} }
nm.ComputeNVertices();
return nm_; return nm_;
} }