Move Ramer-Douglas-Peucker line simplification from the renderer to Curve.updateCurve()