The function points_on_cube_grid_3 generates a given number of points on a cubic grid whose size is determined by the number of points to be generated.
#include <CGAL/point_generators_3.h>
| ||||||
|
| |||||
creates the first n points on the regular ⌈n1/3 ⌉ × ⌈n1/3 ⌉ × ⌈n1/3 ⌉ grid within the cube [-a,a] × [-a,a] × [-a, a]. Returns the value of o after inserting the n points. |
CGAL::points_on_square_grid_2
CGAL::random_selection