fix polygon side intersection detection

fixes #6954