Robust interval algorithm for curve intersections