Delete all in the curve

Hello is there a way to delete the lines (red) in the curve and get every line (green) out of the curve.

The curves are splited and now i have the seperate segments but only need the green ones

Make a surface, then use Geometry.DoesIntersect, then List.FilterByBoolMask

Hi @lauratraum12 ,

How would you define “red” and “green” line segments?

(@Daan there’s an image with highlighted polyline segments)

I know yeah, but how can you make the difference between those 2 lines? What list structure do you have etc.?