openscad/openscad — pull request #612 by OskarLinde (2014-01-28 19:20:10+00:00)
Title: 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.