Catmull-Rom and Douglas-Peucker Algorithm for Line smoothing implemented