mirror of https://github.com/CGAL/cgal
be resilient to isolated vertices
This commit is contained in:
parent
14bdf9bfb5
commit
85bce9bb23
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue