diff --git a/libsrc/meshing/improve3.cpp b/libsrc/meshing/improve3.cpp index b845cf02..35aa3768 100644 --- a/libsrc/meshing/improve3.cpp +++ b/libsrc/meshing/improve3.cpp @@ -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))