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,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_;
}