betaFeedback

WorksComputer Science

Fairness-optimized interlacing knots for even-degree periodic B-spline interpolation

Abstract

Interpolating an ordered set of points by a B-spline curve is a fundamental operation in computer-aided geometric design. Most of the literature addresses open curves, where the Schoenberg–Whitney condition characterizes a nonsingular collocation matrix and averaging is the standard way to choose the knot vector. Periodic B-spline interpolation has received much less attention, and the open-curve algorithms cannot be transferred directly. No theoretical criterion is available for choosing the knots, and the few existing constructions, such as the shifting and energy methods, remain empirical, with neither a theoretical guarantee nor a supporting analysis. This paper addresses this gap for even degrees. We prove that for every even degree p≥2p\ge2 the periodic collocation matrix is nonsingular whenever the domain knots and the interpolation parameters interlace, in either of two admissible orderings, for arbitrarily nonuniform parameters. Rather than singling out one knot vector, this sufficient condition delimits an nn-parameter family of admissible knot vectors and provides the theoretical foundation for knot selection that periodic interpolation has lacked. It also explains why the empirical shifting method is solvable, previously justified only by an incorrect diagonal-dominance argument. We then exploit the remaining freedom to place the knots by fairness optimization, which preserves admissibility at every iterate and leads to the methods Opt-R and Opt-L. On four closed shapes with irregularly distributed points these methods achieve a fairness comparable to the shifting and energy methods, improve on them in several cases, and offer guarantees that no empirical construction provides.

Introduction

Interpolating an ordered set of points with a B-spline curve is one of the most common operations in computer-aided geometric design (CAGD), and it requires two preliminary decisions: a parameter value, or node, has to be assigned to every data point, and a knot vector has to be chosen for the spline. These two choices determine the collocation matrix that relates the control points to the data, and hence both the shape of the resulting curve and the numerical behaviour of the interpolation system. For open-curve interpolation, much of the classical literature is devoted to the choice of the parameters, and once they are available the knot vector is usually obtained by the classical averaging technique [1, 2], which yields a totally positive banded collocation matrix that can be solved by Gaussian elimination without pivoting. For closed, or periodic, B-spline curves the situation is more delicate, because the cyclic structure of the curve introduces additional linear constraints and the averaging technique cannot be applied directly. The extensive literature has concentrated on open curves, and these open-curve techniques cannot be transferred directly to the periodic setting, which has received comparatively little attention.

For open-curve interpolation the widely used Schoenberg–Whitney condition [1] characterizes the parameters and knots for which the collocation matrix is nonsingular. However, no comparable condition is known for periodic B-spline curves, which have been approached mainly through empirical constructions tailored to particular degrees [3, 4, 5], and studies of periodic B-spline interpolation are comparatively few [6]. No simple characterization of the knot vectors for which the periodic interpolation system is solvable is available, and there is a lack of constructive rules that guarantee a well-conditioned interpolation system for periodic B-spline curves. The method proposed in this paper is intended to fill this gap.

This paper concerns the even-degree case and is built on a simple observation. For an even degree pp, the periodic collocation matrix is nonsingular whenever the domain knots and the interpolation parameters interlace, in the sense that the initial knot coincides with the first parameter and each interior knot lies strictly between two consecutive parameters (Figure 2 or 3). The parameters may be arbitrarily nonuniform, and every interior knot may be placed independently inside its interval, so that the interlacing condition describes not a single knot vector but a whole family of admissible ones. It is the periodic, even-degree counterpart of the Schoenberg–Whitney condition for open curves. In particular, because the shifted knots of the shifting method satisfy the left interlacing ordering, that method is guaranteed to be solvable, a fact previously justified only by an incorrect diagonal-dominance argument [4]. Unique solvability is thus guaranteed for a substantial set of knot vectors, and the remaining freedom can be used to improve the quality of the interpolating curve.

Figure 2. Interlacing with a common initial knot and parameter. Filled circles are interpolation parameters, and open diamonds are interior domain knots. The endpoints are identified by periodicity.

We use this freedom to place the knots by fairness optimization. Each interior knot is placed inside its admissible interval by one coefficient θi∈(0,1)\theta_i \in(0,1), and the coefficients are computed by locally minimizing a two-term fairness energy combining the first and second derivative energies of the resulting curve. The box constraint on the coefficients is removed by a logistic reparametrization, and the resulting unconstrained problem is solved numerically by a multi-start quasi-Newton method. Because the coefficients remain in the open unit interval at every iterate, the interlacing condition, and hence unique solvability, holds throughout the optimization. The resulting methods Opt-R and Opt-L are compared with the two deterministic even-degree constructions, the shifting method and the energy method [4], on four closed shapes with complex, nonuniform point distributions, using three parametrizations: chord-length, centripetal [7], and the improved parametrization of Fang and Hung [8].

The main contributions of this work can be summarized as follows:

  • Interlacing condition for unique solvability. We prove that for every even degree p≥2p \ge2 the periodic collocation matrix is nonsingular whenever the domain knots interlace with the parameters, in either the right or the left ordering. The parameters may be arbitrarily nonuniform, and the interior knots may be chosen independently within their intervals (Theorem 1 and Corollary 1).

  • Consequences for existing constructions. The interlacing condition explains why the empirical shifting method is solvable, despite the failure of Park’s diagonal-dominance argument [4].

  • Fairness-optimized knot placement. We turn the nn-parameter family of admissible knot vectors left by the interlacing condition into a fairness problem and treat it with a logistic reparametrization and a multi-start quasi-Newton local search that preserves admissibility at every iterate, yielding the two locally optimized constructions Opt-R and Opt-L (§ 5).

  • Comparison with deterministic even-degree constructions. We compare Opt-R and Opt-L with the shifting and energy methods using three parametrizations (chord-length, centripetal [7], and the improved parametrization of Fang and Hung [8]), and identify the trade-offs between fairness, conditioning, and computational cost (§ 6).

Table 1 contrasts the proposed approach with the standard knot-selection strategies and highlights the theoretical guarantee that the existing constructions lack.

MethodCategoryStrategyAdvantagesDisadvantages
Averaging [1, 2]OpenAverage of pp consecutive parameters.Standard for open curves; banded totally positive system.Not applicable to periodic curves; ill-conditioned or singular for even degree.
Shifting [4]ClosedHalf-spans of adjacent parameters; shifts the parameters.Simple; direct construction.Empirical; no theoretical proof or conditioning guarantee.
Energy [4, 5]ClosedExtra control point; constrained energy minimization.Low energy; smooth curves.Empirical; no theoretical guarantee that the collocation matrix has full rank.
Opt-R, Opt-L (this paper)ClosedInterlaced knots; fairness-energy minimization.Solvability guaranteed at any even degree; knot freedom; proves shifting solvable.Sufficient only; even degree; multi-start cost.

Table 1. Comparison of knot-selection strategies for B-spline curve interpolation.

The rest of the paper is organized as follows. § 2 reviews the related work on B-spline curve interpolation. § 3 introduces the technical background and states the problem addressed in the paper. § 4 proves the interlacing condition for unique solvability. § 5 formulates the fairness-optimized knot placement problem and its local numerical solution. § 6 presents experimental results, and § 7 concludes the paper and outlines future work.

Related work

This section reviews the main lines of work related to B-spline curve interpolation: the parametrization of the data, the determination of the knot vector, the optimization strategies that treat parameters and knots as unknowns, and the numerical conditions that guarantee a well-posed interpolation.

Data parametrization

Parametrization maps each data point to a value in the parameter domain, and the quality of an interpolation curve depends heavily on this mapping. Several classical strategies are in common use. The uniform method distributes the parameters evenly, the chord length method [2] distributes them in proportion to the distance between consecutive points, and the centripetal method of Lee [7] uses the square root of that distance. Foley and Nielson [9] take the angle between neighbouring segments into account so as to obtain a parametrization that is invariant under affine transformations, whereas Lim [10] and Jung and Kim [11] place a node where the corresponding B-spline basis function attains its maximum. None of these heuristics is universally satisfactory: uniform parameters can generate loops or oscillations when the points are unevenly spaced, chord length parameters are sensitive to abrupt changes of direction, while centripetal parameters are more robust in such cases. Subsequent work has refined the centripetal idea to suppress undesirable wiggle [8], or has combined the geometric and basis-oriented viewpoints in hybrid schemes [12]. Dynamic and modified chord length variants [13, 14], as well as node rules derived from local cubic polynomials [15], follow the same heuristic philosophy.

More recently, data-driven approaches have been explored. Laube et al. [16] train a deep network to predict the parameters and knots of an approximating curve, Scholz and Jüttler [17] use a residual network to parametrize polynomial curves, and Song et al. [18] learn a hybrid parametrization by supervised learning, while Lin and Feng [19] regress the parameters for B-spline curve interpolation. Tang and Yang [20] propose a network that directly produces the parametrization for B-spline approximation, and extend it to the joint prediction of knots and parameters [21]; a recent review surveys this family of methods [22]. Such methods adapt well to the statistics of the training data, but their behaviour depends on the training set, generalization is not guaranteed, and they provide no optimality statement for an individual dataset.

