/HomologyCpp

A header-only library for computing simplicial homology of meshes.

Primary LanguageC++

HomologyCpp

Actions Status

HomologyCpp is a header-only library for computing simplicial homology of meshes.

Usage:

Given VCGLIB's mesh: mesh, initialize its chain complex using:

homology::ChainComplex<MeshType, FaceType, EdgeType, VertexType> complex(mesh);

To compute i-th betti number, use:

complex.getBetti(i);

Building examples:

In order to build examples, run the following commands from the root directory of this repository:

> mkdir build && cd build
> cmake -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=ON ..
> make -j