Skip to content

Commit

Permalink
Make num_vertices() work even for a mesh that is not compressed/garba…
Browse files Browse the repository at this point in the history
…ge collected
  • Loading branch information
afabri committed Oct 10, 2024
1 parent 6ac69d3 commit 795e141
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BGL/include/CGAL/boost/graph/graph_traits_geometrycentral.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,14 @@ halfedge(typename boost::graph_traits<geometrycentral::surface::ManifoldSurfaceM
typename boost::graph_traits<geometrycentral::surface::ManifoldSurfaceMesh >::vertices_size_type
inline num_vertices(const geometrycentral::surface::ManifoldSurfaceMesh& sm)
{
return sm.nVertices();
return sm.vertexIndexSize();
}


typename boost::graph_traits<geometrycentral::surface::ManifoldSurfaceMesh >::edges_size_type
inline num_edges(const geometrycentral::surface::ManifoldSurfaceMesh& sm)
{
return sm.nEdges();
return sm.edgeIndexSize();
}


Expand Down Expand Up @@ -540,7 +540,7 @@ set_halfedge(typename boost::graph_traits<geometrycentral::surface::ManifoldSurf
typename boost::graph_traits<geometrycentral::surface::ManifoldSurfaceMesh >::faces_size_type
inline num_faces(const geometrycentral::surface::ManifoldSurfaceMesh& sm)
{
return sm.nFaces();
return sm.faceIndexSize();
}


Expand Down

0 comments on commit 795e141

Please sign in to comment.