From ab023626e0f22022a142e5e7aa25894e14e0b5bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Mon, 28 Aug 2023 09:05:03 +0200 Subject: [PATCH] init the corner id map --- .../include/CGAL/Polygon_mesh_processing/region_growing.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Shape_detection/include/CGAL/Polygon_mesh_processing/region_growing.h b/Shape_detection/include/CGAL/Polygon_mesh_processing/region_growing.h index df6bb67e908..9d130846e05 100644 --- a/Shape_detection/include/CGAL/Polygon_mesh_processing/region_growing.h +++ b/Shape_detection/include/CGAL/Polygon_mesh_processing/region_growing.h @@ -397,6 +397,12 @@ detect_corners_of_regions( put(ecm, e, true); } + //init to -1 by default + for(vertex_descriptor v : vertices(mesh)) + { + put(corner_id_map, v, std::size_t(-1)); + } + // filter trivial edges: incident to a plane with only one face // such an edge cannot be removed and its vertices are corners std::vector nb_faces_per_patch(nb_regions,0);