Documente Academic
Documente Profesional
Documente Cultură
31-44
JANUARY 2014 / 31
DOI: 10.1007/s12541-013-0303-8
Flatness and planar straightness are fundamental form tolerances in engineering design and its materialization through
manufacturing processes. Minimum zone tolerance is a preferred approach of flatness and straightness for widely accepted ISO and
ANSI standards. In this paper, we propose a novel accurate method of minimum zone tolerance based on vectorial calculus of point
coordinates. The non-linear minimax formulation of the original flatness or straightness problem is transformed into a set of linear
problems. Next, the optimal solution of the envelop planes or lines is reached through vectorial calculus for both flatness and planar
straightness. Then, the developed algorithms are compared to a selection of methods with published tests in recent and classic
literature on the topic, reaching the best attained accuracies or outperforming them in the trials. Finally, we propose a new
decomposition of the uncertainty contributions for analysis and the improvement of sampling strategy. We conclude remarking the
practical contributions of the proposals.
Manuscript received: July 29, 2013 / Accepted: November 27, 2013
1. Introduction
Flatness and straightness are both fundamental tolerances of form in
precision design and manufacturing engineering, for product
dimensioning and its verification through direct measurement, or as a
support to verify other specifications. The tolerances of prismatic parts
are ordinary referred to a datum, plane or line, idealization of a physical
plane or its orthogonal projection. The measurement of angular
magnitudes or squareness is also subject to the determination of planes
or lines and their tolerances. In machining, not only the tolerance of the
parts, but those of the supporting tooling and the machine tool itself are
involved in the manufacturing process capability and its control for
specification compliance.1
Relative deviations of physical planes or lines are often controlled
in the job shop with analogical dial instruments, displacing its probe on
the surface, but today digital measurement on coordinate measuring
machines (CMM) are widespread for product verification. The CMM
uses a set of discrete points coordinates that is evaluated to determine
a plane or a line. The standards ISO 11012 or ANSI Y14.53 establish
the minimum zone (MZ) as a preferred criterion of tolerance of form,
before other used methods like the least-squares. The standards consider
32 / JANUARY 2014
flatness assessment: In two different possible configurations, 2-2 and 31, depending on the minimum number of points lying on each of the
two envelop planes. In order to ensure an exact MZ solution, these
necessary conditions would require evaluating all possible configurations
from a given data set in a combinatorial hard problem. These
configurations will be revised later in the construction of the proposed
algorithm.
According with the ISO or ANSI standards, the determination of the
MZ for flatness involves not only the definition of the envelop planes
from the data points measured, but also its associated uncertainty. Since
the set of points is a sample from the whole surface, the strategy of
sampling includes the path of measurement and the number of points.
Previous research shows7 that the number of points has a higher
influence than the path of sampling in the results uncertainty. Due to
the close relationship of the number of measured points with the
measuring cost, several works8,9 have sought the reduction of the
sample size for a desired precision.
This paper is primary dedicated to the process of calculating the
flatness or planar straightness and its uncertainty after proper sampling.
Looking for an accurate calculation of flatness, several methods have
been developed since the 1980s that can be classified in a first instance
in two main categories:10 Based and non-based on computational
geometry. We can find other classifications11 where computational
geometry methods are at the same level of least-squares methods or
recent meta-heuristics. The first taxonomy by Lee10 is preferred and his
review is followed and complemented in the next paragraphs, because
the research line associated with computational geometry has provided
reference values to other new or improved methods.
We can mention among the non-computational geometry methods:
Direct least squares12 or weighted least squares.13 Its MZ interval
is ordinary overestimated, when the data points are not well aligned
with a CMM coordinate axis. Shunmugam14 proposed a method based
on the median, more robust estimator that the mean.
Non-linear optimization techniques. Its goal is minimizing the
maximum distance from an ideal reference plane or point. Some works
in the field are those by Shunmugam,15 Wang,16 Kaiser and Krishnan,17
Damodarasamy and Anand18 or Cheraghi et al..19 A characteristic point
of these non-linear search methods is the non-convexity of the
optimization problem and the need of several trials to look for a global
optimum.
Approximation methods. Based on linear programming, in some
cases they sacrifice accuracy for an easy implementation. We find in
this area the already mentioned work of Chetwynd.5 In addition,
Prakasvudhisarn,20 Car and Ferreira,21 Weber et al.22 or Zhu and Ding.23
Exchange methods. They construct the solution in a sequential search
of a better solution replacing a current set of points by a new one. The
works of Fukuda and Shimokohbe,24 Huang et al.,25 Deng et al.,26
Danish and Shunmugam27 or Burdekin and Pahk28 are between them.
Meta-heuristic methods. They have been applied to the minimum
zone problem after successful use in difficult combinatory problems. In
this category we find the genetic algorithm (GA) of Sharma et al.,29 Cui
et al.30 or Liu et al.31 combining GA with geometric calculation, particle
swarm optimization by Kovvur,32 and the gradient ascent approach of
the evolution algorithm by Malyscheff et al..33 Some weakness of these
methods could be the non-convergence to the exact solution or the
(1)
JANUARY 2014 / 33
(fp f*)
min ( fk fl )
/ fk fp fl ; p = 1, , n
(2)
min [( fk fl ) ] = 2 min
(fp f*)
, p = k, l
(3)
fk + fl
f* = ---------2
Thus, we can substitute the problem (2) by its equivalent (4)
2
min
(fp f*)
p
fk + fl
- and fk fp fl ; p = 1, , n (4)
/ f* = ---------2
min [( fk fl ) ] , fk fp fl ; p = 1, , n
2
subject to m, s [1, , n ] /
(4) (5)
(4) (5)
fm + fs
f -----------p
2
is minimum
(6)
fk + fl
fk f* fp f* fl f* with f* = ---------2
2
(5)
n ( fk f* ) ( fp f* ) n (fl f* )
that is
4--- n ( f f* )2 = ( f f )2
k
l
np p
is min.
min [( fp f* ) ] = [( f1 f* ) + ( fn f* ) ] f* = --------n
p
(7)
n--- ( f f )2 n ( f f* )2 n--- ( f f )2
p
4 k l
4 k l
p
fp
xp, yp, zp
(8)
n
fm + fs 2
- =
min fp -----------2
p
0
n
ym + ys 0 zm + zs
0 xm + xs
- + b y0p -------------- + c z -------------min a xp -------------
2
2 p
2
p
34 / JANUARY 2014
subject to
2
a +b +c 1 = 0
Dm, s =
0
xp
0
xp
; yp =
a
A m, s B = 0 ; B = b
c
0
yp
0
yp
; zp =
0
zp
0
zp
(9)
xm + xs
x1 -------------2
ym + ys
y1 -------------2
zm + zs
z1 ------------2
xm + xs
xp -------------2
ym + ys
yp -------------2
zm + zs
zp ------------2
T
subject to G: a + b + c 1 = 0
(11)
(12)
= 2 ( a + b + c ) = 2
n
( xp x )
A m, s =
( xp x ) ( yp y )
( yp y )
( xp x ) ( zp z ) ( yp y ) ( zp z )
where
( yp y ) ( zp z )
p
( zp z )
x m + xs
ym + ys
zm + zs
x = -------------; y = -------------; z = ------------2
2
2
(10)
subject to
2 0 0 A B = 2 B
2
2
2
G: a + b + c 1 = 0 G = 0 2 0
0 0 2
A B G B = 0;
A B = D D B = 2;
n
Pi Pj
ki
kj
li nlj
(13)
nki nlj
nkj nli
- ; dD = ------------------dC = ------------------nki nlj
nkj nli
It is evident that the four conceptual configurations are not compatible
between them, but they just enumerate all possible solutions based on
adding two points i, j to the initial two points k, l identified in the first
step. Before using a pair candidate for minimum in (13), the configuration
is checked for compliance of the envelop condition -first part of (5)-.
The two envelop planes are defined by the four points (i, j, k, l).
xp yp
0
0
- + -------- = f
axp + byp = ------1/a 1/b p
Where the vector (a, b) is normal to the line and normalized
(14)
JANUARY 2014 / 35
n
n
fm + fs 2
xm + xs 0 ym + ys
- = min a x0p -------------- + b y --------------min fp -----------
2
2 p
2
p
p
subject to
2
a +b 1 = 0
The corresponding eigenvalue problem is (15)
T
A B = 2 B ; D D B = 2 B
xm + xs
x1 -------------2
D m, s =
xm + xs
xp -------------2
(15)
ym + ys
y1 -------------2
ym + ys
yp -------------2
i,j,m,s = 1,,n
Note that in the case of planar straightness the solution vector (a,b)
is the normal to the envelop lines and it is defined by the eigenvector
corresponding to the smaller of the two eigenvalues of DTm,n Dm,n Where
(m,n) is the pair, out of the n(n-1)/2 possible, that gives the minimum
zone of the envelop lines defined by k,l, that is the first statement of (5).
The second part of the algorithm requires the examination of only
n configurations result of adding one more point to the pair. We can
transpose the reasoning about the configurations for flatness, to state:
- At least one point of the data set must lie in each envelop line.
- The envelop lines contain at minimum 1 or 2 points of the data
set under the configuration 1-2 or 2-1.
The vectorial calculations in the planar straightness case are given
by (16) that correspond to the geometrical configurations of Fig 2.
Pi Pj
= ( nxij, nyij ) ; nij = ( nyij, nxij)
nij = -----------Pi Pj
dA = nli Pk Pl ; dB = nki Pk Pl
Solution defined by 3 points [i, k, l] / min[min(dA, dB)],
i
i [1, , n ] {k, l}
(16)
4. Algorithm Testing
The proposed algorithm, Vectorial Minimum Zone (VMZ), is tested
in Table 1 with datasets from the literature and the reported results of
selected methods are compared with those obtained by the VMZ
method.
We note VMZ reaches or surpasses the precision of all the methods
in the comparison: Those based on meta-heuristics or least-squares, but
also the geometry computational methods based on convex hull.
In particular, it can be mentioned the computational precision
inconsistencies found in a recent improved convex hull method,
36 / JANUARY 2014
ECHEM. For instance, one of the results marked with (*) in Table 1:
They reported minimum zone is 0.0261282, but the reported points
that define the envelop planes are (3,19)-(4,11), in agreement with the
VMZ solution.
Based on these four points coordinates the minimum zone can be
calculated as 0.0236128872, by (17).
( p3, p19 ) = ( [1.7277, 2.4538, 13.6542 ], [0.1132, 0.3538, 13.6468 ])
( p4, p11 ) = ( [3.1273, 2.4538, 13.6531 ], [0.1095, 0.5439, 13.6451 ])
(17)
x3, 19 x4, 11
minimum zone = ---------------------------- x = 0.0026128872
x3, 19 x4, 11 3, 4
In the Table 2 we apply the VMZ algorithm for planar straightness
and we reach the better solutions found to the different problems,
giving more meaningful decimal places.
Reported by Zhu,23 the faster algorithm that guarantees the minimum
zone of flatness was presented by Houle and Toussaint34 with complexity
O(n2) in the worst case, while Traband35 is O(n3) in the worst case
Lee.41 Other methods have been reported23 with lower complexity than
O(n2), but only approximate algorithms.
The VMZ algorithm for flatness guarantees the MZ solution based
on its construction. We transform the original minimax formulation into
n(n-1) eigenvector problems, inspecting all of them to yield the better
possible MZ based on the demonstrated equivalence to the problem (5).
It is built-in two loops, Fig 3. The first loop requires the resolution of
n(n-1)/2 eigenvector problems. It catches the two pivot points in the
envelop planes. The second loop requires the inspection of the minimum
zone value after adding 2 additional points through vectorial calculus,
so (n-2)(n-3)/2 pairs inspection. This second loop inspects all the
possible solutions, retaining the best one. The complete algorithm
conceptually brings approximately to the order O(n2). After preliminary
testing for speed of our Matlab code, the computing time increases by
O(n2.2) for flatness and O(n2) for planar straightness, function of the
sample size n. We note that speed improvement would be a next step
by programming optimization or low-level programming language.
JANUARY 2014 / 37
u = 2uz'1 + ( x'1 x'2 ) uA' + ( y'1 y'2 ) uB' + 2 ( x'1 x'2 ) ( y'1 y'2 )uA'B'
Flatness or planar straightness is the subject of measurement.
Nevertheless, we determine the position of the points with a coordinates
measuring machine CMM and the flatness value under the minimum
zone criteria is the output of an algorithm, so it is an indirect measure
of flatness. The standard way of specifying a measurement includes the
better expected value and its uncertainty. When a direct measurement
is made, for instance the coordinates of a point, the mean value from
the sample of m measures is taken as the best expected value. The
estimation of the variance of this mean is the uncertainty, directly from
(18)
38 / JANUARY 2014
4.2588.10
1 ) = ( A, B, 1 )
(19)
The normal vectors of the m=3 samples and envelop planes points
in the new reference system
n'1 = ( 8.7847.10
n'2 = ( 5.3396.10
n'3 = ( 3.4440.10
A'i
11
B'i
12
A'i B'i
i
uA'B' = -------------------= 1,0953.10
m ( m 1)
2
11
u = 2uz'1 + ( x'1 x'2 ) uA' + ( y'1 y'2 ) uB' + 2 ( x'1 x'2 ) ( y'1 y'2 )uA'B'
2
1
m
-----------
2
m 1 2 2
u = ----------- -------------------- s ; s is the experimental standard deviation
2 m
--2
2m
2
1 m
m 1
m
--------------------- B'2
A'
2
2
2
m 1 2 i
i
uA' = ----------- -------------------- ------------ ; uB' = -------------------- -----------; (20)
2
2 m m 1
m
----
-- 2
2
2m
5.9084.10
1)
1.1861.10
1)
4.7223.10
1)
1
m
----------- A'B'
2
2
i
uA'B' = -------------------- -------------2
m
-- 2
In Table 3, we present the results of uncertainty based on the example
datasets, calculating variances with the Craig model and under three
different sampling setups (N=mxn). Uncertainty could be reduced to a
half sampling up to 75 points instead 30 points. A sampling setup N=70
with m=3 would allow an estimation of the uncertainty that can be
improved by additional sampling no more than 17%.
Noteworthy, the lower limit of the uncertainty is established by the
fix contribution from the CMM in the normal direction to the surface
u(CMM). The 3 dataset of n=10 has been generated retaining randomly
JANUARY 2014 / 39
u = 2uz'1 = u ( CMM )
(21)
(22)
2
i = 1, , n
This plain reasoning includes implicitly the fact that all the points
between the two envelop planes do not affect the uncertainty of the
solution for samples of sufficient size: When sampling with increasing
sample points to n, the definitive or real envelop planes should be
finally identified at some point during sampling and the probability of
finding a point outside the minimum zone tends to 0 afterwards. The
variability of the normal vectors to the surface becomes progressively
reduced, because once established the envelop planes, the next points
added inside the minimum zone to the sample will not modify the normal
vector, so the variances and covariance uA, uB , uAB will tend to 0, as
n.
Applying it directly to the former example, with coverage factor k=2,
we calculate (23).
Uk=2 = k VAR (MZ ) = k 2 0 = 2 2 0.0015 = 0.00424 (23)
This simple calculation can be compared with the MCM reported
output of 0.0042 from a million shot simulation. The MCM is expected
to get the parent distribution of the output after propagating the point
distributions through the model. The standard recommendation of a
million shot run is an operative approximation of n. Our
decomposition (18) has as a first and fix term the asymptotic
uncertainty, in fact the irreducible uncertainty of the width of the set of
points by the CMM uncertainty in the normal direction to the surface.
We retake the case samples and their results to remark a feature on
the standard MCM. We could point out the high quality of the 3 samples
of 25 points with mean flatness of 0.0187, the same than the result of
the simulated parent distribution through MCM. Conversely, we could
interpret it in a reverse manner. The possible bias of the flatness present
at the 3 samples remains in the MCM, because we simulate imposing
on every point of the sample a N(0, 0) through each of the three axis.
Only the outstanding points on the envelop planes are required to
defining the minimum zone. The mean position of the points will be the
same than the initial sample, so flatness as the expected value or mean
of the distribution from a million shots is the same than the calculated
from the 75 original points. Note that the uncertainty calculated from
a simulated million shot on the distribution and from only 75 points are
both similar. The difference of using a larger sample across the whole
surface could represent the possibility of catching the more outstanding
picks and valleys. This will offer a lower biased value to minimum zone.
Meanwhile, the minimum zone value could be underestimated for small
samples even with a good value of the uncertainty interval. Increasing
the sample size with points between the envelop planes would not
improve the expected value of flatness and it would only reduce the
uncertainty to the lower limit of the CMM in the normal direction to
the surface. This decomposition makes explicit how the minimum zone
criteria of flatness is appropriated for relative low uncertainty CMMs,
so the irreducible contribution of the CMM to the uncertainty interval
is small and it does not ruin the operative use of low flatness values
from very flat surfaces.
40 / JANUARY 2014
when fl fm fk
min [( fk fl ) ] = 2 min
p (fp f*)
fk + fl
, p = k, l f* = ---------2
6. Concluding Remarks
min
We have introduced two accurate and fast algorithms for flatness and
planar straightness calculation from data point coordinates and proposed
a practical improvement for their uncertainty estimation. We demonstrate
the transformation from a hard minimax problem into minisum problems,
and finally to eigenvector problems. Its accuracy has been satisfactory
tested, with the same good results or outperforming many well-known
methods.
We revise their uncertainty estimation and in particular the separation
of contributions through a vectorial approach. In order to complement
or monitor an effective sampling strategy, we suggest an integrated
analysis of the uncertainty of the measured points (CMM), the number
of samples m and the size of the samples n. We apply it to the real and
practical situation of a low number of samples, looking for a low biased
estimate of its uncertainty. We finally remark that the proposed flatness
and planar straightness assessment rely on the algebra of vectorial
calculus that is a natural technique in dealing with the coordinates of
the points, as well as a familiar tool in engineering for practitioners and
researchers.
ACKNOWLEDGEMENT
APPENDIX A
In the Euclidean space, noting by d(k, l) the distance between the
points k and l, in general
d ( k, l ) d ( k, p ) + d ( l, p ) ; d ( k, l ) = d ( k, p ) + d (l, p )
, p = k, l
p (fp f*)
fk + fl
f* = ---------2
(a)
, p = k, l
(b)
Prove of (a)
2
min
p (fp f*)
, p = k, l
fk + fl
f* = ---------2
min
p (fp f*)
------fp
= min ( ) d = 0 ; ------fp
p (fp f*)
= 0 2
p (fp f* )
dfp = 0
f +f
k
-l
(fp f* ) = 0 f* = ---------2
p=k, l
f* is a relative extreme
f
f
f
dfp = ------p- dx + ------p- dy + ------p- dz = [a dx + b dy + c dz ] and
x
y
z
2
p (fp f*)
f p fp fp f p
f
--------2- = --------2- = --------2- = ----------- = = ----------p- = 0 d 2fp = 0
yx
yz
x
y
y
2
d = --------2dfp
p (fp f*)
dfp = 2dfp
At the relative extreme f*, d2fp is definite positive, and d3=0; that
is a sufficient condition of relative minimum, thus f*=(fk+fl) / 2 is a
relative minimum of a continuous function in a compact so by the
Weierstrass theorem the absolute min. of .
The second statement (b). Given k, l and n. The minimum distance
between two parallel planes of normal n, that lie in k, l, is n(xk-xl)=|fk-fl|
JANUARY 2014 / 41
Thus
2
min ( fp f* ) =
p
f +f
k
-l
fp ---------2
p=k, l
fk + fl 2 fk + fl 2
- + f ----------= fk ---------
2 l 2
f l f k 2 f k f l 2 1
2
2
1
- + ----------- = --- ( f f ) = --- min [( fk fl) ]
= --------- 2 2 2 k l
2
APPENDIX B
APPENDIX C
In the reference OXYZ of ortonormal base {e1, e2, e3}
Equation of the envelop planes of the sample i, Aix+Biy+Ci=z; Ci a
constant, i=1, , m;
Where
( z1 z2 ) A ( x1 x2 ) B ( y1 y2 )
f = ----------------------------------------------------------------------2
2
1+A +B
minimum zone value or min. distance between two points of the
envelop planes (x1, y1, z1) and (x2, y2, z2).
The uncertainty expression retaining terms of the leading order
u2=fA2uA2+fB2uB2+fAfBuAB2+fx12ux12+fx22ux22+fy12uy12+fy22uy22+
fz12uz12+fz22uz22
A
fx = fx1 = fx2 = ---------------------------2
2
1+A +B
B
fy = fy = fy2 = ---------------------------2
2
1+A +B
1
fz = fz1 = fz2 = ---------------------------2
2
1+A +B
x1 + x 2
A [ ( z 1 z 2 ) A ( x 1 x 2 ) B ( y1 y 2 ) ]
- ------------------------------------------------------------------------------fA = --------------------------2
2 3/2
2
2
(1 + A + B )
1+A +B
y1 + y 2
B [ ( z 1 z 2 ) A ( x 1 x 2 ) B ( y1 y 2 ) ]
- ------------------------------------------------------------------------------fB = --------------------------2
2 3/2
2
2
(1 + A + B )
1+A +B
The change to the reference system O'Y'Z' of base {e'1, e'2, e'3 } is
given D:
Where e'3 is a unitary vector by the normal direction to the mean
plane
e'1
e1
A
B
1
--------------------------------, --------------------------------, -------------------------------- ; e'2 = C e2 ;
( 1 + A 2 + B 2 ) ( 1 + A 2 + B 2 ) ( 1 + A 2 + B 2 )
e'
e
3
( A + B )
A
B
------------------------------------------------------ ------------------------------------------------------ -----------------------------------------------------2
2
2
2
2
2
2
2
2
2
2
2
(1 + A + B )(A + B ) (1 + A + B )(A + B ) (1 + A + B )(A + B )
C=
B
-----------------------2
2
(A + B )
A
-----------------------2
2
(A + B )
A
-------------------------------2
2
(1 + A + B )
B
-------------------------------2
2
(1 + A + B )
1
-------------------------------2
2
(1 + A + B )
42 / JANUARY 2014
Where
Ai
Bi
i
i
; B = ---------A = ---------m
m
9. Cao, Y., Li, B., Guan, J., Yang, J., and Gan, C., A Study on Mutative
Scale Straightness Measurement Based on Uncertainty Analysis,
11. Cho, S. and Kim, J. Y., Straightness and Flatness Evaluation using
Data Envelopment Analysis, The International Journal of Advanced
Manufacturing Technology, Vol. 63, No. 5-8, pp. 731-740, 2012.
Thus
2
u = fA' uA' + fB' uB' + fA' fB' uA'B' + fx'1 ux'1 + fx'2 ux'2
2
u = 2uz'1 + ( x'1 x'2 ) uA' + ( y'1 y'2 ) uB' + 2 (x'1 x'2 ) ( y'1 y'2 )uA'B'
13. Zhu, X., Ding, H., and Wang, M. Y., Form Error Evaluation: An
Iterative Reweighted Least Squares Algorithm, Journal of
2
Manufacturing Science and Engineering, Vol. 126, No. 3, pp. 535541, 2004.
14. Shunmugam, M. S., On Assessment of Geometric Errors,
REFERENCES
1. Kim, W. J., Shimizu, Y., Kimura, A., and Gao, W., Fast Evaluation
of Period Deviation and Flatness of a Linear Scale by Using a
Fizeau Interferometer, Int. J. Precis. Eng. Manuf., Vol. 13, No. 9,
pp. 1517-1524, 2012.
2. ISO No. 1101: 2012 Geometrical Product Specifications (GPS) Geometrical Tolerancing - Tolerances of Form, Orientation, Location
and Run-Out, 2012
3. ANSI, Dimensioning and Tolerancing, http://webstore.ansi.org/
RecordDetail.aspx?sku=ASME+Y14.5-2009.html (Accessed 20 Dec
2013).
4. Weill, R., Clment, A., Hocken, R., Farmer, L. E., Gladman, C. A.,
and et al., Tolerancing for Function, CIRP Annals - Manufacturing
Technology, Vol. 37, No. 2, pp. 603-610, 1988.
5. Chetwynd, D. G., Application of Linear Programming to Engineering
Metrology Proc. of the Institution of Mechanical Engineers, Part B:
Management and Engineering Manufacture, Vol. 199, No. 22, pp.
93-100, 1985.
6. Anthony, G. T., Anthony, H. M., Bittner, B., Butler, B. P., Cox, M.
JANUARY 2014 / 43
44 / JANUARY 2014