Fix warning in CGAL-6.2-Ic-41

This commit is contained in:
Andreas Fabri 2025-11-14 06:58:46 +00:00 committed by Laurent Rineau
parent e0a720452d
commit e98fa21cc9
1 changed files with 2 additions and 2 deletions

View File

@ -449,10 +449,10 @@ int merge_facets_region_growing(Mesh& mesh,
double coplanar_polygon_max_angle, double coplanar_polygon_max_angle,
const std::string& dump_surface_mesh_after_merge_filename) { const std::string& dump_surface_mesh_after_merge_filename) {
namespace np = CGAL::parameters; namespace np = CGAL::parameters;
int number_of_patches = CGAL::Polygon_mesh_processing::region_growing_of_planes_on_faces( int number_of_patches = static_cast<int>(CGAL::Polygon_mesh_processing::region_growing_of_planes_on_faces(
mesh, pmaps.patch_id_map, mesh, pmaps.patch_id_map,
np::maximum_distance(coplanar_polygon_max_distance) np::maximum_distance(coplanar_polygon_max_distance)
.maximum_angle(coplanar_polygon_max_angle)); .maximum_angle(coplanar_polygon_max_angle)));
for(auto f: faces(mesh)) { for(auto f: faces(mesh)) {
if(get(pmaps.patch_id_map, f) < 0) { if(get(pmaps.patch_id_map, f) < 0) {
std::cerr << "warning: face " << f << " has no patch id! Reassign it to " << number_of_patches << '\n'; std::cerr << "warning: face " << f << " has no patch id! Reassign it to " << number_of_patches << '\n';