Minor improvements in debug output
New class for generating SVG from XS. Includes some minor refactoring to TriangleMesh
Bugfix: wrong slicing (error in XS port). #1469