From db297d7eff6c059538f36344efd209a02f36a8c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 10 Jan 2025 13:10:33 +0100 Subject: [PATCH] Handle boundary vertices in angle_sum --- .../include/CGAL/Polygon_mesh_processing/curvature.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/curvature.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/curvature.h index 819d3c8a638..288ea9ab3f7 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/curvature.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/curvature.h @@ -92,6 +92,9 @@ angle_sum(typename boost::graph_traits::vertex_descriptor v, FT angle_sum = 0; for(auto h : halfedges_around_source(v, pmesh)) { + if(is_border(h, pmesh)) + continue; + angle_sum += approx_angle(get(vpm, target(h, pmesh)), get(vpm, source(h, pmesh)), get(vpm, source(prev(h,pmesh), pmesh)));