reserve(8) for incident faces to a vertex

This commit is contained in:
Andreas Fabri 2021-03-02 13:09:45 +00:00
parent 19e5e4a16e
commit 10f454d983
1 changed files with 1 additions and 0 deletions

View File

@ -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())