mirror of https://github.com/CGAL/cgal
fix a conversion warning (-1 converted to `std::size_t`)
This commit is contained in:
parent
15a155ec30
commit
d34201ed38
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue