Skip SwapImproveEdge if one adjacent element has wrong orientation

This commit is contained in:
Matthias Hochsteger 2025-02-14 19:16:13 +01:00
parent d2f7c24a5e
commit fb399595fa

View File

@ -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))