Inverse-Problem-Based Accuracy Control for Arbitrary-Resolution Fairing of Quasiuniform Cubic B-Spline Curves

In the process of curves and surfaces fairing with multiresolution analysis, fairing accuracy will be determined by final fairing scale. On the basis of Dyadic wavelet fairing algorithm (DWFA), arbitrary resolution wavelet fairing algorithm (ARWFA), and corresponding software, accuracy control of multiresolution fairing was studied for the uncertainty of fairing scale. Firstly, using the idea of inverse problem for reference, linear hypothesis was adopted to predict the corresponding wavelet scale for any given fairing error. Although linear hypothesis has error, it can be eliminated bymultiple iterations. So faired curves can be determined by aminimumnumber of control vertexes and have the best faring effect under the requirement of accuracy. Secondly, in consideration of efficiency loss caused by iterative algorithm, inverse calculation of fairing scale was presented based on the least squares fitting. With the increase of order of curves, inverse calculation accuracy becomes higher and higher. Verification results show that inverse calculation scale can meet the accuracy requirement when fitting curve is sextic. In the whole fairing process, because there is no approximation algorithm such as interpolation and approximation, faired curves can be reconstructed again exactly.This algorithm meets the idea and essence of wavelet analysis well.


Introduction
Because of manufacturing error of existing prototypes and limitation of measuring technology, various noise and error are inevitable in the process of digitization of prototypes and will have a bad effect on fairness of curves and surfaces.Fairing operation for curves and surfaces is a direct and effective way to improve the reconstructing quality of curves and surfaces.Fairing operation has been a key technology in the field of reverse engineering, especially to the parts with functional surfaces, such as compressor rotors, supercharger impellers, and turbine engine blades, which should meet the aerodynamics requirements, and the parts with ornamental surfaces, such as motor vehicles and household appliances, which should meet the artistic characteristics requirement.The technology of multiresolution fairing provides a brandnew way to solve this problem.
Wavelet analysis, also called multiresolution analysis, is a new mathematical method of time-frequency analysis to reveal the internal correlation structure of data and has the locality in time domain and frequency domain simultaneously.With the development of wavelet analysis technology, the concept of the B-spline wavelet was proposed to solve the engineering practical problems.Xiang et al. presented a twodimensional wavelet-based numerical simulation method with Hermite cubic spline wavelet on the interval (HCSWI) to solve the stress intensity factors (SIFs) of plate structures [1].By using Hermite cubic spline wavelets on the interval, Xiang et al. proposed a multiscale wavelet-based numerical method to compute shafts' dynamic characteristic accurately [2].He also constructed a class of flat shell elements by using the scaling functions of two-dimensional tensor product B-spline wavelet on the interval (BSWI) [3] and a class of B-splinewavelet-based plate elements by interacting and synchronizing wavelet theory in mathematics and variational principle 2 Mathematical Problems in Engineering in finite element method [4].With the further mature of wavelet technology, it has been also adopted in the computer graphics gradually.In 1994, Quak and Weyrich firstly put forward a decomposition and reconstruction algorithm for Bspline wavelets on closed interval for the specific curves with 2  + 3 control vertexes [5].In the same year, taking endpoint interpolation cubic B-spline curve as an example, Finkelstein and Salesin proposed a concept of multiresolution curves at the Siggraph'94 international conference and elaborated the applications of wavelet analysis in multiresolution fairing, editing, and compression [6].Elber and Gotsman achieved multiresolution analysis and editing for nonuniform B-spline curves and periodic curves with the least squares approximation [7].Stollnitz et al. also studied the application of wavelet technology in curves and surfaces [8].
Although the studies mentioned above realized the wavelet fairing of curves and surfaces, in order to decompose the curves and surfaces continuously at different scales, different B-spline basis functions, which were used to construct wavelets, were scaled doubly; that is, scale translation system of scaling function is binary.For this reason, the above algorithm has a fatal flaw that the number of control vertexes of curves and surfaces must be 2  + ( − 1) ( is order).Unfortunately, for the general curves and surfaces, the number of control vertexes is usually arbitrary and the corresponding wavelet fairing algorithm based on dyadic wavelet will not work anymore.So, this flaw limits the application and diffusion of wavelet technology greatly in the field of curve and surface fairing.This is an inherent problem.Although the mathematical derivation of dyadic wavelet construction is easier, it has a strict requirement on the number of control vertexes.Generally this kind of fairing algorithm is called Dyadic Wavelet Fairing Algorithm (DWFA).
In order to achieve the multiresolution fairing on curves and surfaces with arbitrary control vertexes, wavelet analysis technology based on arbitrary scale factors, which is another study field of wavelet analysis, must be adopted.Lazar and Bruton presented a method, based on the design of M-band perfect reconstruction (PR) filters, to generate orthonormal wavelets with arbitrary integer scaling factor  [9].Kovacevic and Vetterli presented a general, direct method for designing perfect reconstruction filter banks with rational sampling rate changes.Such filter banks have  branches, each one having a sampling factor of   /  and their sum equal to one [10].On this basis, Blu presented a new design algorithm for two-band orthonormal rational filter banks and orthonormal rational wavelets [11].Muñoz proposed a new B-spline-based method that allows the continuous wavelet transform (CWT) computation at any scale, without being restricted to dyadic or integer scales [12].In fact, arbitrary resolution wavelet decomposition and reconstruction for common curves and surfaces are a typical multiresolution analysis at arbitrary rational scaling factor, and many scholars try to apply above research results to this field.Kazinnik and Elber took advantage of ideas of an orthogonal wavelet complement to produce a multiresolution orthogonal decomposition of nonuniform B-spline (NUB) spaces.The editing of NUB curves and surfaces can be handled at different levels of resolutions [13].Generally, this kind of fairing algorithm without special requirements on the number of control vertexes is called arbitrary resolution wavelet fairing algorithm (ARWFA).
For these problems mentioned above, the author has deduced and achieved the concrete algorithms of DWFA and ARWFA according to the definition of wavelet mathematically in literature 14 and 15.
The studies show that, in the process of fairing, the curves and surfaces become more and more fair while the corresponding error becomes bigger and bigger with the decrease of control vertexes.So how to choose an appropriate wavelet scale to achieve the best fairing quality under the control of fairing accuracy has always been a nodus in the field of multiresolution fairing.Actually, this is an accuracy control problem of multiresolution fairing and its essence is to achieve an appropriate fairing scale.
Although there is a certain inherent connection between the number of control vertexes and fairing error, there is no definite numerical correlation between them.In fact, how to solve the number of control vertexes according to the given fairing error is a typical inverse problem.Inverse problem provides a new method for the prediction of fairing scale.
Sambridge and Mosegaard introduced the development and application of Monte Carlo methods for inverse problems in the earth sciences and particular geophysics [14].Based on inverse problem, Zhou et al. proposed a boundary element method to solve the boundary condition in lasticity using PCGM and CGM regularization.The numerical results confirm that this method produced convergent and stable numerical solutions [15].Bustillo et al. presented a method for ultrasonic characterization of porous silicon in which a genetic algorithm-based optimization is used to solve the inverse problem [16].Capasso et al. solved inverse problems of differential equations by a "generalized collage" method and application to a mean field stochastic model [17].
This paper will study the accuracy control for arbitrary resolution fairing of quasiuniform cubic B-spline curves on the basis of inverse problem.
Assume that   is a curve in space V  and   is a curve in space V  .As a constructing tool for low pass filter banks, the essence of curve fairing based on multiresolution analysis is to filter out details   from   by the constructed filter banks to get a more fairing curve   ; that is, Its tower structure of decomposition and reconstruction is shown in Figure 1.Detail curve   can be determined by − detail vertexes D  = (  0 ,   1 , . . .,   −−1 )  , and the corresponding basis functions are the very wavelets.These basis functions can be expressed as Ψ  = (  0 ,   1 , . . .,   −−1 ) and can also be spanned a liner space W  .Based on the above assumptions,  = 10,  = 5, and then there are  −  = 5 wavelets  5 0 ,  5 1 , . . .,  5  4 , as shown in Figure 2(c).Usually, W  is called the wavelet subspace of V  about V  .In order to make wavelet decay to zero as soon as possible, V  ⊥ W  is required when wavelet is constructed; that is, In formula (2), ⊕ means direct sum.Because B-spline basis functions themselves have no translation orthogonality, only the orthogonality between Φ  and Ψ  at the same scale factor can be ensured when wavelets are constructed; that is,

