Polygon simplification created self-intersecting outlines

The polygon simplification code in toPolygon2D() could create self-intersecting outlines which resulted in non-manifold meshes. The fix is to use Clipper's simplification algorithm. This patch also (silently) changes the polygon quantization distance from 0.032 to 0.001 units. The actual value should probably be settable by the user.