Smoothening complex polygons - Ramer–Douglas–Peucker algorithm · HackerTrans