mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-21 03:29:43 +05:00
Skip SwapImproveEdge if one adjacent element has wrong orientation
This commit is contained in:
parent
d2f7c24a5e
commit
fb399595fa
@ -763,6 +763,9 @@ double MeshOptimize3d :: SwapImproveEdge (
|
||||
|
||||
if (mesh[ei].IsDeleted())
|
||||
return 0.0;
|
||||
|
||||
if(WrongOrientation(mesh.Points(), mesh[ei]))
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
if(!NeedsOptimization(hasbothpoints))
|
||||
|
Loading…
Reference in New Issue
Block a user