Function

CGAL::points_on_cube_grid_d

Definition

The function points_on_cube_grid_d generates a given number of points on a cubic grid in any dimension whose size is determined by the number of points to be generated.

#include <CGAL/point_generators_d.h>

template <class OutputIterator, Creator creator>
OutputIterator points_on_cube_grid_d ( int dim, double a, std::size_t n, OutputIterator o, Creator creator)
creates the first n points on the regular n1/dim × n1/dim × × n1/dim grid within the hypercube [-a,a]dim. Returns the value of o after inserting the n points.

Requirements

CGAL::points_on_square_grid_2
CGAL::points_on_cube_grid_3