modified the ray used for intersection test in the curve intersector