Accuracy Control Problem of Multiresolution Fairing
In the process of multiresolution fairing, the number of control vertexes is reduced directly from 2  + 3 to 2 −1 + 3 for dyadic wavelet fairing, about 50% decrease.This causes a ticklish problem that fairing error is discontinuous and jumping.If fairing process must execute several steps, this defect will not make any bad effect in the middle step of fairing.But in the final step, the fairing error maybe exceeds the given error although it is under control in the previous step.In order to make final fairing error under control, Takahashi et al. [18] proposed two interpolation schemes for the continuous-level shapes: linear interpolation and cardinalspline interpolation to control fairing error by continuous resolution decomposition of curves and surfaces.As a matter of fact, the essence of this method is linear combination of two adjacent multiresolution curves or surfaces.So this is just an approximate calculation and the faired curves or surfaces cannot be reconstructed accurately again.This is contrary to the essence of the multiresolution analysis.
Although arbitrary resolution wavelet fairing has no special requirement for the number of control vertexes, the problem is that we do not know how to choose a reasonable objective scale factor  to ensure fairing accuracy with the least control vertexes.So a reasonable instructional method is needed to solve this problem.
On the one hand, because the decompose matrixes P  and Q  are known, dyadic wavelet fairing has a high computational efficiency, but it has a strict requirement on the number of control vertexes.On the other hand, arbitrary resolution wavelet fairing has no strict requirement on the number of control vertexes, but its computational efficiency is relatively low because of massive inner product computation for reconstructing new wavelets according to the different scale factors.In order to make a good balance between fairing efficiency and algorithm flexibility, these two algorithms can be used selectively according to the actual requirement in the process of multiresolution fairing on curves and surfaces.In the first step, ARWFA is adopted to make the number of control vertexes suitable for DWFA.In the middle steps, the efficient DWFA is adopted.In the last step, in order to make the fairing error under control, ARWFA is adopted again to achieve the best fairing effect with the least control vertexes.
Here, the crucial and difficult problem is how to choose the reasonable fairing scale to meet fairing accuracy in the last step.
Combined with these two fairing algorithms mentioned above, an inverse-problem-based multiresolution fairing accuracy control method will be proposed on the basis of analysis of effect of multiresolution fairing on fairing error.

Accuracy Control for Multiresolution Fairing
On the study of fairing algorithms mentioned above, the author has developed a related multiresolution fairing software and achieved the multiresolution fairing on curves and surfaces with any number of control vertexes.

Accuracy Analysis of Multiresolution
Fairing.Firstly, we take a complex curve as an example to study the accuracy effect of multiresolution fairing.The given fairing accuracy of this curve is  = 0.02 mm.The primitive curve is a space curve determined by formula (15) and is shown in Figure 3: The primitive curve has 1300 data points, so the corresponding control vertexes are 1302.The curvature distribution of primitive curves is shown in Figure 4. Figure 4 shows that the minimum curvature of this curve is 0.080 mm −1 , and the maximum curvature is 0.108 mm −1 .
According to the fairing requirement of DWFA, this curve is faired with the scale 2 10 = 1024 firstly, so the number of control vertexes is 2 10 + 3 = 1027, and the corresponding number of data points is 1025.Draw this new curve and compare it with the primitive curve.Accuracy analysis result and the distribution of control vertexes in different precision range are shown in Figure 5.In Figure 5, green represents the error 0.000 mm and red represents the error 0.005 mm.According to Figure 5, the minimum fairing error is 0.001 mm and the maximum fairing error is 0.005 mm.
Obviously, the fairing error is much smaller than given accuracy after the first fairing and the curve can be faired further.Because the number of control vertexes now is suitable for the efficient DWFA, DWFA can be adopted to fair this curve in the following steps.Fair the curve to the new with 2 9 + 3 = 515 control vertexes, so the corresponding data points are 513.Draw the new curves and compare it to the primitive curve.Accuracy analysis result is shown in Figure 6, where the minimum error is 0.000 mm and the maximum error is 0.006 mm.
According to the given control accuracy, the curve still can be faired by DWFA.With the same method, fair the curve, respectively, to According to the above accuracy analysis, different wavelet scale factor and the corresponding fairing error are shown in Table 1.Setting dyadic scale as abscissa and logarithm lg() of fairing error  as ordinate, draw a least-square fitting line to reveal the error variation tendency, as shown in Figure 12.It is obvious to find that when the control vertexes become less and less, the fairing error becomes larger and larger in the process of multiresolution fairing.

Linear Curve-Based Inverse Calculation of Fairing Scale.
For the given fairing error  = 0.02 mm, its logarithm is lg(0.02)= −1.699.According to Table 1, this error is between the dyadic scales 6 and 7. Now the problem is how to choose quickly a suitable fairing scale from the scale interval [6,7] to ensure that the maximum fairing error should be close to but not more than the given error 0.02 mm.Assume that accuracy change is linear, and then we can draw a schematic diagram as in Figure 13 to calculate the needed scale under the given error .Although the assumption is not always right, fairing error can be made under control by multiple iterations.In Figure 13, the fairing error determined by the scale  1 is still smaller than the control error , while on the scale  2 , the fairing error is already larger than the control error .Define a rectangular coordinate system with dyadic scale as -axis and logarithm of error as -axis.Draw the line  through point ( 1 , ) and point ( 2 , ), then the corresponding slope can be expressed as So, according to formula (16), line  can be expressed as According to formula (17), scale can be expressed as the function of error: According to formula (18), then According to Table 1,  1 = 7,  2 = 6,  = −2.097, = −1.432,and  = 0.02, so the dyadic scale is  = 6.402 and the corresponding rational scale is  = 2  = 84.548;take  = 85.Now the corresponding control vertexes are 88.Fair the control vertexes of curve from 131 to 88 with ARWFA and draw the corresponding curve to be compared with the primitive curve on accuracy, as shown in Figure 14.In Figure 14, the minimum error is 0.001 mm and the maximum error is 0.015 mm, where green represents the error 0.001 mm and red represents the error 0.015 mm.
Because actual error 0.015 mm is smaller than given error 0.02 mm, it means that this curve still can be faired.So, taking    1 = 6.402,  2 = 6,  = −1.824,and  = −1.432,calculate the corresponding rational scale  and fair the curve according to formula (19) again.According to the iterative sequence in Figure 15, a series of accuracy analysis results are achieved after multiple iterations, as shown in Table 2.
Table 2 shows that when the number of control vertexes is exactly equal to 81 after 3 iterations, the curve just meets the given accuracy.
Comparing the faired curve determined by 81 control vertexes with the primitive one, the result is shown in Figure 16.In Figure 16, the minimum error is 0.001 mm and the maximum error is 0.020 mm.Now a little number of red dots appear, which indicates that the error there becomes relatively larger.Draw the curvature distribution of the faired curve, as shown in Figure 17.The minimum curvature is 0.066 mm −1 and the maximum is 0.086 mm −1 .Comparing with the maximum curvature 0.108 mm −1 of the primitive curve, the fairness of the curve is improved because of the decline of curvature.Thus it can be seen that, on the basis of linear hypothesis and inverse calculation, an expected fairing scale is achieved after 3 iterations.This scale can ensure that the curve is faired perfectly and determined by the least control vertexes finally.
In conclusion, the specific progress of accuracy inverse calculation of multiresolution fairing based on linear hypothesis is shown in Figure 18.
Although the above algorithm achieved the final fairing scale by inverse calculation, multiple iterations are necessary to meet the fairing accuracy.To some extent, this will impact the efficiency and operability of multiresolution fairing.In order to solve the needed fairing scale more quickly, this paper put forward a new inverse calculation method for fairing scale on the basis of least square fit.

Quadratic Curve-Based Inverse Calculation of Fairing
Scale.According to the analysis result in Table 1, define a  rectangular coordinate system with dyadic scale as -axis and logarithm of error as -axis, as shown in Figure 19.
Fit the quadratic curve with the control points by least square method; that is, According to the least square principle, quadratic sum of the difference between the fitting curve and the ordinates should be minimum.That is, Take the partial derivatives to ,  and  on formula (21), respectively, and then So, the decomposition form is expressed as Finally, it could be simplified to a system of linear equations as shown in The solution of formula ( 24) is So, the final fitting quadratic curve is The fitting curve is shown in Figure 19.Substituting  = lg(0.02)into this quadratic curve equation, one solution  = 6.502 in the interval [6,7] is solved.So, the corresponding rational scale is  = 2 6.502 = 90.620.Letting  = 91, then the number of control vertexes by inverse calculation is 94, as shown in Table 3, while, according to Table 2, there is a great difference between fairing scale  = 91 and objective scale  = 78.Taking higher order of fitting curve to improve fitting accuracy is one of the effective methods to predict a more reasonable fairing scale.

Cubic Curve-Based Inverse Calculation of Fairing Scale.
In this section, cubic fitting curve is employed to solve the objective scale by inverse calculation.
Set the cubic curve as According to the least squares principle, objective function can be expressed as (28) Take the partial derivatives to , , , and  on formula (28), respectively, and then So, the decomposition form can be expressed as Finally, it could be simplified to a system of linear equations as The fitting curve is shown in Figure 20.Substituting  = lg(0.02)into this cubic curve equation, one solution  = 6.444 in the interval [6,7] is solved.So the corresponding rational scale is  = 2 6.444 = 87.060.Letting  = 88, then the number of control vertexes by inverse calculation is 91, as shown in Table 3.Similarly, according to Table 2, there is a great difference between fairing scale  = 88 and objective scale  = 78.Fairing scale must be further recalculated with high order curve.

Quartic Curve-Based Inverse Calculation of Fairing Scale.
In this section, quartic fitting curve is employed to solve the objective scale by inverse calculation.
Set the quartic curve as According to the least squares principle, objective function can be expressed as Take the partial derivatives to , , , , and  on formula (35), respectively, and then So, the decomposition form can be expressed as The fitting curve is shown in Figure 21.Substituting  = lg(0.02)into this quartic curve equation, one solution  = 6.3343 in the interval [6,7] is solved.So the corresponding rational scale is  = 2 6.3343 = 80.687.Letting  = 81, then the number of control vertexes by inverse calculation is 84, as shown in Table 3. Visibly, with the increase of curve order, fitting accuracy becomes higher and higher and the fairing scale  = 81 is very close to the objective scale  = 78.4.6.Verification of Least-Square-Fitting-Based Inverse Calculation of Fairing Scale.With the same method, quintic curve and sextic curve are also adopted to solve the objective scale by inverse calculation, the results are shown in Table 3.According to Table 3, effect of curve order on accuracy of inverse calculation is shown in Figure 22.Table 3 and Figure 22 show that, with the increase of curve order, when the curve order is 6, the solution of inverse calculation is  = 79 and is very close to the objective scale  = 78.Here, accuracy analysis is applied again to estimate whether the faired curve meets the accuracy requirement.Now fairing scale is 79 and the number of the control vertexes is 82.Comparing the new curve with primitive curve, the corresponding accuracy analysis is shown in Figure 23.
According to Figure 23, the maximum error is 0.019 mm, less than and very close to the control error 0.02 mm, and meets the accuracy requirement.
To sum up, when the order of least squares curve is 6, the solved scale by inverse calculation can meet the accuracy requirement quickly.As a result, the operability of the multiresolution fairing is greatly improved.

Conclusion
On the basis of author's early research results, the specific algorithm, and software programming, the impact of various scales on fairing accuracy was analyzed firstly.Then a new inverse-problem-based accuracy control method for multiresolution fairing based on linear hypothesis and least square fitting was put forward.This research can be summarized as follows.(1) For any given fairing error, linear hypothesis was adopted firstly to predict the corresponding wavelet scale according to given control error.Then iterative algorithm was used to eliminate scale error caused by linear hypothesis.So in the condition of fairing accuracy, curves can be determined by a minimum number of control vertexes and have the best faring effect.
(2) The efficiency of multiresolution fairing is improved greatly with the dynamic integration of dyadic wavelet fairing and arbitrary resolution wavelet fairing.
(3) Using the idea of inverse problem for reference, a scale inverse calculation algorithm for multiresolution fairing was proposed in this paper.With the increase of order of fitting curves, inverse calculation accuracy becomes higher and higher.When the fitting curve is sextic, needed fairing scale can be calculated in a single step according to the given error and the operability of the multiresolution fairing is improved greatly.
(4) There is no any approximation algorithm, such as interpolation and approximation, in the whole fairing progress, so faired curves and surfaces can still be reconstructed accurately, which accords with the idea and essence of wavelet analysis.

Figure 2 :
Figure 2: B-splines and constructed wavelets in different scales.

Figure 14 :
Figure 14: First fairing result in accuracy control progress.Minimum 0.001 mm and maximum 0.015 mm.

Figure 15 :
Figure 15: Intervals sequence of accuracy control progress.

Figure 16 :Figure 17 :
Figure 16: Accuracy comparison between the faired curve and the original curve.

3 Figure 18 :
Figure 18: Flowchart of accuracy inverse calculation of multiresolution fairing basis on linear hypothesis.

Figure 23 :
Figure 23: Accuracy comparison between the new curve and the original curve (79 data points).

Table 1 :
Fairing errors correspond to different scale factors.

Table 2 :
Intervals result of accuracy control progress.

Table 3 :
Fairing scale determined by curves order.