veltman
Unrolling a polyline along an arbitrary zig-zag path by simplifying the line and then rotating based on each simplified segment.
See also: Line Simplification
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js