Knot determination with prescribed parameters

Once the parameters have been prescribed, the knot vector still has to be determined, and different knots lead to different curves and to different conditioning of the interpolation system. For an open curve the standard tool is the averaging technique [1, 2], in which each interior knot is the average of pp consecutive parameters (here pp is the degree of the spline); the resulting system matrix is totally positive and banded with a semi-bandwidth smaller than pp, so that it can be solved by Gaussian elimination without pivoting [1, 2]. The knots thereby reflect the distribution of the parameters.

For periodic B-spline curve interpolation the averaging technique cannot be applied directly, because the cyclic structure of the curve introduces additional linear constraints. The situation depends on the parity of the degree. When the degree is odd, averaging [3] and natural [1] strategies perform well. When the degree is even, however, averaging tends to produce an ill-conditioned system matrix and may even make it singular [4]. To overcome this difficulty, Park [4] introduced the shifting and energy methods. The shifting method builds every knot span from halves of two adjacent parameter spans and translates the parameters by half of the last span, while the energy method increases the number of control points by one, takes parameter midpoints as knots, and recovers the control points by a strain energy minimization under linear constraints [5]. Both produce visually pleasant curves, but the shifting method displaces the parameters, so the start of the parameter domain is not the first data point. Figure 1 summarizes the methods discussed above.

Overview of knot determination methods for B-spline curve interpolation

Figure 1. Overview of knot determination methods for B-spline curve interpolation. For a periodic B-spline curve the available methods depend on the parity of the degree: averaging and natural methods are for odd degrees, while the shifting and energy methods were introduced for even degrees.

However, the shifting method is empirical; in particular, Park [4] argues that simple pivoting makes its collocation matrix strictly diagonally dominant. This claim is false; Appendix C gives a counterexample. This does not prevent the shifting method from being solvable: each shifted domain knot is the midpoint of two consecutive shifted parameters, so the shifted knots satisfy the left interlacing condition (10), and Corollary 1 guarantees that the shifting system is nonsingular. The energy method is empirical as well: its constrained minimum is characterized by the KKT system (23), whose solvability requires the rectangular collocation matrix to have full row rank [23, 24], a property that is not proved in Park’s work.

Optimization-based approaches

A parallel line of research also addresses B-spline curve interpolation, treating the parameters, the knot vector, and the control points as unknowns of an optimization problem; formulations developed for curve approximation are not considered here. The parameters have also been optimized, for example by Kouibia et al. [25], who optimize the parameters of cubic spline interpolation. Since the knot vector controls both the shape and the solvability of the interpolation system, other works optimize the knots directly. Thakur characterizes optimal interpolatory quadratic splines with free knots as a convex program [26] and later solves a linear-programming relaxation for near-optimal free-knot splines [27]; Suchomski [28] minimizes a discrete L2L_2 error over variable knots; and Idais et al. [29] allocate the knots of cubic and bicubic interpolants with a multi-objective genetic algorithm.

More recent methods optimize the degrees of freedom jointly. Zhang et al. [30] directly minimize a curve-quality functional over the control points, the parameters, and the knot vector at the same time; they reformulate the interpolation constraints as an unconstrained problem and prove that the distance between the resulting curve and the data points is bounded. Hu and Zhang [31] search for nodes and knots with the NSGA-II multi-objective evolutionary algorithm, constraining the control points and the tangent directions. Because these problems remain high-dimensional and nonconvex, the optimization-based methods are computationally expensive and prone to local minima. All of these studies, however, concern open curves; the optimization-based treatment of periodic B-spline curve interpolation has been largely neglected.

Numerical stability conditions

For open B-spline curve interpolation, the classical Schoenberg–Whitney theorem [1] is the necessary and sufficient condition for the interpolation matrix to be nonsingular: every data parameter must lie strictly inside the support of the corresponding B-spline basis function. This condition is the basis of the numerical stability of open-curve B-spline interpolation.

The periodic setting is structurally different. Because the knot vector is cyclic and the control points wrap around, the collocation matrix is no longer a finite banded matrix on an interval but a cyclically banded, circulant-like matrix on a circle, so the classical Schoenberg–Whitney theorem cannot be applied in its original form. The natural periodic analogue replaces the support of a basis function by a window of consecutive knots centred on each parameter: each parameter must lie strictly inside a window whose size depends on the degree, comprising a parity-dependent number of knots on either side of the parameter. This periodic window condition was proposed by Tang [6] as the periodic counterpart of the Schoenberg–Whitney condition, with the claim that it guarantees a nonsingular square periodic collocation matrix. However, the proposed condition is not valid: Appendix § 10 gives a uniform-knot configuration that satisfies it while the periodic collocation matrix is singular. This disproves Tang’s condition, and the exact characterization of the knots and parameters for which the periodic collocation matrix is nonsingular remains an open problem. The interlacing condition studied in this paper is a sufficient condition of a different, constructive type: it prescribes a family of knots for which nonsingularity is guaranteed at every even degree.

Problem statement and preliminaries

For the reader’s convenience, Table 2 collects the principal symbols and the methods compared in this paper.

SymbolMeaning
pp, nneven degree; last data-point index (n+1n+1 points)
Qi\mathbf{Q}_idata points, 0≤i≤n0 \le i \le n
tit_iinterpolation parameters, 0=t0<t1<⋯<tn<10=t_0<t_1<\cdots<t_n<1
uiu_idomain knots, 0=u0<⋯<un+1=10=u_0<\cdots<u_{n+1}=1
Nj,p\mathcal{N}_{j,p}periodic B-spline basis functions, 0≤j≤n0 \le j \le n
C~(u)\widetilde{\mathbf{C}}(u)periodic B-spline curve, (4)
Nper\mathbf{N}_{\mathrm{per}}periodic collocation matrix, (6)
K\mathbf{K}stiffness matrix of the fairness energy, (15)
α\alpha, β\betastretching and bending weights of FF
θi\theta_i, Θ\boldsymbol{\Theta}, x\mathbf{x}knot coefficients, their vector, and unconstrained variables with θi=σ(xi)\theta_i=\sigma(x_i)
F(Θ)F(\boldsymbol{\Theta})fairness energy of a knot vector, (14)
Opt-R, Opt-Loptimized right/left interlacing (Algorithm 1)
shifting methodPark’s shifting construction [4]
energy methodPark’s constrained energy minimizer [5]

Table 2. Notation, definitions, and the methods compared in this paper.

Let pp be an even integer with 2≤p≤n2 \le p \le n, and let Q0,…,Qn\mathbf{Q}_0,\ldots,\mathbf{Q}_n be data points in a Euclidean space, with prescribed parameters T(ti)={t0,…,tn}\mathbf{T}(t_i)=\{t_0,\ldots,t_n\} satisfying

0=t0<t1<⋯<tn<1.(1)0=t_0<t_1<\cdots<t_n<1. \tag*{(1)}

We seek a periodic B-spline curve interpolating these data at the given parameters. The period is fixed at 1. We set tn+1=1t_{n+1}=1 to describe the final parameter interval; it is not an additional interpolation parameter.

Let the simple domain knots satisfy

0=u0<u1<⋯<un<un+1=1,ui+n+1=ui+1(i∈Z).(2)0=u_0<u_1<\cdots<u_n<u_{n+1}=1,\qquad u_{i+n+1}=u_i+1\quad(i\in\mathbb{Z}). \tag*{(2)}

Let Ni,pN_{i,p} denote the normalized B-spline of degree pp associated with the extended knot sequence [32 Definition 4.19]. We index these functions so that Ni,pN_{i,p} has support [ui−p,ui+1][u_{i-p},u_{i+1}]. Define the periodic basis functions by

Nj,p(u)=∑ℓ∈ZNj+ℓ(n+1),p(u),0≤j≤n.(3)\mathcal{N}_{j,p}(u)=\sum_{\ell\in\mathbb{Z}}N_{j+\ell(n+1),p}(u),\qquad0\leq j\leq n. \tag*{(3)}

The sum is locally finite. The periodic B-spline curve is

C~(u)=∑j=0nNj,p(u)Pj,0≤u≤1,(4)\widetilde{C}(u)=\sum_{j=0}^{n}\mathcal{N}_{j,p}(u)\mathbf{P}_j,\qquad0\leq u\leq1, \tag*{(4)}

where P0,…,Pn\mathbf{P}_0,\ldots,\mathbf{P}_n are the unknown control points. The knot extension makes these functions 1-periodic. For simple knots, the ordinary B-splines are Cp−1C^{p-1} and have polynomial pieces of degree at most pp [32 Theorem 4.14]; the locally finite sums in (3) inherit these properties. In particular, the curve and its derivatives through order p−1p-1 agree at the endpoints of the period.

The interpolation conditions are

C~(ti)=Qi,0≤i≤n.(5)\widetilde{C}(t_i)=\mathbf{Q}_i,\qquad0\leq i\leq n. \tag*{(5)}

