Abstract
Due to the reliable feedrate fluctuation and computation load of the existing parametric curve interpolation, a fast interpolation method by cubic B-spline for parametric curve is presented which results in a minimum feedrate fluctuation and light computation load. As there are many geometry implementation tools and many good properties in the B-spline compared with the polynomial, the relation between the arc length
Introduction
Machining aerospace parts, biomedical components, and optical lens comprising complex sculptured surfaces at high speed motivates many researches in the parametric curve interpolation. In contrast to linear interpolation, the parametric curve interpolation is widely applied for machining the complex sculptured surfaces due to the high precision and efficiency.1,2 In parametric interpolation process, the arc length or the feedrate is obtained from the feedrate scheduling process,3,4 and the interpolator calculates the curve parameter according to the arc length or feedrate in real time. But for most of the parametric curves, there is an analytic function that represented the relationship of the arc length
Various parametric interpolation methods have been proposed to improve the computational accuracy and to reduce the real-time computation load. These methods can generally be classified into two types: online estimate (OE) method and off-line fitting (OF) method. However, none of these methods can consider all the machining requirements which include the arc-length accuracy, computation robustness, the computation load, and memory consumption. For the OE interpolation method, the memory consumption is less than the OF method and it is also easy to operation. But the robustness, accuracy, and real-time computation complexity of the off-line fitting method (OF) are much better than OE interpolation method.
The OE methods are almost depend on the Taylor’s expansion of the relationship between the arc length
At the same time, OF methods are also adopted in many cases for its less real-time computational load, higher accuracy, and robustness. The correspondence between the arc length
As the precise and high-speed manufacture requirement increases, the OF method is widely applied for its high accuracy and robustness. But due to the Runge phenomenon of the higher order polynomial interpolation and the accuracy cannot be guaranteed in the mid-points of the piecewise polynomial, the feedrate fluctuation is difficult to be satisfied using the polynomial fitting methods. For the locality and flexibility of the B-spline,
24
a OF interpolation method is proposed using the cubic B-spline, which is called off-line B-spline (OFB) fitting method. The whole OFB fitting process is shown in Figure 1. As shown in Figure 1, the correspondence between the arc length

The OFB fitting process.
The B-spline curve and its derivatives
In this article, the relationship between the arc length
where
The
From equation (2), the

OF interpolation method by cubic B-spline
In order to obtain an accurate and robust parameter computation and to lighten the real-time computation burden, an OF interpolation method by cubic B-spline (OFB) is proposed. The relationship between the arc length
where

The whole interpolation process.
The arc length calculation of the trajectory
For most of the parametric curves, its relationship between the arc length
The length between
Generally, equation (6) is calculated numerically within a specific tolerance. In this article, the Gauss integration method is used to calculate the arc length for its high precision and calculation efficiency. The Gauss integration with
where the value of node
Let
In order to produce the proper curve parameter and arc length pairs (
Note that if equation (10) is satisfied, then the approximation is within the given tolerance of the true arc length.
Dividing the (s
i
, u
i
) sampled data points
As shown in Figure 2, the second derivative of the cubic basis function is continuous. According to equation (4), the fitted
where
So, the sampled data points (
Fit the s-u cubic B-spline in each segment
In approximation process, a feedrate fluctuation bound,
where
As shown in equation (4), the number of control points
In each iteration process, the basis function and the control points should be obtained after the number of the control points is determined. To avoid the nonlinear problem, the knots vector is precomputed and the unknown control points are obtained by solving the optimal problem under derivative constraints.
Determining the knot vector of the s-u cubic B-spline
After the number of the control points is determined, the number of the knot vector elements is also obtained. The knot vector
The basis function of equation (4) is constructed by the knots vector and the elements of the knot vector should be determined. According to Figure 2, the third derivative of the basis function is discontinuous in the entire cubic B-spline and it is constant in every knot span. Therefore, the knot elements can be distributed according to the third derivative of the curve parameter respect to the arc length
Optimizing the control points of the s-u cubic B-spline
After the knot vector
For the arc length vector
Let
The objective function to be minimized is
For any parametric curve, its first and second derivatives of the curve parameter with respect to the arc length can be obtained as
where
The predicted first and second derivatives are obtained as
In order to maintain the fitted
According to equations (20) and (21), the equality constraints can be written as
Hence, the control points of the
By introducing the vector of Lagrange multipliers
Then, the linear equation can be yielded by equating the partial derivatives to zero, that is,
The linear equation (25) has full rank when the segment arc length is nonzero.
Compositing all the s-u B-spline
After each
where
1. Determine the control points
where
2. Determine the knot vector
Simulations
As shown in Figure 4, two parametric curves are applied to verify the robustness and the accuracy of the proposed OFB method. For the feedrate has great influence in the accuracy of the interpolation, the feedrate scheduled for those curves is shown in Figure 5. Compared with the proposed OFB method, the commonly used OE interpolation methods, for example, the first- and second-order Taylor methods are also applied.

The parametric curves for simulation: (a) the three-dimensional curve and (b) the two-dimensional curve.

The scheduled feedrate profile: (a) the scheduled feedrate profile for 3D curve and (b) the scheduled feedrate profile for 2D curve.
The feedrate fluctuation proposed in equation (13) is present as a criterion to verify the accuracy of the interpolator. As shown in Figure 6, the first-order Taylor method has poor feedrate fluctuation even the feedrate is scheduled in the sharp corners. Compared with the first-order Taylor method, the feedrate fluctuation of the second-order Taylor method in Figure 7 is eliminated. For a given feedrate fluctuation requirement

The feedrate fluctuation of the first-order Taylor interpolation method after the feedrate is scheduled: (a) the result of the 3D curve and (b) the result of the 2D curve.

The feedrate fluctuation of the second-order Taylor interpolation method after the feedrate is scheduled: (a) the result of the 3D curve and (b) the result of the 2D curve.

The feedrate fluctuation of the proposed OFB interpolation method after the feedrate is scheduled: (a) the result of the 3D curve and (b) the result of the 2D curve.
Maximum absolute feedrate fluctuation (%).
3D: three-dimensional; 2D: two-dimensional; OFB: off-line B-spline.
In order to verify the robustness of the OFB interpolation method, constant feedrate 25 mm/s is applied to the three interpolation methods in the same curves. As shown in Figures 9 and 10, the first- and second-order interpolation methods have great feedrate fluctuation even though the feedrate is 25 mm/s in common curves. So the OE interpolation is not suitable for high speed and precision manufacture due to the low robustness. The feedrate fluctuation of the OFB method in constant feedrate 25 mm/s is shown in Figure 11 and the feedrate fluctuation still satisfies the error requirements

The feedrate fluctuation of the first-order Taylor interpolation method at the feedrate of 25 mm/s: (a) the result of the 3D curve and (b) the result of the 2D curve.

The feedrate fluctuation of the second-order Taylor interpolation method at the feedrate of 25 mm/s: (a) the result of the 3D curve and (b) the result of the 2D curve.

The feedrate fluctuation of the proposed OFB interpolation method at the feedrate of 25 mm/s: (a) the result of the 3D curve and (b) the result of the 2D curve.
In modern manufacture controller, more and more intelligent modules such as thermal compensation module and real-time interference checking module are embedded in. The real-time computation resources become more precious. For OE method, the accuracy and computing efficiency always contradict. In order to obtain high accuracy, complex derivative and iteration calculation in OE method, which means low computing efficiency, is always required. But in the proposed method, the
Arithmetic operations required for different real-time interpolation methods.
3D: three-dimensional; 2D: two-dimensional; OFB: off-line B-spline.
Experiments
In order to verify the proposed OFB interpolation method, the experiments are carried out. The tool path is shown in Figure 4. The experiment platform is a PC-based open computer numerical control (CNC) (A3200) machine developed by Aerotech. The A3200 controller is performed on the industrial computer with the real-time extension, RTX, embedded in Windows XP and the A3200 controller also provides the lowest level to the position and velocity commands sent to the drives in real time. Then, the proposed OFB interpolator is designed on the open motion controller for our own purpose and the interpolator period is chosen as 1 ms. The translational axes of the platform are driven by the linear motors and the moving bodies are separated by air bearing, so the stiffness of machine is low. For safety consideration, the material of the workpiece is paraffin. The experimental result of the tool path trajectory is shown in Figure 12. The experimental result shows that the proposed OFB interpolation method is feasible and applicable.

The experimental results: (a) the five-axis polishing machine tool, (b) the 2D machine result by the proposed OFB method, (c), (d) the 3D machine result by the proposed OFB method.
Conclusion
As the requirements of the accuracy, robustness, and computation load of the manufacture process increase, the off-line fitting method interpolation is widely applied especially in high precision and complex free-form surface manufacturing. Compared with the existing polynomial-fitting interpolation method, a cubic B-spline fitting method (OFB) is proposed. For the locality and flexibility of the B-spline, the required feedrate fluctuation of 0.05% is more easily satisfied. The real-time computing consumption of the OF interpolation method is less than that of the OE method, for most of the computations are performed in the off-line process. First, the sampled
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: The authors are grateful for the financial support from the National High Technology Research and Development Program (863 Program) of China (Grant No. 2012AA041304).
