#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/Polygon_mesh_processing/orientation.h>
#include <CGAL/Polygon_mesh_processing/polygon_soup_to_polygon_mesh.h>
#include <CGAL/Polygon_mesh_processing/orient_polygon_soup_extension.h>
#include <CGAL/Polygon_mesh_processing/IO/polygon_mesh_io.h>
#include <CGAL/algorithm.h>
#include <CGAL/Timer.h>
#include <CGAL/IO/polygon_soup_io.h>
#include <algorithm>
#include <cstdlib>
#include <fstream>
#include <iostream>
typedef K::Point_3 Point_3;
int main(int argc, char** argv)
{
const char* input_filename = (argc < 2) ? "data/blobby-shuffled.off" : argv[1];
const char* reference_filename = (argc < 2) ? "data/blobby.off" : argv[2];
std::vector<Point_3> points;
std::vector<std::vector<std::size_t> > polygons;
points.size() == 0 || polygons.size() == 0)
{
std::cerr << "Error: can not read input file.\n";
return 1;
}
Mesh ref1;
{
std::cerr << "Invalid input." << std::endl;
return 1;
}
PMP::orient_triangle_soup_with_reference_triangle_mesh<CGAL::Sequential_tag>(ref1, points, polygons);
Mesh poly;
typedef boost::property_map<Mesh, CGAL::dynamic_face_property_t<std::size_t> >::type Fccmap;
return 0;
}