add getting intersection points using O'Rourke algorithm