Writing P=(P0,…,Pn)T\mathbf{P}=(\mathbf{P}_0,\ldots,\mathbf{P}_n)^{\mathsf{T}} and Q=(Q0,…,Qn)T\mathbf{Q}=(\mathbf{Q}_0,\ldots,\mathbf{Q}_n)^{\mathsf{T}}, these conditions give the square system

NperP=Q,Nper=(Nj,p(ti))0≤i,j≤n.(6)N_{\mathrm{per}}\mathbf{P}=\mathbf{Q},\qquad N_{\mathrm{per}}=\left(\mathcal{N}_{j,p}(t_i)\right)_{0\leq i,j\leq n}. \tag*{(6)}

Unique control points exist for arbitrary data precisely when NperN_{\mathrm{per}} is nonsingular.

We will also use the linear independence of the periodic functions. If ∑j=0najNj,p=0\sum_{j=0}^{n}a_j\mathcal{N}_{j,p}=0, extending the coefficients by ai+n+1=aia_{i+n+1}=a_i gives the locally finite identity

∑j=0najNj,p(u)=∑i∈ZaiNi,p(u)=0.(7)\sum_{j=0}^{n}a_j\mathcal{N}_{j,p}(u)=\sum_{i\in\mathbb{Z}}a_iN_{i,p}(u)=0. \tag*{(7)}

On (uk,uk+1)(u_k,u_{k+1}), the active ordinary B-splines are Nk,p,…,Nk+p,pN_{k,p},\ldots,N_{k+p,p}. Their local linear independence [32 Theorem 4.18] forces ak=⋯=ak+p=0a_k=\cdots=a_{k+p}=0. Varying kk proves that all coefficients vanish.

Interlacing domain knots and unique solvability

We give a constructive sufficient condition on the domain knots that makes the periodic collocation matrix nonsingular for every even degree. The condition is an interlacing of the knots with the parameters: around the period the two families alternate. We first treat the right ordering, in which each interior knot follows its corresponding parameter, and then obtain the left ordering by reflection.

Theorem 1 (Right interlacing). Let the parameters and domain knots satisfy (1) and (2), and let pp be even with 2≤p≤n2\leq p\leq n. If

u0=t0=0,ti<ui<ti+1(1≤i≤n),un+1=1,(8)u_0=t_0=0,\qquad t_i<u_i<t_{i+1}\quad(1\leq i\leq n),\qquad u_{n+1}=1, \tag*{(8)}

then NperN_{\mathrm{per}} is nonsingular. Consequently, for arbitrary data Q0,…,Qn\mathbf{Q}_0,\ldots,\mathbf{Q}_n, there is exactly one curve of the form (4) satisfying (5).

Figure 2 illustrates the ordering in (8).

The proof, which uses two auxiliary lemmas, is given in Appendix § 9.

The knot condition can be met directly by choosing any 0<θi<10 < \theta_i < 1 and setting

ui=ti+θi(ti+1−ti),1≤i≤n,(9)u_i = t_i + \theta_i(t_{i+1} - t_i), \qquad1 \le i \le n, \tag*{(9)}

with u0=0u_0 = 0 and un+1=1u_{n+1} = 1. Every such choice satisfies Theorem 1. The same conclusion holds for the opposite ordering, in which every interior knot precedes its corresponding parameter.

Corollary 1 (Left interlacing). The conclusion of Theorem 1 also holds when (8) is replaced by

u0=t0=0,ti−1<ui<ti(1≤i≤n),un+1=1.(10)u_0 = t_0 = 0,\qquad t_{i-1} < u_i < t_i \qquad(1 \le i \le n),\qquad u_{n+1} = 1. \tag*{(10)}

The same left interlacing condition (10) was previously put forward, as Conjecture 1, by Tang [33] in the context of lofted B-spline surface interpolation to serial closed contours, where it was supported by numerical experiments but not proved. Corollary 1 establishes it rigorously for every even degree p≥2p \ge2. The left ordering (10) is depicted in Figure 3.

Figure 3. Left interlacing: each interior domain knot uiu_i lies strictly between ti−1t_{i-1} and tit_i. Filled circles are interpolation parameters, and open diamonds are interior domain knots. The endpoints are identified by periodicity.

Proof. Reflect the parameter by u↦1−uu \mapsto1-u. Set t^0=u^0=0\widehat{t}_0 = \widehat{u}_0 = 0, t^n+1=u^n+1=1\widehat{t}_{n+1} = \widehat{u}_{n+1} = 1, and

t^i=1−tn+1−i,u^i=1−un+1−i,1≤i≤n.\widehat{t}_i = 1 - t_{n+1-i}, \qquad\widehat{u}_i = 1 - u_{n+1-i}, \qquad1 \le i \le n.

Then (10) implies t^i<u^i<t^i+1\widehat{t}_i < \widehat{u}_i < \widehat{t}_{i+1} for 1≤i≤n1 \le i \le n. Take an Npera=0\mathbf{N}_{\mathrm{per}}\mathbf{a} = 0, and let s=∑j=0n−1ajNj,ps = \sum_{j=0}^{n-1} a_jN_{j,p}. The function s^(v)=s(1−v)\widehat{s}(v) = s(1-v) is periodic and Cp−1C^{p-1}, has polynomial pieces of degree at most pp on the reflected knot intervals, and vanishes at every t^i\widehat{t}_i. The homogeneous-spline argument in the proof of Theorem 1 therefore gives s^≡0\widehat{s} \equiv0, hence s≡0s \equiv0. Linear independence of the original periodic basis gives a=0\mathbf{a} = 0. Thus Nper\mathbf{N}_{\mathrm{per}} is nonsingular, and the interpolation conclusion follows.

In this ordering the direct knot choices are

ui=ti−1+θi(ti−ti−1),0<θi<1,1≤i≤n,(11)u_i = t_{i-1} + \theta_i(t_i - t_{i-1}), \qquad0 < \theta_i < 1,\qquad1 \le i \le n, \tag*{(11)}

with the same endpoints. Both results establish unique solvability for each admissible choice.

Fairness-optimized knot placement

The interlacing condition guarantees unique solvability for a whole family of knot vectors, but the resulting curves differ in quality. A standard way to measure this quality is the fairness (strain) energy of the curve [34, 35], a quadratic functional commonly used to penalize stretching and bending and to favor smoother, better distributed curves. We select admissible interlacing knots by locally optimizing this energy, which yields two fairness-optimized constructions: Opt-R for the right ordering and Opt-L for the left ordering. Each interior knot is determined by a single convex-combination weight θi\theta_i, 0<θi<10 < \theta_i < 1 (1≤i≤n)(1 \le i \le n):

Opt-R:ui=ti+θi(ti+1−ti),1≤i≤n,Opt-L:ui=ti−1+θi(ti−ti−1),1≤i≤n.(12)\begin{aligned} \text{Opt-R:}\quad&u_i = t_i + \theta_i(t_{i+1} - t_i), && 1 \le i \le n,\\ \text{Opt-L:}\quad&u_i = t_{i-1} + \theta_i(t_i - t_{i-1}), && 1 \le i \le n. \tag*{(12)} \end{aligned}
ui=ti−1+θi(ti−ti−1),1≤i≤n,(13)u_i = t_{i-1} + \theta_i(t_i - t_{i-1}), \qquad1 \le i \le n, \tag*{(13)}

with u0=t0=0u_0 = t_0 = 0 and un+1=tn+1=1u_{n+1} = t_{n+1} = 1. For a given knot vector the curve is uniquely determined by (6), and the fairness energy can be written in terms of the control points and a stiffness matrix. Let b(u)=(N0,p(u),…,Nn,p(u))T\mathbf{b}(u) = (\mathcal{N}_{0,p}(u), \ldots, \mathcal{N}_{n,p}(u))^{\mathsf{T}} be the periodic basis vector, with first and second derivatives b(1)\mathbf{b}^{(1)} and b(2)\mathbf{b}^{(2)}. Then

F(Θ)=α∫01∥C~′(u)∥2 du+β∫01∥C~′′(u)∥2 du=tr⁡(PTKP),(14)F(\boldsymbol{\Theta}) = \alpha\int_0^1 \lVert\widetilde{\mathbf{C}}'(u)\rVert^2\,du + \beta\int_0^1 \lVert\widetilde{\mathbf{C}}''(u)\rVert^2\,du = \operatorname{tr}(\mathbf{P}^{\mathsf{T}}\mathbf{K}\mathbf{P}), \tag*{(14)}

where

K=∫01(αb(1)(u)b(1)(u)T+βb(2)(u)b(2)(u)T) du(15)\mathbf{K} = \int_0^1 \left(\alpha\mathbf{b}^{(1)}(u)\mathbf{b}^{(1)}(u)^{\mathsf{T}} + \beta\mathbf{b}^{(2)}(u)\mathbf{b}^{(2)}(u)^{\mathsf{T}}\right)\,du \tag*{(15)}

is the stiffness matrix, computed by Gaussian quadrature or analytically [36]; P=Nper−1Q\mathbf{P} = \mathbf{N}_{\mathrm{per}}^{-1}\mathbf{Q} by (6), and α≥0\alpha\ge0 and β≥0\beta\ge0 are the stretching and bending coefficients [4, 5]; we use α=1\alpha= 1 and β=0.2\beta= 0.2.

