intersect_segments