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

Reduce indent level

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

mercurial