fixed spline intersection code