Optimize the intersection points.