The function points_on_square_grid_2 generates a given number of points on a square grid whose size is determined by the number of points to be generated.
#include <CGAL/point_generators_2.h>
| ||||||
|
| |||||
creates the first n points on the regular ⌈√n ⌉ × ⌈√n ⌉ grid within the square [-a,a] × [-a,a]. Returns the value of o after inserting the n points. |
CGAL::perturb_points_2
CGAL::points_on_segment_2
CGAL::points_on_cube_grid_3
CGAL::random_collinear_points_2
CGAL::random_selection
std::random_shuffle