correct intersection and resection code
Merge branch 'master' of https://github.com/zsiki/ls