#include <CGAL/Bbox_3.h>
#include <CGAL/Implicit_cartesian_grid_domain.h>
#include <CGAL/Marching_cubes_3.h>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/boost/graph/IO/OFF.h>
typedef std::vector<Point> Point_range;
typedef std::vector<std::vector<std::size_t>> Polygon_range;
int main() {
const Vector spacing(0.04f, 0.04f, 0.04f);
auto sphere_function = [&](
const Point& p) {
return std::sqrt(p.x() * p.x() + p.y() * p.y() + p.z() * p.z()); };
auto domain = CGAL::Isosurfacing::create_implicit_cartesian_grid_domain<Kernel>(bbox, spacing, sphere_function);
Point_range points;
Polygon_range polygons;
}