This is a small example of how it works taken from the libbttc manual.
This library calculates the faces obtained by B-Tree Triangular Coding (BTTC). This is usually for subdividing an image into a triangular mesh. The core library is written in C but an octave/matlab interface is provided.
The main focus of this library is simplicity. The code is simple enough to directly integrate it into another program as it is a single C code file with no external dependencies.