WIP curved lines; fixing ortho edges detection