Fix CalcCurvesIntersectionPoints method.