fix polygon side intersection detection
Merge pull request #7439 from smichr/geom

fix polygon side intersection detection