Javascript Clipper Library / Simplifying Polygons
This page shows an example of simplifying polygon and drawing it using SVG.