be resilient to isolated vertices

This commit is contained in:
Sébastien Loriot 2024-07-22 09:54:55 +02:00
parent 14bdf9bfb5
commit 85bce9bb23
1 changed files with 1 additions and 0 deletions

View File

@ -205,6 +205,7 @@ void polygon_mesh_to_nef_3(const PolygonMesh& P, SNC_structure& S, FaceIndexMap
PolygonMesh, SNC_structure,HalfedgeIndexMap> index_adder(P,himap);
for(vertex_descriptor pv : vertices(P) ) {
if (halfedge(pv, P) == boost::graph_traits<PolygonMesh>::null_halfedge()) continue; // skip isolated vertices
typename boost::property_traits<PMap>::reference npv = get(pmap,pv);
Vertex_handle nv = S.new_vertex();