sophisticated triangulation algorithm (implemented in C) and small Qt demo