B-Spline and Line working