fix a conversion warning (-1 converted to `std::size_t`)

This commit is contained in:
Laurent Rineau 2025-10-22 15:09:07 +02:00
parent 15a155ec30
commit d34201ed38
1 changed files with 3 additions and 1 deletions

View File

@ -651,7 +651,9 @@ int merge_facets_region_growing(Mesh& mesh,
}
}
if(!dump_surface_mesh_after_merge_filename.empty()) {
auto [corner_id_map, corner_id_map_ok] = mesh.add_property_map<vertex_descriptor, std::size_t>("v:corner_id", -1);
static constexpr auto max_size_t = std::numeric_limits<std::size_t>::max();
auto [corner_id_map, corner_id_map_ok] =
mesh.add_property_map<vertex_descriptor, std::size_t>("v:corner_id", max_size_t);
assert(corner_id_map_ok);
CGAL_USE(corner_id_map_ok);
const auto nb_corners = CGAL::Polygon_mesh_processing::detect_corners_of_regions(