Improvement to polygon boundary intersect comparison.