Both K\mathbf{K} and Nper\mathbf{N}_{\mathrm{per}} depend on the knot vector, hence on Θ\mathbf{\Theta}, so F(Θ)F(\mathbf{\Theta}) is a function of Θ=(θ1,…,θn)\mathbf{\Theta} = (\theta_1,\ldots,\theta_n) only. Although the fairness energy is quadratic in the control points for fixed knots, the matrices Nper(Θ)\mathbf{N}_{\mathrm{per}}(\mathbf{\Theta}) and K(Θ)\mathbf{K}(\mathbf{\Theta}) depend nonlinearly on the knot coefficients. The resulting finite-dimensional problem is therefore generally nonconvex, so the numerical procedure below is a local optimization strategy. We search for an admissible knot vector with 0<θi<10 < \theta_i < 1 (1≤i≤n1 \leq i \leq n). The box constraint is removed by the logistic substitution θi=1/(1+e−xi)\theta_i = 1/(1 + e^{-x_i}) with xi∈Rx_i \in\mathbb{R}, and the transformed objective is treated with the quasi-Newton (BFGS) method [37], initialized from the two empirical values θi=0.5\theta_i = 0.5 and θi=0.3\theta_i = 0.3. Among the candidates returned by these runs, the one with the smallest computed energy is retained. Because θi∈(0,1)\theta_i \in(0,1) is preserved at every iterate, the interlacing conditions (12)–(13) hold throughout, so the interpolation matrix is always nonsingular. The procedure is summarized in Algorithm 1, where δ\delta selects the ordering.

Algorithm 1 Fairness-optimized interlacing knots (δ=right\delta= \text{right}: Opt-R; δ=left\delta= \text{left}: Opt-L)

Require: data points Q0,…,Qn\mathbf{Q}_0,\ldots,\mathbf{Q}_n; even degree pp, 2≤p≤n2 \leq p \leq n; weights α,β\alpha,\beta; direction δ∈{right,left}\delta\in\{\text{right},\text{left}\}

