#include <iostream>
#include <fstream>
#include <CGAL/HDVF/Mesh_object_io.h>
#include <CGAL/HDVF/Simplicial_chain_complex.h>
#include <CGAL/HDVF/Geometric_chain_complex_tools.h>
#include <CGAL/HDVF/Zp.h>
#include <CGAL/HDVF/Z2.h>
#include <CGAL/HDVF/Hdvf.h>
#include <CGAL/OSM/OSM.h>
int main(int argc, char **argv)
{
if (argc != 2)
{
std::cout << "usage: example_hdvf_simplicial off_file" << std::endl;
}
else
{
complex.print_complex();
hdvf.compute_perfect_hdvf();
hdvf.print_matrices();
hdvf.print_reduction();
hdvf_geometric_chain_complex_output_vtk(hdvf, complex, "res", true) ;
}
return 0;
}
The class Hdvf implements homology and cohomology computation via homological discrete vector fields ...
Definition: Hdvf.h:86
The class Mesh_object_io is an intermediate IO class, used to load triangular/tetraedral meshes and p...
Definition: Mesh_object_io.h:201
std::vector< std::vector< double > > get_nodes()
Definition: Mesh_object_io.h:321
bool read_off(const std::string &filename)
Definition: Mesh_object_io.h:369
void print_infos() const
Definition: Mesh_object_io.h:538
The class Simplicial_chain_complex refines the Abstract_simplicial_chain_complex class by assigning c...
Definition: Simplicial_chain_complex.h:42
The class Z2 implements the concept Ring with the field .
Definition: Z2.h:33
const int OPT_FULL
HDVF option (compute full reduction).
Definition: Hdvf_core.h:42