Polygonal chain intersection
a pair - wise offset algorithm for 2d point - sequence curve .