#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Ball_merge_surface_reconstruction.h>
#include <CGAL/IO/polygon_soup_io.h>
#include <CGAL/IO/read_points.h>
#include <string>
typedef K::Point_3 Point;
int main(int argc, char **argv)
{
std::vector<Point> points;
CGAL::IO::read_points(inFilename, std::back_inserter(points));
if (points.empty())
{
std::cerr << inFilename << " cannot be read correctly or is empty.\n";
return 1;
}
std::vector<std::array<int,3>> meshFaceIndices1, meshFaceIndices2;
double delta = argc > 2
meshFaceIndices1, meshFaceIndices2,
params::delta(atof(argv[2]))
meshFaceIndices1, meshFaceIndices2,
std::cout << "delta parameter used = " << delta << "\n";
return 0;
}
bool write_polygon_soup(const std::string &fname, const PointRange &points, const PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
double ball_merge_surface_reconstruction(const PointRange &points, TripleIndexRange &out_triangles1, TripleIndexRange &out_triangles2, const NamedParameters &np=parameters::default_values())
creates two watertight meshes approximating the surface, and puts the resulting triangle faces in out...
Definition: Ball_merge_surface_reconstruction.h:586
std::string data_file_path(const std::string &filename)