mirror of https://github.com/CGAL/cgal
reserve(8) for incident faces to a vertex
This commit is contained in:
parent
19e5e4a16e
commit
10f454d983
|
|
@ -506,6 +506,7 @@ compute_vertex_normal_most_visible_min_circle(typename boost::graph_traits<Polyg
|
||||||
typedef typename GT::Vector_3 Vector_3;
|
typedef typename GT::Vector_3 Vector_3;
|
||||||
|
|
||||||
std::vector<face_descriptor> incident_faces;
|
std::vector<face_descriptor> incident_faces;
|
||||||
|
incident_faces.reserve(8);
|
||||||
for(face_descriptor f : CGAL::faces_around_target(halfedge(v, pmesh), pmesh))
|
for(face_descriptor f : CGAL::faces_around_target(halfedge(v, pmesh), pmesh))
|
||||||
{
|
{
|
||||||
if(f == boost::graph_traits<PolygonMesh>::null_face())
|
if(f == boost::graph_traits<PolygonMesh>::null_face())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue