qapm_tri_editor: Tool to create/edit triangles

The qapm_tri_editor tool enables creating and editing triangulations of sets of points.

Creating a triangulation

Run the tool and load in a set of points (and optionally an image)
If you wish, this can be done from the command line:
qapm_tri_editor -i image1.png -p image1.pts
The tool can then
1) Initial set of points 2) After applying Delaunay
3) Deleting triangles outside region of interest 4) Swapping triangles to edit the mesh
If a triangulation file exists, it can be loaded, for instance using
qapm_tri_editor -i image1.png -p image1.pts -t triangles.tri

Modes

Delete: Click near centre of triangle to delete
Swap: Click on arc between two touching triangles to swap them; (1,2,3),(1,2,4) becomes (3,4,1),(3,4,2).
Add: Click on three nodes in sequence to create a triangle between them.