13#ifndef INCLUDE_TORUS_D_HPP_
14#define INCLUDE_TORUS_D_HPP_
16#include <CGAL/Cartesian_d.h>
17#include <CGAL/constructions_d.h>
18#include <CGAL/point_generators_d.h>
19#include <fmt/format.h>
23using Kd = CGAL::Cartesian_d<double>;
24using Point = Kd::Point_d;
25using Creator_d = CGAL::Creator_uniform_d<std::vector<double>::iterator, Point>;
35 std::size_t t_number_of_points,
int t_dimension)
37 double constexpr size = 1.0;
39 fmt::print(
"Generating {} grid points in {}D\n", t_number_of_points,
42 t_points.reserve(t_number_of_points);
43 return points_on_cube_grid_d(t_dimension, size, t_number_of_points,
44 std::back_inserter(t_points),
45 Creator_d(t_dimension));
CGAL::Cartesian_d< double > Kd
Random point generators for d-dimensional points in a d-cube per timeslice.
auto make_d_cube(std::vector< Point > t_points, std::size_t t_number_of_points, int t_dimension)
Make a d-dimensional torus.