基于插值点处切线方向向量的估计,提出了一种计算插值曲线的新方法。与以往的插值方法需要求解线性方程组才能得到插值曲线不同的是,新方法中所得到的二次B样条曲线的任意一段为二次Bézier曲线,可以经由插值两个相邻点的位置和方向切向量的限制直接计算得到,而无需知道相应的节点向量。最后使用unclamping技术,可以在插值点数的线性时间内计算得到二次B样条曲线的节点向量和控制点。新方法也是一种二次精度的局部方法。数值算例表明,新方法的插值误差可以比已有方法的插值误差更小。
This paper presents a new method for computing knots for curve interpolation, which is based on the estimation of the directional tangent vectors at the interpolation points. Different from previous methods which need to solve an equation system of linear equations for computing the resulting interpolation curve, in the new method, any segment of the resulting quadratic B-spline curve, which is also a quadratic Bézier curve interpolating both the positions and the directional tangent vectors of the two adjacent points, can be easily computed without knowing the corresponding knot vector. And then, the knot vector and the control points of the resulting quadratic B-spline curve can be computed in linear time of the number of the interpolation points by using the unclamping technique. The new method is also a local one for determining the knots with quadratic precision. Numerical examples show that the interpolation error in the new method can be much smaller than the interpolation errors in other prevailing methods, including the chord length method, the centripetal method, Foley's method and the Zhang's method.
[1] DE BOOR C. A practical guide to splines[M]. New York: Springer Verlag, 1978.
[2] SU B Q, LIU D Y. Computational geometry[M]. Shanghai: Shanghai Science and Technology Press, 1982:47-48.
[3] FARIN G. Curvature continuity and offsets for piecewise conics[J]. Acm Transactions on Graphics, 1989,8(2):89-99.
[4] LEE E. Choosing nodes in parametric curve interpolation[J]. Computer-Aided Design, 1989,21(6):363-370.
[5] THOMAS A, FOLEY. Interpolation with interval and point tension controls using cubic weighted v-splines[J]. Acm Transactions on Mathematical Software, 1987:68-96.
[6] FLOATER M S. Chordal cubic spline interpolation is fourth order accurate[J]. IMA Journal of Numerical Analysis, 2006,26(1):25-33.
[7] XIE H, QIN H. A novel optimization approach to the effective computation of NURBS knots[J]. International Journal of Shape Modeling, 2001,7(2):199-227.
[8] PARK H. Choosing nodes and knots in closed B-spline curve interpolation to point data[J]. Computer-Aided Design, 2001,33(13):967-974.
[9] 潘日晶.满足数据点切向约束的二次B样条插值曲线[J].计算机学报,2007,30(12):2132-2141.
[10] 于谦,李缨,张彩明.基于切向约束构造复合二次B样条插值曲线[J].计算机学报,2014,37(6):1342-1351.
[11] ZHANG C, WANG W, WANG J, et al. Local computation of curve interpolation knots with quadratic precision[J]. Computer-Aided Design, 2013,45(4):853-859.
[12] ZHANG C, CHENG F, MIURA K. A method for determining knots in parametric curve interpolation[J]. Computer Aided Geometric Design, 1998,15(4):399-416.
[13] ZHANG F, QIN X Y, LI X M, et al. Determining knots by optimizing the bending and stretching energies[J]. Applied Mathematics-A Journal of Chinese UniversitiesSeries B, 2017,32(1):53-67.
[14] ZHANG F, LI J, LIU P, et al. Computing knots by quadratic and cubic polynomial curves[J]. Computional Visual Media, 2020,6(4):417-430.
[15] HU S M, TAI C L, ZHANG S H. An extension algorithm for B-splines by curve unclamping[J]. Computer-Aided Design, 2002,34(5):415-419.