Ensure: admissible knots u0<⋯<un+1u_0 < \cdots< u_{n+1}, control points P\mathbf{P}, interpolating curve C~\widetilde{\mathbf{C}}, best computed energy F(Θ⋆)F(\mathbf{\Theta}^{\star})

  1. compute parameters 0=t0<⋯<tn<10 = t_0 < \cdots< t_n < 1; set tn+1=1t_{n+1} = 1

  2. set σ(s)=1/(1+e−s)\sigma(s) = 1/(1 + e^{-s}), u0←0u_0 \leftarrow0, un+1←1u_{n+1} \leftarrow1

  3. for 1≤i≤n1 \leq i \leq n, set ui(Θ)←{ti+θi(ti+1−ti),δ=right,ti−1+θi(ti−ti−1),δ=leftu_i(\mathbf{\Theta}) \leftarrow\begin{cases} t_i + \theta_i(t_{i+1} - t_i), & \delta= \text{right}, \\ t_{i-1} + \theta_i(t_i - t_{i-1}), & \delta= \text{left} \end{cases}

  4. function F(x)F(\mathbf{x}) ▷ fairness energy of the interpolant

  5. Θ←σ(x)\mathbf{\Theta} \leftarrow\sigma(\mathbf{x})

  6. build u(Θ)\mathbf{u}(\mathbf{\Theta}), Nper(Θ)\mathbf{N}_{\mathrm{per}}(\mathbf{\Theta}), K(Θ)\mathbf{K}(\mathbf{\Theta}) ▷ u=(u0,…,un+1)\mathbf{u} = (u_0,\ldots,u_{n+1}): domain knots

  7. solve NperP=Q\mathbf{N}_{\mathrm{per}}\mathbf{P} = \mathbf{Q}

  8. return tr⁡(PTKP)\operatorname{tr}(\mathbf{P}^{\mathsf{T}}\mathbf{K}\mathbf{P})

  9. end function

  10. I←{0.5,0.3}\mathcal{I} \leftarrow\{0.5, 0.3\} ▷ empirical initial values of θi\theta_i

  11. for θ(0)∈I\theta^{(0)} \in\mathcal{I} do

  12. Θ(0)←(θ(0),…,θ(0))\mathbf{\Theta}^{(0)} \leftarrow(\theta^{(0)},\ldots,\theta^{(0)})

  13. x⋆←BFGS⁡(F,logit⁡(Θ(0)))\mathbf{x}^{\star} \leftarrow\operatorname{BFGS}(F,\operatorname{logit}(\mathbf{\Theta}^{(0)})) ▷ logit⁡=σ−1\operatorname{logit} = \sigma^{-1}

  14. Θ⋆←σ(x⋆)\mathbf{\Theta}^{\star} \leftarrow\sigma(\mathbf{x}^{\star})

  15. end for

  16. retain, among the computed candidates, the Θ⋆\mathbf{\Theta}^{\star} with the smallest computed value of FF

  17. build u⋆←u(Θ⋆)\mathbf{u}^{\star} \leftarrow\mathbf{u}(\mathbf{\Theta}^{\star}); solve Nper(u⋆)P⋆=Q\mathbf{N}_{\mathrm{per}}(\mathbf{u}^{\star})\mathbf{P}^{\star} = \mathbf{Q}

  18. return u⋆\mathbf{u}^{\star}, P⋆\mathbf{P}^{\star}, C~(u)=b(u)TP⋆\widetilde{\mathbf{C}}(u) = \mathbf{b}(u)^{\mathsf{T}}\mathbf{P}^{\star}, F(Θ⋆)F(\mathbf{\Theta}^{\star})

Experimental results

The methods are implemented in C and Wolfram Language. This section evaluates the optimized interlacing methods on four closed polygonal data sets with complex, nonuniform point distributions, at degrees p=2p = 2 and p=4p = 4. The data sets, referred to as rabbit, octopus, giraffe, and fingers and shown in Figure 4, are each centered at the origin and scaled to unit bounding-box diagonal, so that the curvature-based quantities are comparable across shapes. The first two, rabbit and octopus, have 19 and 20 vertices and are processed at degrees p=2p = 2 and p=4p = 4, respectively. The third, giraffe, has 27 vertices and is processed at p=2p = 2; with several sharp corners, it is the most irregular of the four. The fourth, fingers, has 20 vertices and is processed at p=4p = 4.

Figure 4. The four data sets used in the experiments: rabbit (19 vertices, degree p=2p = 2), octopus (20 vertices, p=4p = 4), giraffe (27 vertices, degree p=2p = 2), and fingers (20 vertices, p=4p = 4). Each data set is normalized to unit bounding-box diagonal; the first and last vertices are marked in magenta and cyan, respectively.

Every data set is interpolated with three parametrizations, namely the classical chord-length and centripetal methods [7] and the improved parametrization of Fang and Hung [8] (denoted fang2013), and with four constructions: the optimized interlacing methods Opt-R and Opt-L of Section 5, together with Park’s shifting and energy methods [4]. Appendix D recalls the two deterministic constructions, Section 6.1 defines the quality metric, and the rest of this section reports the results.

Quality metric

To evaluate the quality of an interpolation curve we use the metric of Fang and Hung [8],

WC=1n+1∑i=0n(1+Ki)Di,(16)W_C = \frac{1}{n+1}\sum_{i=0}^{n}(1+K_i)D_i, \tag*{(16)}

where KiK_i is the maximum absolute curvature of the curve on the iith parameter interval and DiD_i is the maximum deviation of the curve from the corresponding data segment,

Di=max⁡ti<t<ti+1dist⁡(C~(t),Li),Li=QiQi+1‾,(17)D_i = \max_{t_i<t<t_{i+1}}\operatorname{dist}(\widetilde{C}(t),L_i), \qquad L_i = \overline{Q_iQ_{i+1}}, \tag*{(17)}

with dist⁡(C~(t),Li)\operatorname{dist}(\widetilde{C}(t),L_i) the distance from the curve point C~(t)\widetilde{C}(t) to the segment LiL_i. For a periodic curve the data are closed and there are n+1n+1 segments: the last interval (tn,tn+1)(t_n,t_{n+1}), with tn+1=1t_{n+1}=1, corresponds to the closing segment Ln=QnQ0‾L_n=\overline{Q_nQ_0}, and the index in (17) is taken modulo n+1n+1. A smaller WCW_C indicates a curve that follows the data polyline closely while bending little.

Reconstructed curves and knot placement

In each of Figure 5–Figure 8 the top panel overlays the four interpolants obtained for each data set and parametrization. All constructions interpolate the data exactly, and their curves are visually indistinguishable along the smooth parts of the polygons; they differ only near highly curved vertices, where the placement of the interior knots determines how early the curve has to turn. This confirms that the freedom left by the interlacing condition is an effective degree of freedom that the four constructions resolve in different ways. The middle panel shows the full reconstructions, including the control polygons and the data points, with the fairness energy FF of each construction printed above it, and the bottom panel displays the resulting knot and parameter placement: the shifting and energy methods place their knots at the midpoints of consecutive parameters, while Opt-R and Opt-L distribute them nonuniformly according to θ\theta (Figure 9).

Figure 5. rabbit (p=2p = 2, 19 vertices): interpolants of the four constructions under the three parametrizations (top), reconstructions with control polygons and data points (middle), and knot/parameter placement (bottom).

Figure 8. fingers (p=4p = 4, 20 vertices): interpolants of the four constructions under the three parametrizations (top), reconstructions with control polygons and data points (middle), and knot/parameter placement (bottom).

Optimized knot coefficients versus the data-point index for the two interlacing methods

Figure 9. Optimized knot coefficients θi\theta_i versus the data-point index for the two interlacing methods. Top, degree p=2p = 2: rabbit (left) and giraffe (right); bottom, degree p=4p = 4: octopus (left) and fingers (right).

Two of the data sets deserve particular attention. In Figure 6 (octopus) the optimized interlacing is clearly superior: Opt-R and Opt-L produce visually pleasing curves, whereas the centered shifting and energy constructions exhibit small self-intersections under chord-length parametrization. Since all four constructions use the same parameters and differ only in the placement of the interior knots, this comparison isolates the effect of knot placement and shows that the optimized interlacing avoids the artifacts introduced by centered knots. Because the metric (16) does not penalize self-intersections, this visual improvement is not reflected in Table 5, where the centered knots can show a smaller WCW_C. In Figure 8 (fingers), by contrast, all four constructions produce self-intersecting curves under chord-length parametrization. Here the interior knots are no longer the deciding factor: the artifact originates in the parametrization, and no admissible knot placement remedies it. This is the same phenomenon that occurs in open-curve interpolation, where the parametrization governs the shape and, in particular, the appearance of self-intersections. The two cases therefore complement each other and illustrate the interplay between parametrization and knot placement: knot optimization is effective when the knots are the limiting factor, whereas a poor parametrization cannot be compensated by any knot placement.

Figure 6. octopus (p=4p = 4, 20 vertices): interpolants of the four constructions under the three parametrizations (top), reconstructions with control polygons and data points (middle), and knot/parameter placement (bottom).

DataParam.Opt-ROpt-Lshiftingenergy
rabbit (p=2p = 2)chord0.55600.52410.43710.4807
rabbit (p=2p = 2)centripetal0.50040.47100.40620.4612
rabbit (p=2p = 2)fang20130.50720.47060.40490.4630
octopus (p=4p = 4)chord2.07182.07391.8873†1.9331†
octopus (p=4p = 4)centripetal2.19142.19441.93981.9842
octopus (p=4p = 4)fang20132.17062.17361.93441.9782
giraffe (p=2p = 2)chord0.54850.58800.53500.5367
giraffe (p=2p = 2)centripetal0.49950.52370.48110.4820
giraffe (p=2p = 2)fang20130.49470.52060.47770.4788
fingers (p=4p = 4)chord5.2360†5.2367†10.7566†10.6820†
fingers (p=4p = 4)centripetal3.60073.66402.57482.6031
fingers (p=4p = 4)fang20133.48243.54332.53842.5664

Table 5. Fang–Hung quality metric WCW_C (smaller is better) for the four data sets. † marks an interpolation curve that self-intersects.

Figure 9 shows the optimized knot coefficients θi\theta_i of Opt-R and Opt-L. Their values vary substantially from vertex to vertex and track the local geometry: for the irregular data set giraffe the coefficients range over nearly the whole admissible interval [0,1][0,1], whereas for the smoother sets they remain closer to the midpoint 1/21/2. The right and left orderings produce visibly different patterns, reflecting that they move each knot against the two different bounding parameters. For the centripetal and fang2013 parametrizations the two θi\theta_i curves in Figure 9 are very close to each other but not identical. This is a geometric effect rather than a numerical coincidence: the two parametrizations themselves differ only slightly, and near the optimum a small change of a knot has only a second-order effect on the curve, so both parametrizations drive the coefficients to almost the same values. The resulting curves agree to about 0.1% of the shape size, even though the underlying parameter vectors differ by up to 7.2×10−37.2 \times10^{-3} and the fairness energy still differs by roughly 1.5%.

Table 3 lists the condition numbers κ2(Nper)\kappa_2(N_{\mathrm{per}}) of the periodic collocation matrices. The parametrization has the strongest influence: chord-length yields the largest condition numbers, whereas centripetal and fang2013 reduce them by roughly a factor of two, for example from 5.71 to 2.57 for giraffe and from 11.98 to 6.41 for fingers. The four constructions have condition numbers of the same order; the optimized interlacing methods Opt-R and Opt-L are close to the deterministic shifting and energy constructions. All values remain moderate, the largest being about 14.6 for fingers under chord-length, which is consistent with the nonsingularity guaranteed by Theorem 1 and indicates that the admissible knot placements are numerically safe.

DataParam.Opt-ROpt-Lshiftingenergy
rabbit (p=2p = 2)chord4.0473.0323.0853.083
rabbit (p=2p = 2)centripetal3.3632.6702.1782.166
rabbit (p=2p = 2)fang20133.3592.6832.1772.164
octopus (p=4p = 4)chord5.4945.5015.3535.029
octopus (p=4p = 4)centripetal5.1045.1214.9134.756
octopus (p=4p = 4)fang20135.1005.1194.9114.756
giraffe (p=2p = 2)chord5.7116.1415.6205.554
giraffe (p=2p = 2)centripetal2.5662.9212.5752.554
giraffe (p=2p = 2)fang20132.5812.9282.5872.567
fingers (p=4p = 4)chord11.97611.98014.62114.536
fingers (p=4p = 4)centripetal6.4106.4256.2926.260
fingers (p=4p = 4)fang20136.4456.4606.3816.352

Table 3. Condition numbers κ2(Nper)\kappa_2(\mathbf{N}_{\mathrm{per}}) of the interpolation systems for the four data sets.

The fairness energy FF is collected in Table 4. All four constructions give values within a few percent of one another, and the smallest value alternates between the energy method and the optimized methods. Differences between the parametrizations are larger: relative to chord-length, centripetal reduces FF by about a third for giraffe (5437 versus 8050) and by roughly a fifth for rabbit and a seventh for fingers, while for octopus the three parametrizations give similar values.

DataParam.Opt-ROpt-Lshiftingenergy
rabbit (p=2p = 2)chord1596.751629.961528.571527.37
rabbit (p=2p = 2)centripetal1267.691307.491223.131222.10
rabbit (p=2p = 2)fang20131275.511316.001231.261230.23
octopus (p=4p = 4)chord3200.073200.193217.093216.40
octopus (p=4p = 4)centripetal3162.783163.223173.473172.51
octopus (p=4p = 4)fang20133167.213167.653177.923176.95
giraffe (p=2p = 2)chord8050.148533.888086.638052.81
giraffe (p=2p = 2)centripetal5436.895569.425451.195444.96
giraffe (p=2p = 2)fang20135527.275660.935540.955534.66
fingers (p=4p = 4)chord4168.824168.934274.764262.40
fingers (p=4p = 4)centripetal3548.073550.833548.273546.75
fingers (p=4p = 4)fang20133579.003581.663578.813577.24

Table 4. Fairness energy FF (smaller is better) of the interpolation systems for the four data sets.

Table 5 shows the Fang–Hung metric WCW_C of (16); smaller values indicate a curve that follows the data polygon closely while bending little. The shifting and energy methods attain the smallest values in most cases, which reflects that centered knots keep the deviation from the chords small for well-distributed parameters; the optimized methods are close to this baseline, within about fifteen percent for octopus, within a few percent for giraffe, and within about a quarter for rabbit. The notable exception is fingers under chord-length parametrization, where the centered constructions (shifting or energy) give WC≈10.7W_C \approx10.7, more than twice the value WC≈5.24W_C \approx5.24 of Opt-R and Opt-L. Here the strong nonuniformity of the chord-length parameters makes the centered knots deviate appreciably from the data polygon, whereas the optimized interlacing adapts the knots to the geometry and keeps the deviation small. Centripetal and fang2013 eliminate most of this discrepancy for fingers (WC≈2.5W_C \approx2.5 to 3.73.7). Thus no method is uniformly best: the parametrization and the knot placement interact, and the optimized interlacing provides a robust compromise.

Figure 7. giraffe (p=2p = 2, 27 vertices): interpolants of the four constructions under the three parametrizations (top), reconstructions with control polygons and data points (middle), and knot/parameter placement (bottom).

Finally, Table 6 compares the computation time of each construction. The two deterministic constructions are the fastest: both reduce to assembling and solving a single dense linear system and take well under a millisecond, the energy method being marginally more expensive because it solves a KKT system of about twice the size. The optimized methods Opt-R and Opt-L are about two orders of magnitude slower, their time being dominated by the multi-start optimization of the knot coefficients, but even for the most expensive case they require only about 0.1 s per parametrization. This is already practical for real applications, and further code-level optimization could reduce the running time even more.

DataParam.Opt-ROpt-Lshiftingenergy
rabbit (p=2p = 2)chord75.1878.690.320.73
rabbit (p=2p = 2)centripetal69.0981.860.150.34
rabbit (p=2p = 2)fang201376.8975.360.200.40
octopus (p=4p = 4)chord68.7369.400.220.50
octopus (p=4p = 4)centripetal74.7364.070.610.72
octopus (p=4p = 4)fang201368.0471.080.200.83
giraffe (p=2p = 2)chord74.0683.870.200.66
giraffe (p=2p = 2)centripetal86.7468.620.240.54
giraffe (p=2p = 2)fang201367.2172.080.250.55
fingers (p=4p = 4)chord84.9472.800.200.50
fingers (p=4p = 4)centripetal76.0673.840.400.92
fingers (p=4p = 4)fang201397.7093.340.270.53

Table 6. Computation time (in milliseconds) per data set, parametrization and construction.

Taken together, the experiments show that the interlacing constructions Opt-R and Opt-L are uniquely solvable and well conditioned for all four data sets and both degrees, with condition numbers comparable to those of the deterministic shifting and energy methods and markedly smaller under centripetal and fang2013 parametrization than under chord-length. Their curve quality, measured by WCW_C, is close to the best deterministic construction on smooth data and appreciably better on the difficult combination of fingers with chord-length parametrization. The optimized knot placement therefore recovers the geometric accuracy of the centered constructions (shifting or energy) while retaining the flexibility to adapt to irregular data. Additional examples, covering twelve further test shapes at degree p=2p = 2 with centripetal parametrization, are given in Appendix § 13.

Conclusions and future work

We have shown that the interlacing of the domain knots with the interpolation parameters is what makes the even-degree periodic B-spline interpolation problem uniquely solvable. The condition is constructive and mild: the endpoints are pinned, and every interior knot only has to lie somewhere inside the interval between two consecutive parameters. It therefore guarantees a nonsingular collocation matrix for a whole family of knot vectors, independently of how nonuniform the parameters are, and it covers both the right and the left ordering of the knots. The freedom left by the interlacing condition can be exploited directly. Locally optimizing one coefficient per interior knot gives a fairness-optimized knot placement procedure, implemented with a logistic reparametrization and a multi-start quasi-Newton search. The logistic substitution keeps every coefficient strictly inside the open unit interval, so the interlacing condition, and with it unique solvability, holds at every iterate of the optimization. The comparison with the shifting and energy methods shows that the locally optimized interlacing methods and the deterministic energy method achieve low fairness energies, that the shifting method is a cheap and well-conditioned alternative, and that centripetal parametrization is preferable to chord-length parametrization for the conditioning of the interpolation system. The shifting construction, widely used without a proof of solvability, is also covered by the interlacing theory: its collocation matrix is nonsingular, even though Park’s original diagonal-dominance argument does not hold (Appendix § 11).

From a practical viewpoint the running time of the optimized methods is modest. The deterministic shifting and energy constructions reduce to a single linear solve and are about two orders of magnitude faster, but even in the most expensive case Opt-R and Opt-L need only about 0.1 s per parametrization. This time is dominated by the multi-start search, so code-level optimization can reduce it further, and a tenth of a second is already negligible for interactive design and other typical CAGD tasks. The optimization therefore adds a guaranteed solvability criterion and adaptivity to irregular data at a cost that remains well within the practical budget.

Three directions stand out for future work. The first is to extend the interlacing analysis to odd degree. The present theory covers even degrees, for which the interlacing condition gives a constructive sufficient condition for nonsingularity; for odd degrees the situation is open, since the periodic window condition of § 2.4 fails in general (Appendix § 10). Identifying the window of admissible positions for each domain knot around its parameter that guarantees nonsingularity at odd degree would complete the solvability picture across all degrees. The second direction is a forward construction of the coefficients. Rather than selecting θi\theta_i through a multi-start local search on the fairness energy, it would be preferable to compute θi\theta_i directly from the data; a natural conjecture is that, at least for suitably regular data, the geometric midpoint θi=1/2\theta_i = 1/2 gives a reasonable or near-optimal choice. Establishing such a result would reduce the construction to an explicit formula. The third direction is the conditioning of the interpolation system: although the experiments indicate that the admissible knot placements are well conditioned, a rigorous bound on the condition number of the periodic collocation matrix, and its dependence on the parametrization, remains to be established. The same interlacing viewpoint should also extend to periodic tensor-product B-spline surfaces and to closed-contour lofting, where the point-wise method would be combined with a fairing term across the contours.

Declaration of competing interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Proofs for Section 4

Auxiliary lemmas

Distinct zeros x1<⋯<xk<x1+1x_1 < \cdots< x_k < x_1 + 1 of a continuous 1-periodic function ff are called separated if ff is not identically zero on any (xj,xj+1)(x_j, x_{j+1}), where xk+1=x1+1x_{k+1} = x_1 + 1. This definition includes k=1k = 1; the identically zero function has no nonempty set of separated zeros.

Lemma 1 (Separated zeros). Let q≥1q \ge1 be an integer. A 1-periodic Cq−1C^{q-1} function whose restriction to each knot interval [ui,ui+1][u_i, u_{i+1}] is a polynomial of degree at most qq has at most n+1n + 1 separated zeros in a period.

Proof of Lemma 1. Suppose a periodic C1C^1 function ff has kk separated zeros xjx_j. Between successive zeros choose an interior point yjy_j maximizing ∣f∣|f|. Then f′(yj)=0f'(y_j) = 0 and f(yj)≠0f(y_j) \ne0.

With yk+1=y1+1y_{k+1} = y_1 + 1, the point xj+1x_{j+1} lies between yjy_j and yj+1y_{j+1}. Since f(xj+1)=0f(x_{j+1}) = 0 and f(yj)≠0f(y_j) \ne0, f′f' is not identically zero between successive yjy_j, so these are kk separated zeros of f′f'. If a spline as in the statement has kk separated zeros, applying this argument q−1q-1 times gives kk separated zeros of its continuous piecewise linear (q−1)(q-1)st derivative. Between two consecutive such zeros there must be a knot in the open interval: otherwise the function would be affine there and zero at both endpoints, contrary to separation. The kk open intervals are disjoint on the circle, which contains only n+1n+1 knots. Therefore k≤n+1k \le n+1.

Lemma 2 (An identity for even-degree periodic splines). Let p=2rp=2r with an integer r≥1r \ge1, and let ss be a 11-periodic Cp−1C^{p-1} function whose polynomial pieces on the knot intervals have degree at most pp. Write κi\kappa_i for the constant value of s(p)s^{(p)} on (ui,ui+1)(u_i,u_{i+1}), and define

ci=κi−κi−1(0≤i≤n),κ−1=κn.c_i=\kappa_i-\kappa_{i-1}\quad(0\le i\le n),\qquad\kappa_{-1}=\kappa_n.

Then

∑i=0ncis(ui)=0.\sum_{i=0}^{n}c_i s(u_i)=0.

Proof of Lemma 2. Integration over the knot intervals and periodic reindexing give

∑i=0ncis(ui)=−∑i=0nκi(s(ui+1)−s(ui))=−∫01s′(u)s(2r)(u) du.\sum_{i=0}^{n}c_i s(u_i)=-\sum_{i=0}^{n}\kappa_i\bigl(s(u_{i+1})-s(u_i)\bigr)=-\int_0^1s'(u)s^{(2r)}(u)\,\mathrm{d}u.

The derivatives through order p−1p-1 are absolutely continuous and periodic. After r−1r-1 integrations by parts, the last expression is

(−1)r∫01s(r)(u)s(r+1)(u) du=(−1)r2[(s(r)(u))2]01=0.(-1)^r\int_0^1s^{(r)}(u)s^{(r+1)}(u)\,\mathrm{d}u=\frac{(-1)^r}{2}\left[(s^{(r)}(u))^2\right]_0^1=0.

All boundary terms vanish by periodicity. When r=1r=1, no integration by parts is needed. Values of the highest derivative at the knots do not affect these integrals.

Proof of Theorem 1

Proof. We first consider any 11-periodic Cp−1C^{p-1} function ss whose polynomial pieces on [ui,ui+1][u_i,u_{i+1}] have degree at most pp and which satisfies

s(ti)=0(0≤i≤n).(18)s(t_i)=0\quad(0\le i\le n). \tag*{(18)}

Periodicity also gives s(1)=0s(1)=0. We prove that these conditions force s≡0s\equiv0. Suppose otherwise.

The spline cannot vanish on an open interval. If it did, one polynomial piece would vanish identically. Continuity through order p−1p-1 at the next knot uiu_i would force the following piece to have the form a(u−ui)pa(u-u_i)^p. Each interval (ui,ui+1](u_i,u_{i+1}] contains an interpolation zero different from uiu_i: it contains ti+1t_{i+1} in its interior for 0≤i<n0\le i<n, and its right endpoint is the zero 11 for i=ni=n. Substitution gives a=0a=0. Repeating this argument around the period would give s≡0s\equiv0, a contradiction.

Consequently, ss has finitely many zeros in a period, and any set of them is separated. Lemma 1 shows that its zeros are precisely t0,…,tnt_0,\ldots,t_n modulo 11. Moreover, they are simple. Indeed, in each interval between successive parameters, choose a point where ∣s∣|s| attains its positive maximum. These points give n+1n+1 separated zeros of s′s', as in the lemma’s proof. If s′(tj)=0s'(t_j)=0, inserting tjt_j between the adjacent chosen points would give one more separated zero of s′s': on each of the two new intervals, ss changes between zero and a nonzero value. This contradicts Lemma 1 applied to the degree-(p−1)(p-1) spline s′s'. Hence s′(ti)≠0s'(t_i)\ne0 for every ii.

The sign of ss changes at each tit_i and nowhere else. A periodic function cannot have an odd number of such changes, so n+1n+1 must be even. Choose one point in each (ti,ti+1)(t_i,t_{i+1}); the corresponding values of ss alternate in sign cyclically.

We next pass this alternation to the highest derivative. For a periodic, absolutely continuous, piecewise polynomial function ff with alternating nonzero values at cyclically ordered points x0,…,xnx_0,\ldots,x_n, put xn+1=x0+1x_{n+1}=x_0+1. Then

∫xixi+1f′(u) du=f(xi+1)−f(xi)(19)\int_{x_i}^{x_{i+1}}f'(u)\,\mathrm{d}u=f(x_{i+1})-f(x_i) \tag*{(19)}

has the sign of f(xi+1)f(x_{i+1}). Thus each interval (xi,xi+1)(x_i,x_{i+1}) contains a point, away from the knots, where f′f' has that sign. These derivative values again alternate cyclically. Apply this argument to s,s′,…,s(p−1)s,s',\ldots,s^{(p-1)}, all of which are absolutely continuous and periodic. It follows that s(p)s^{(p)} has n+1n+1 cyclically alternating nonzero values outside the knots.

Let κi\kappa_i be the constant value of s(p)s^{(p)} on (ui,ui+1)(u_i,u_{i+1}). Each knot interval contains at most one of the selected points: all selected points lie in an interval exactly one cyclic order, whereas a constant function cannot alternate in sign there. There are n+1n+1 points and n+1n+1 intervals, so each interval contains exactly one. Hence the κi\kappa_i are nonzero and alternate in sign. The jumps cic_i defined in (2) have the signs of κi\kappa_i and therefore also alternate. By (8), the nonzero values s(u1),…,s(un)s(u_1),\ldots,s(u_n) alternate in sign as well. All products cis(ui)c_i s(u_i) for 1≤i≤n1\le i\le n consequently have the same nonzero sign, while c0s(u0)=0c_0s(u_0)=0. Thus

∑i=0ncis(ui)≠0.\sum_{i=0}^{n}c_i s(u_i)\ne0.

This contradicts Lemma 2. Thus every spline satisfying the homogeneous conditions (18) is identically zero. Now take a=(a0,…,an)T∈Rn+1\mathbf a=(a_0,\ldots,a_n)^{\mathsf T}\in\mathbb R^{n+1} with Npera=0\mathbf N_{\mathrm{per}}\mathbf a=0. The spline s=∑j=0najNj,ps=\sum_{j=0}^{n}a_jN_{j,p} satisfies (18), so s≡0s\equiv0. By the linear independence established using (7), all aja_j vanish. The square matrix Nper\mathbf N_{\mathrm{per}} is therefore nonsingular. Solving its system in each coordinate proves existence and uniqueness of the interpolating curve.

A counterexample to the periodic window condition

We first recall the condition as stated by Tang [6] (Theorems 2 and 3 therein), then give a uniform counterexample.

Let pp be the degree, let 0=u0<u1<⋯<un+1=10=u_0<u_1<\cdots<u_{n+1}=1 be the simple domain knots extended periodically by uj+n+1=uj+1u_{j+n+1}=u_j+1, and let 0=t0<t1<⋯<tn<10=t_0<t_1<\cdots<t_n<1 be the interpolation parameters. With k=⌈p/2⌉k=\lceil p/2\rceil, in centred indexing the periodic window condition reads

uj−k<tj<uj+k(p odd),uj−k<tj<uj+k+1(p even),j=0,…,n,(20)u_{j-k}<t_j<u_{j+k}\quad(p\text{ odd}),\qquad u_{j-k}<t_j<u_{j+k+1}\quad(p\text{ even}),\qquad j=0,\ldots,n, \tag*{(20)}

and is equivalent to positivity of every diagonal entry of the square periodic collocation matrix.

The following uniform configuration shows that (20) does not imply nonsingularity at even cardinality. Take degree p=1p=1, n+1=12n+1=12, uniform domain knots uj=j/(n+1)u_j=j/(n+1) and collocation parameters tj=(j+12)/(n+1)t_j=(j+\tfrac{1}{2})/(n+1). Then each row of the periodic collocation matrix is (…,0,12,12,0,…)(\ldots,0,\tfrac{1}{2},\tfrac{1}{2},0,\ldots), and every diagonal entry equals 12>0\tfrac{1}{2}>0, so the window condition (20) holds. The alternating vector v=(1,−1,…,1,−1)Tv=(1,-1,\ldots,1,-1)^{T} closes up around the circle because n+1n+1 is even, and every row annihilates it, so the matrix is singular.

The same mechanism occurs at higher degrees. For n+1=12n+1=12 and the same uniform knots, the parameters tj=(j+12)/(n+1)t_j=(j+\tfrac{1}{2})/(n+1) at degree p=3p=3 and tj=j/(n+1)t_j=j/(n+1) at degree p=2p=2 both satisfy the window condition, yet the corresponding periodic collocation matrices are singular; the second case shows that the failure already occurs at an even degree.

A counterexample to the diagonal-dominance claim for the shifting method

Park [4] states that for the shifting method simple pivoting makes the periodic collocation matrix strictly diagonally dominant. Because every row of this matrix is nonnegative and sums to one, strict diagonal dominance is equivalent to the existence of a permutation that puts an entry larger than 1/21/2 on the diagonal of every row. The following shifted quadratic has a row without such an entry.

Let p=2p=2 and n+1=12n+1=12 (so n=11n=11), and work on [0,1)[0,1). Take the parameters

t0,…,t11=131(0,2,4,13,15,17,19,21,23,25,27,29),t_0,\ldots,t_{11}=\frac{1}{31}(0,2,4,13,15,17,19,21,23,25,27,29),

so that dn=1−t11=231d_n=1-t_{11}=\frac{2}{31}. The shifting method of Appendix § 12 replaces them by the shifted parameters tˉi=ti+dn/2\bar{t}_i=t_i+d_n/2,

tˉ0,…,tˉ11=131(1,3,5,14,16,18,20,22,24,26,28,30),\bar{t}_0,\ldots,\bar{t}_{11}=\frac{1}{31}(1,3,5,14,16,18,20,22,24,26,28,30),

and sets each interior domain knot to the midpoint of two consecutive shifted parameters,

u0,…,u11=(0,231,431,1962,1531,1731,1931,2131,2331,2531,2731,2931),u_0,\ldots,u_{11}=\left(0,\frac{2}{31},\frac{4}{31},\frac{19}{62},\frac{15}{31},\frac{17}{31},\frac{19}{31},\frac{21}{31},\frac{23}{31},\frac{25}{31},\frac{27}{31},\frac{29}{31}\right),

with u12=1u_{12}=1, so that ui=(tˉi−1+tˉi)/2u_i=(\bar{t}_{i-1}+\bar{t}_i)/2 for 1≤i≤111\le i\le11 and u0=0u_0=0. At the shifted parameter tˉ2=531\bar{t}_2=\frac{5}{31} the corresponding row of the interpolation matrix (6) has three nonzero entries,

(2755,298605,2121)=1605(297,298,10),\left(\frac{27}{55},\frac{298}{605},\frac{2}{121}\right)=\frac{1}{605}(297,298,10),

all strictly smaller than 1/21/2. Since the row sum is one, this row has no entry that can be brought onto the diagonal so that the diagonal entry exceeds the sum of the remaining entries; hence no row or column permutation makes the matrix strictly diagonally dominant. The matrix is nevertheless nonsingular, with κ2≈3.09\kappa_2\approx3.09; the failure is therefore one of the dominance argument, not of solvability.

Compared methods

Two deterministic even-degree constructions serve as baselines [4]: the shifting method and the energy method. The shifting method is the standard deterministic construction for even degree. With dn=1−tnd_n=1-t_n it shifts the parameters to tˉi=ti+dn/2\bar{t}_i=t_i+d_n/2 and places each interior knot at the midpoint of two consecutive shifted parameters,

u0=0,ui=tˉi−1+tˉi2(1≤i≤n),un+1=1,(21)u_0=0,\qquad u_i=\frac{\bar{t}_{i-1}+\bar{t}_i}{2}\quad(1\le i\le n),\qquad u_{n+1}=1, \tag*{(21)}

so that every shifted parameter is exactly centered in its knot interval.

The energy method sets n^=n+1\hat{n}=n+1, so that it uses one extra control point, places the centered knots

u0=0,ui=ti−1+ti2(1≤i≤n^),un^+1=1,(22)u_0=0,\qquad u_i=\frac{t_{i-1}+t_i}{2}\quad(1\le i\le\hat{n}),\qquad u_{\hat{n}+1}=1, \tag*{(22)}

with tn+1=1t_{n+1}=1, and minimizes the same energy (14) directly under the n+1n+1 interpolation constraints. The constrained minimum is characterized by the KKT system

\begin{pmatrix} \mathbf{K} & \mathbf{N}^{\mathsf{T}} \\ \mathbf{N} & \mathbf{0} \end{pmatrix} \begin{pmatrix} \mathbf{P} \\ \boldsymbol{\lambda} \end{pmatrix} = \begin{pmatrix} \mathbf{0} \\ \mathbf{Q} \end{pmatrix}, \tag*{(23)}\end{pmatrix}

where N\mathbf{N} is the (n+1)×(n^+1)(n+1) \times(\hat{n}+1) periodic collocation matrix, K\mathbf{K} is the stiffness matrix (15) built from the periodic B-spline basis, and λ\boldsymbol{\lambda} collects the Lagrange multipliers. The interpolant is obtained by solving this linear system.

More examples

Figure 10 shows additional closed polygonal data sets, reconstructed at degree p=2p=2 under centripetal parametrization. Red curves are the interpolants, blue circles and grey dashed segments are the control points and the control polygon, and black points are the data points. The interlacing alternates between Opt-R and Opt-L. The optimized interlacing works well on all of them, and every reconstructed curve is visually pleasing.

Figure 10. Additional test shapes, reconstructed at degree p=2p=2 with centripetal parametrization; the interlacing alternates between Opt-R and Opt-L.

References

  1. [1]Carl de Boor. A Practical Guide to Splines, volume 27. Springer, Berlin, 1978.
  2. [2]Les Piegl and Wayne Tiller. The NURBS Book. Springer, New York, 1996.
  3. [3]Hyungjun Park and Kwangsoo Kim. Smooth surface approximation to serial cross-sections. Computer-Aided Design, 28(12):995–1005, 1996.DOI
  4. [4]Hyungjun Park. Choosing nodes and knots in closed B-spline curve interpolation to point data. Computer-Aided Design, 33(3):967–974, 2001.DOI
  5. [5]Hyungjun Park. Lofted B-spline surface interpolation by linearly constrained energy minimization. Computer-Aided Design, 35(14):1261–1268, 2003.DOI
  6. [6]Shutao Tang. Control point reduction for lofted B-spline surface interpolation based on serial closed contours. Computational and Applied Mathematics, 42(2):86, 2023.DOI
  7. [7]Eugene TY Lee. Choosing nodes in parametric curve interpolation. Computer-Aided Design, 21(6):363–370, 1989.DOI
  8. [8]Jing-Jing Fang and Chia-Lien Hung. An improved parameterization method for B-spline curve and surface interpolation. Computer-Aided Design, 45(6):1005–1028, 2013.DOI
  9. [9]Thomas A Foley and Gregory M Nielson. Knot selection for parametric spline interpolation. In Mathematical methods in computer aided geometric design, pages 261–CP4. Elsevier, 1989.
  10. [10]Choong-Gyoo Lim. A universal parametrization in B-spline curve and surface interpolation. Computer Aided Geometric Design, 16(5):407–422, 1999.DOI
  11. [11]Hyung-Bae Jung and Kwangsoo Kim. A new parameterisation method for NURBS surface interpolation. The International Journal of Advanced Manufacturing Technology, 16(11):784–790, 2000.DOI
  12. [12]Habibollah Haron, Abdus Rehman, Dayang IS Adi, Soh P Lim, and Tanzila Saba. Parameterization method on B-spline curve. Mathematical Problems in Engineering, 2012:640472, 2012.DOI
  13. [13]Cemal Balta, Sinan Ozturk, Melih Kuncan, and Ibrahim Kandilli. Dynamic centripetal parameterization method for B-spline curve interpolation. IEEE Access, 8:589–598, 2020.DOI
  14. [14]Hui Xu, Gang Zhao, Yang Liu, and Nan Ye. An improved parameterized interpolation method based on modified chord length. Journal of Computing and Information Science in Engineering, 22:1–21, 2022.DOI
  15. [15]Hui Wang and Fan Zhang. Computing nodes for plane data points by constructing cubic polynomial with constraints. Computer Aided Geometric Design, 111:102308, 2024.DOI
  16. [16]Pascal Laube, Matthias O Franz, and Georg Umlauf. Deep learning parametrization for B-spline curve approximation. In 2018 International Conference on 3D Vision (3DV), pages 691–699. IEEE, 2018.arxiv.org/abs/1807.08304
  17. [17]Felix Scholz and Bert Jüttler. Parameterization for polynomial curve approximation via residual deep neural networks. Computer Aided Geometric Design, 85:101977, 2021.DOI
  18. [18]Tao Song, Tao Shen, Lin Ge, and Jieqing Feng. A hybrid parametrization method for B-spline curve interpolation via supervised learning. Computer Graphics Forum, 43(7):e15240, 2024.
  19. [19]Shangyi Lin and Jieqing Feng. A parameterization method for B-spline curve interpolation via supervised regression. Computers & Graphics, 132:104360, 2025.
  20. [20]Wenqiang Tang and Zhouwang Yang. DNN-based parameterization for B-spline curve approximation. Computer-Aided Design, 186–187:103897, 2025.DOI
  21. [21]Wenqiang Tang, Zhenqian E, and Zhouwang Yang. Neural co-optimization of knots and parameterization for B-spline curve approximation. Computer-Aided Design, 195:104059, 2026.DOI
  22. [22]Zhaoxuan Zhu, Lihua You, and Jianmin Zhang. A review of point sets parameterization methods for curve fitting. In 2023 27th International Conference Information Visualization (IV), pages 374–377. IEEE, 2023.DOI
  23. [23]Wen-Ke Wang, Hui Zhang, Hyungjun Park, Jun-Hai Yong, Jean-Claude Paul, and Jia-Guang Sun. Reducing control points in lofted B-spline surface interpolation using common knot vector determination. Computer-Aided Design, 40(10–11):999–1008, 2008.
  24. [24]Michele Benzi, Gene H Golub, and Jörg Liesen. Numerical solution of saddle point problems. Acta Numerica, 14:1–137, 2005.DOI
  25. [25]A Koubia, Miguel Pasadas, and Miguel Luis Rodriguez. Optimization of parameters for curve interpolation by cubic splines. Journal of Computational and Applied Mathematics, 235(14):4187–4198, 2011.
  26. [26]Lakshman S. Thakur. A computable convex programming characterization of optimal interpolatory quadratic splines with free knots. Journal of Mathematical Analysis and Applications, 114(1):278–288, 1986.DOI
  27. [27]Lakshman S. Thakur and Mikhail A. Bragin. Data interpolation by near-optimal splines with free knots using linear programming. Mathematics, 9(10):1099, 2021.DOI
  28. [28]Piotr Suchomski. Method of optimal variable-knot spline interpolation in the L₂ discrete norm. International Journal of Systems Science, 22(11):2263–2274, 1991.DOI
  29. [29]H. Idais, M. Yasin, M. Pasadas, and P. González. Optimal knots allocation in the cubic and bicubic spline interpolation problems. Mathematics and Computers in Simulation, 164:131–145, 2019.DOI
  30. [30]Jingyu Zhang, Qiuyang Song, Pengbo Bo, Jianrui Ding, and Caiming Zhang. B-spline curve interpolation to ordered points through shape quality optimization. Computer-Aided Design, 189:103942, 2025.DOI
  31. [31]Liangchen Hu and Wensheng Zhang. NSGA-II approach for proper choice of nodes and knots in B-spline curve interpolation. Computer-Aided Design, 127:102885, 2020.DOI
  32. [32]Larry L. Schumaker. Spline Functions: Basic Theory. Cambridge University Press, 3rd edition, 2007.
  33. [33]Shutao Tang. Optimal lofted B-spline surface interpolation based on serial closed contours, 2022. arXiv preprint arXiv:2202.06330, https://arxiv.org/abs/2202.06330.
  34. [34]Guido Brunnett and Johannes Kiefer. Interpolation with minimal-energy splines. Computer-Aided Design, 26(2): 137–144, 1994.DOI
  35. [35]Tzvetomir Ivanov Vassilev. Fair interpolation and approximation of B-splines by energy minimization and points insertion. Computer-Aided Design, 28(9):753–760, 1996.DOI
  36. [36]Patricia Moore and Derek Molloy. Efficient energy evaluations for active B-spline/NURBS surfaces. Computer-Aided Design, 47:12–31, 2014.
  37. [37]Jorge Nocedal and Stephen J. Wright. Numerical Optimization. Springer, New York, 2 edition, 2006.

Paper details

vlnc:W_5uzasm99
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents