Extract the triangulation and triangle merging code into a new source file and clean it up somewhat

Reduce indent level

Let's try to keep the amount of indents in check...

(0) -300 -100 -30 -10 -3 +3 +10 +30 tip

mercurial