Building an infinite range with range-v3

Viewed 76

I am trying to build a range which produces infinite random points in a triangle. To do that, I am using CGAL, which already provides the functionality to generate the random points in a triangle.

        Triangle coarseTriangle = {v[0], v[1], v[2]};
        CGAL::Random_points_in_triangle_2<Point> randomSamplesGenerator(coarseTriangle);

However, CGAL::Random_points_in_triangle_2 returns an iterator. In order to produce a range, I need a sentinel which always return false. Is there any sentinel like that already in range-v3 or do I have to code one myself?

1 Answers
Related