In Clipper, given an open path (black) and a closed polygon (blue), how can I clip the open path such that the clipped parts get completed using the polygon contours and, when possible, a single path remains instead of disjoint segments?
What Clipper operations can achieves this?
Note that the clipping polygon is not necessarily a rectangle like in the example, so the completed segments may be polylines themselves.