#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)
{
double delta = argc>2?atof(argv[2]):1.7;
int option = argc>3?atoi(argv[3]):1;
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;
}
if (option == 0)
{
double eta = (argc >= 5) ? atof(argv[4]) : 200.;
std::vector<std::array<int,3>> meshFaceIndices;
points, meshFaceIndices,
}
else{
std::vector<std::array<int,3>> meshFaceIndices1, meshFaceIndices2;
points, meshFaceIndices1, meshFaceIndices2,
}
return 0;
}
bool write_polygon_soup(const std::string &fname, const PointRange &points, const PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
void ball_merge_surface_reconstruction_global(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 triangule faces in ou...
Definition: Ball_merge_surface_reconstruction.h:477
void ball_merge_surface_reconstruction_local(const PointRange &points, TripleIndexRange &out_triangles, const NamedParameters &np=parameters::default_values())
creates a triangle soup approximating the surface, and puts the resulting triangule faces in out_tria...
Definition: Ball_merge_surface_reconstruction.h:426
std::string data_file_path(const std::string &filename)