#include <iostream>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Octree.h>
using Point_vector = std::vector<Point>;
int main() {
Point_vector points;
points.emplace_back(1, 1, 1);
points.emplace_back(2, 1, -11);
points.emplace_back(2, 1, 1);
points.emplace_back(1, -2, 1);
points.emplace_back(1, 1, 1);
points.emplace_back(-1, 1, 1);
Octree octree(points);
octree.refine(10, 1);
std::cout << octree;
return EXIT_SUCCESS;
}
Orthtree< Orthtree_traits_point< GeomTraits, PointRange, PointMap, cubic_nodes, 3 > > Octree
Alias that specializes the Orthtree class to a 3D octree storing 3D points.
Definition Octree.h:38