#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Triangulation_3.h>
#include <CGAL/Triangulation_data_structure_3.h>
#include <CGAL/Simplicial_mesh_cell_base_3.h>
#include <CGAL/Simplicial_mesh_vertex_base_3.h>
#include <CGAL/Mesh_complex_3_in_triangulation_3.h>
#include <CGAL/tetrahedral_remeshing.h>
#include <CGAL/tags.h>
#include <CGAL/IO/File_medit.h>
#include <fstream>
#include <CGAL/Mesh_smoothing_3/boundary_aware_mesh_smoothing.h>
using Subdomain_index = int;
using Surface_patch_index = unsigned;
using Curve_index = unsigned;
using Corner_index = unsigned;
Curve_index, Corner_index>;
using Tds = CGAL::Triangulation_data_structure_3<Vb, Cb, CGAL::Sequential_tag>;
using Triangulation = CGAL::Triangulation_3<K, Tds>;
int main(int argc, char* argv[])
{
std::string filename = (argc > 1) ? std::string(argv[1])
: "../data/mambo_m3.mesh";
C3t3 c3t3;
std::ifstream is(filename, std::ios_base::in);
{
std::cerr << "Failed to read" << std::endl;
return EXIT_FAILURE;
}
c3t3.rescan_after_load_of_triangulation();
std::ofstream os("c3t3_initial.mesh");
os.close();
std::ofstream os2("c3t3_smoothed.mesh");
os2.close();
std::cout << "Done" << std::endl;
return EXIT_SUCCESS;
}
void write_MEDIT(std::ostream &os, const T3 &t3, const NamedParameters &np=parameters::default_values())
bool read_MEDIT(std::istream &in, T3 &t3, const NamedParameters &np=parameters::default_values())
void boundary_aware_mesh_smoothing(C3t3 &c3t3, NamedParameters const &np=parameters::default_values())
Smooth a tetrahedral mesh while preserving the boundary and curve features.
Definition boundary_aware_mesh_smoothing.h:180