From 125a0d60416973ad91096cf2fec7513f89cd2ff1 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Fri, 10 Jan 2025 09:16:17 +0000 Subject: [PATCH] A trivial fix for the data set, but does not work when the face normals are slightly perturbed --- .../include/CGAL/Polygon_mesh_processing/compute_normal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/compute_normal.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/compute_normal.h index dd77b2e98435..d1bf35fc630a 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/compute_normal.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/compute_normal.h @@ -516,6 +516,9 @@ compute_vertex_normal_most_visible_min_circle(typename boost::graph_traits::null_face()) continue; + if((! incident_faces.empty()) && (get(face_normals, incident_faces.back()) == get(face_normals, f)) ) + continue; + incident_faces.push_back(f); }