look for a feature edge around the vertex

This commit is contained in:
Sébastien Loriot 2025-03-03 20:37:08 +01:00
parent 138b06ca11
commit 0b55dc477d
1 changed files with 11 additions and 2 deletions

View File

@ -334,8 +334,17 @@ void detect_vertex_incident_patches(const PolygonMesh& pmesh,
for(vertex_descriptor vit :vertices(pmesh))
{
// Look only at feature vertices
if(!get(edge_is_feature_map, edge(halfedge(vit, pmesh), pmesh)))
continue;
bool skip=true;
for(halfedge_descriptor he : halfedges_around_target(vit, pmesh))
{
if(get(edge_is_feature_map, edge(he, pmesh)))
{
skip=false;
break;
}
}
if (skip) continue;
// Loop on incident facets of vit
typename VertexIncidentPatchesMap::value_type& id_set = vertex_incident_patches_map[vit];