#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Hexmeshing_generate_two_refinement_mesh.h>
#include <CGAL/draw_linear_cell_complex.h>
#include <CGAL/Linear_cell_complex/IO/VTK.h>
#include <CGAL/Polygon_mesh_processing/triangulate_faces.h>
#include <CGAL/Surface_mesh.h>
#include <string>
int main(int argc, char** argv)
{
CGAL::Surface_mesh<CGAL::Exact_predicates_inexact_constructions_kernel::Point_3> poly;
CGAL::Polygon_mesh_processing::triangulate_faces(poly);
(poly, 18, 2, CGAL::parameters::trim_mesh(true).smooth_mesh(true));
return EXIT_SUCCESS;
}
bool read_polygon_mesh(const std::string &fname, Graph &g, const NamedParameters &np=parameters::default_values())
void draw(const P &p, const GSOptions &gso)
auto generate_hexahedral_mesh_using_two_refinement(const TriangleMesh &tmesh, int cube_cells_per_dim, int nb_levels, const NamedParameters &np=parameters::default_values())
generates a pure hexahedral mesh from a surface triangle mesh using the two-refinement algorithm desc...
bool write_VTK(const char *filename, const LCC &alcc, const std::vector< VertexScalarType > *vertex_scalars=nullptr, const std::vector< VolumeScalarType > *volume_scalars=nullptr)
Writes a 3D Linear_cell_complex to a VTK legacy ASCII file.
std::string data_file_path(const std::string &filename)