CalcCurvesIntersectionPoints refactoring.