#include <CGAL/Surface_mesh_default_triangulation_3.h>
#include <CGAL/Complex_2_in_triangulation_3.h>
#include <CGAL/make_piecewise_smooth_surface_mesh.h>
#include <CGAL/Polyhedral_surface_3.h>
#include <fstream>
#include <CGAL/Surface_mesh_default_criteria_3.h>
#include <CGAL/Piecewise_smooth_surface_mesh_default_edges_criteria_3.h>
typedef CGAL::Complex_2_in_triangulation_3<Tr> C2t3;
typedef Tr::Geom_traits GT;
typedef GT::Sphere_3 Sphere_3;
typedef GT::Point_3 Point_3;
typedef GT::FT FT;
typedef CGAL::Polyhedral_surface_3<GT> Polyhedral_surface;
int main() {
Tr tr;
C2t3 c2t3 (tr);
std::ifstream file_input("data/triceratops.off");
Polyhedral_surface surface(file_input);
facets_criteria(30.,
0.5,
0.5);
CGAL::Surface_mesh_default_edges_criteria_3<Tr>
edges_criteria(0.5,
0.5);
CGAL::make_piecewise_smooth_surface_mesh(c2t3, surface,
facets_criteria, edges_criteria,
std::cout << "Final number of points: " << tr.number_of_vertices() << "\n";
}