HomologyCpp is a header-only library for computing simplicial homology of meshes.
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);
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