#include <CGAL/Simple_cartesian.h>
#include <cassert>
#include <vector>
#include <algorithm>
#include <CGAL/point_generators_2.h>
#include <CGAL/algorithm.h>
typedef K::Point_2 Point;
int main() {
std::vector<Point> points;
points.reserve(400);
points_on_square_grid_2( 255.0, 250, std::back_inserter(points),Creator());
assert( points[0].x() == -255);
assert( points[0].y() == -255);
assert( points[249].x() == 255 - 6 * 34);
assert( points[249].y() == 255);
std::copy_n( g, 250, std::back_inserter(points));
assert( points.size() == 500);
return 0;
}
The class Random_points_in_disc_2 is an input iterator creating points uniformly distributed in an op...
Definition: point_generators_2.h:156