Divide, Polyline at All Intersection Points (2-D)

(1) Intersection points
(2) Identified contour
(3) Cut contour