added 3d curved spline