mirror of https://github.com/CGAL/cgal
Replace BOOST_FOREACH by modern for loop
This commit is contained in:
parent
7ffb30838d
commit
b57a1d7378
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue