clip_and_filter function

Clip lines to the extent of the corridor, and select valid segment edges