init the corner id map

This commit is contained in:
Sébastien Loriot 2023-08-28 09:05:03 +02:00
parent caa1daa98e
commit ab023626e0
1 changed files with 6 additions and 0 deletions

View File

@ -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<int> nb_faces_per_patch(nb_regions,0);