Handle boundary vertices in angle_sum

This commit is contained in:
Mael Rouxel-Labbé 2025-01-10 13:10:33 +01:00
parent 26005e59f3
commit db297d7eff
1 changed files with 3 additions and 0 deletions

View File

@ -92,6 +92,9 @@ angle_sum(typename boost::graph_traits<PolygonMesh>::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)));