Batch detecting of crossing edge

In case your plan doesn’t work as desired, maybe this might help: An Edge-Crossing program - is it useful? - #4 by steveroush