mirror of https://github.com/CGAL/cgal
use make_range()
This commit is contained in:
parent
67a5b4d8c5
commit
6a7e89d3aa
|
|
@ -289,10 +289,8 @@ struct Triangle_structure_sampler_base
|
||||||
nb_pts_a_u = 2. / CGAL::square(min_edge_length);
|
nb_pts_a_u = 2. / CGAL::square(min_edge_length);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(TriangleIterator it = static_cast<Derived*>(this)->get_range().first;
|
for(const auto& tr: make_range(static_cast<Derived*>(this)->get_range()))
|
||||||
it != static_cast<Derived*>(this)->get_range().second; ++it)
|
|
||||||
{
|
{
|
||||||
auto tr = *it;
|
|
||||||
std::size_t nb_points = nb_points_per_face;
|
std::size_t nb_points = nb_points_per_face;
|
||||||
if (nb_points == 0)
|
if (nb_points == 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue