From 5d8d1c65b8fa4e6ed35e728cde849482dc5985cd Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Mon, 25 Jan 2016 17:37:03 +0100 Subject: [PATCH] if deviation is not getting better, do not make the flip this tiny change seems to improve a lot the overall quality of the remeshed polyhedron, by avoiding some pathological cases with vertices of valence 3 (away from border) --- .../internal/Isotropic_remeshing/remesh_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/remesh_impl.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/remesh_impl.h index 6ec637571e3..84401c7bd56 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/remesh_impl.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/remesh_impl.h @@ -678,7 +678,7 @@ namespace internal { //check that mesh does not become non-triangle, //nor has inverted faces - if (deviation_pre < deviation_post + if (deviation_pre <= deviation_post || !check_normals(he) || incident_to_degenerate(he) || incident_to_degenerate(opposite(he, mesh_))