Replace BOOST_FOREACH by modern for loop

This commit is contained in:
Mael Rouxel-Labbé 2020-03-02 12:12:14 +01:00
parent 7ffb30838d
commit b57a1d7378
1 changed files with 6 additions and 4 deletions

View File

@ -489,10 +489,12 @@ struct Triangle_structure_sampler_for_triangle_mesh
void ms_edges_sample(std::size_t nb_points_per_edge,
double nb_pts_l_u)
{
typename GeomTraits::Compute_squared_distance_3 squared_distance = this->geomtraits.compute_squared_distance_3_object();
if (nb_points_per_edge == 0 && nb_pts_l_u == 0)
nb_pts_l_u = 1. / min_edge_length_;
BOOST_FOREACH(edge_descriptor ed, edges(tm))
typename GeomTraits::Compute_squared_distance_3 squared_distance = this->gt.compute_squared_distance_3_object();
if(nb_points_per_edge == 0 && nb_pts_l_u == 0.)
nb_pts_l_u = 1. / min_edge_length;
for(edge_descriptor ed : edges(tm))
{
std::size_t nb_points = nb_points_per_edge;
if(nb_points == 0)