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 0c254332e78..3600992a7e0 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 @@ -265,6 +265,8 @@ bool does_enclose_other_normals(const std::size_t i, const std::size_t j, const continue; const Vector_ref nl = get(face_normals, incident_faces[l]); + if(nl == CGAL::NULL_VECTOR) + continue; // this is a bound on how much the scalar product between (v1,v2) and (v1, v3) can change // when the angle changes theta_bound := 0.01° @@ -432,9 +434,8 @@ compute_most_visible_normal_3_points(const std::vector