Srinivasan 2007
Srinivasan 2007
Fig. 2 ISO definition of flatness tolerance †8‡. „a… The tolerance zone is limited by
two parallel planes a distance t apart. „b… The extracted „actual… surface shall be
contained between two parallel planes 0.08 units apart. No datum is needed. All
dimensions are in millimeters.
on the plane we fit, we can choose the fitted plane such that the only form tolerance in use. Figure 3 shows a comprehensive list-
standard deviation is minimized, or the range is minimized. The ing of geometric tolerances defined by the latest ISO standard 关8兴.
first will yield a plane that gives us an unbiased estimation of the These are the same as the ones defined by ASME. As the first
standard deviation and the second will yield a plane that gives us section in the list indicates, there are other types of form toler-
an unbiased estimation of the range. It is quite straightforward to ances. The general remarks we made above about flatness toler-
see that a plane so chosen that it minimizes the maximum distance ance apply to the rest of form tolerances as well. They can be
of the points from it minimizes the range, and this value for the assessed using fitting, which can be mathematically posed as op-
range can be used to check if it is less than the flatness tolerance timization problems.
specified per Fig. 2.
What we see from this example is the fact that current standard- 2.2 Datum Establishment. A quick look at the last column of
ized form tolerances use the measure of range to quantify allow- Fig. 3 reveals that datums are needed for most geometric toler-
able variation from Platonic ideal form. One may ask why the ances except for form. Datums are involved when we want to
range measure was chosen instead of, say, the standard deviation describe relative positions of geometric objects and allowable
共or, some constant multiple of standard deviation兲. The reason is variations in these relative positions. The role of datum can be
historic, as it is relatively easy to measure the range of variation illustrated using a simple example of parallelism, defined by ISO
using instruments such as a dial indicator. As more advanced mea- as in Fig. 4. 共ASME defines parallelism similarly.兲 If two nomi-
surement technologies become prevalent, it is time to re-examine nally flat surface patches are designed to be parallel, their realiza-
the definition of form tolerancing to see if other measures of tion in a manufactured part will not be exactly parallel. We then
variation can also be specified. In any case, we have established need to indicate how much deviation from parallelism we are
the fact that the fitting problem can be posed as an optimization willing to tolerate.
problem. We will explore this in some detail in Sec. 3. One obvious way to assess the out-of-parallelism between two
Before we close this section, we note that flatness is not the nominally flat surface patches is to fit a plane to points measured
on each of the manufactured surface patches, and then to check • Least-squares fitting: Here the objective is to find an ideal
what is the angle between these fitted planes. These planes should geometric object 共a smooth curve or surface兲 that minimizes
be fitted independently and the criterion used for fitting can be the sum of squared deviations of data points from this object
based on least squares or minimizing the maximum deviation, 关11,12兴. It includes linear least squares, total least squares,
depending on what makes the best sense from the design objec- and non-linear least squares techniques. These are continu-
tive. This, however, is not the standardized way to specify paral- ous optimization problems.
lelism. As Fig. 4 shows, one of the surface patches indicated as • Chebyshev fitting: Here the objective is to minimize the
datum D is chosen to establish a reference plane 共either by placing maximum deviation 关13兴. Some of these fitting problems
it on a surface plate or by fitting a plane to points measured on it兲 have been studied by discrete and computational geometers
and then demanding that points on the other surface patch should in the last 20 years. This has added some valuable insight in
be contained in the tolerance zone that is parallel to the datum designing algorithms to solve such problems. These are
共reference兲 plane. largely combinatorial optimization problems.
It is instructive to ask why standards have been using only such
a zone-based approach to define tolerances in the relative posi- National and international standards groups are actively working
tions of geometric objects. It is again due to historic reasons, on standardized definitions for the objective functions and con-
because specifications such as the one shown in Fig. 4 can be straints for the fitting problems. 共In the ISO terminology, fitting is
verified on actual parts using surface plates and dial indicators known as association 关14兴.兲 To get a feel for the types of optimi-
whereas fitting planes to measured points had to await the avail- zation problems they tackle, it is instructive to take one example
ability of CMMs 共coordinate measuring machines兲 and computers. and examine it in some detail.
Here again, we may want to reexamine the standards to allow Table 1 shows several plane fitting problems as optimization
alternate means of specifying tolerances on relative positions. problems, along with the objective functions and applicable con-
In any case, we see that fitting plays an important role for straints. If d1 , d2 , . . . , dn are the perpendicular 共Euclidean兲 dis-
datum establishment. Before we leave this section on fitting, a tances of n input data points from a plane P, then we can define
word of caution is in order. As Figs. 2 and 4 indicate, the toler- the distance between this set of points and the plane P using the
ances may be indicated on two-dimensional projected views but generic l p norm
their interpretations are always on three-dimensional parts. More
recently, even the tolerance specifications have been indicated on
three-dimensional geometric models, as shown in Fig. 5. Many
computer-aided design 共CAD兲 systems have been doing this for a
while and now there are ASME 关9兴 and ISO 关10兴 standards that
formalize such practices, as shown in Fig. 6.
3 Optimization
The computational scheme used for fitting is one of optimiza-
tion. As we saw in the last section, it may be of interest to fit a
plane to a set of points in space such that the sum of the squares
of the perpendicular distances of the points from the plane is
minimized. This is the total least-squares fitting problem. Such
problems have been studied in science over the past two centuries
and we can draw from this wealth of knowledge to find satisfac-
tory solutions. But there are also other seemingly simple fitting
problems that can tax our computational skills. For example, an
engineer may want to find the smallest cylinder 共that is, a cylinder
with the smallest diameter兲 that encloses a set of points in space
because it gives him some quantitative information about how a
part will fit in an assembly. This can be easily posed as a minimi-
zation problem, but computational methods to solve this problem
are not simple.
It is customary to divide the fitting problems broadly into the Fig. 5 Example of dimensioning and tolerancing an industrial
following two categories on the basis of the objective function part in a three-dimensional geometric model. „Courtesy Das-
that is optimized. sault Systemes.… All dimensions are in millimeters.
4 Filtering
Filtering is the task of obtaining scale-dependent information
from measured data. At a more mundane level, filtering can be
used to remove noise and other unwanted information from the
measured data. In the context of engineering metrology, engineers
are interested in filtering mainly for the following two reasons.
Fig. 6 Example of standardized indications of dimensioning • Surface roughness: Many engineering functions depend on
and tolerancing an industrial part in a three-dimensional geo-
how rough or smooth a piece of surface is. Designers define
metric model. All dimensions are in millimeters.
bounds on certain roughness parameters obtained by obser-
再兺 冎
vation on a rather small scale to ensure functionality of
n 1/p parts. These small-scale variations have to be separated
兩di兩 p
共1兲 from medium and large scale variations before roughness,
i=1
waviness and form deviations are assessed.
• Manufacturing process diagnosis: Manufacturing processes
The individual distances can be signed, in the sense that points leave tool marks on surfaces. By measuring surfaces at fine
lying on one side of the plane can be assigned positive distances scale, it is possible to track the tool erosion and its effect on
and the points lying on the other side can be assigned negative the surface quality.
distances. The l1 norm is then just the sum of the absolute values
of the individual distances. The l2 norm is the square root of the In simple terms, the surface variations are separated into rough-
sum of the squares of the distances. The l⬁ norm is the maximum ness, waviness, and form deviations. These correspond to small,
of the absolute values of the distances; to see this we need to look medium, and large scale variations of the surface 关16,17兴.
at the definition of the l p norm as p tends to infinity. The objective of filtering is to decompose measured data into
Some of the problems in Table 1 are worth remarking. The different scales and subject them to further analysis. Some of the
Plane2 problem is the most celebrated problem of finding the total earliest filters used in industry were known as mean-line filters
least squares 共also known as orthogonal regression兲 plane. This because the output they produced is smoother than the input and
problem has been solved by numerical analysts and statisticians, the output profile ran through the input profile. These mean lines
Objective
function to be
Output Input optimized Constraints Comments Designation
y共x兲 = 兰−⬁
+⬁
z共s兲K共x − s兲ds C = A 丣 B = 兵a + b : a 苸 A , b 苸 B其.
z共x兲: Input function A: Input set
K共x − s兲: Kernel function that is symmetric B: Structuring element, symmetric about the origin
y共x兲: Output function C: Output set
y is the moving average of z weighted by the kernel C is the translational sweep of B by positioning on A
can be used as the reference about which small scale variations shows how the underlying mechanical surface can be computed
contained in the input can be assessed. This was followed by from such a data. This is called an erosion filter, in the terminol-
development of envelope filters, whose output is smoother than ogy of morphological filters 关19兴. The effect of another morpho-
the input but the output profile enveloped 共that is, rode over兲 the logical filter, called closing filter, is shown in Fig. 9. This is a true
input profile. These envelopes are better correlated with mechani- envelope filter—the output is an upper envelope of the input. It
cal functional behavior of such profiles. The mean-line filters and rides on the peaks and smoothes out the valleys at a chosen scale.
envelope filters were developed and promoted by different re-
search and industrial group. 6 Summary and Concluding Remarks
Historically, filtering techniques were pioneered by communi-
cation theorists. Developments in analog and digital signal pro- In this paper we saw that advances in measurement tools and
cessing strongly influenced how filtering was carried out in sur- technology over the last 30 years have ushered in a new set of
face metrology. More recently, developments in digital image computational problems that impact design and manufacture of
processing have been influencing computational surface metrol- product geometry. These problems involve fitting and filtering of
ogy. It has since been recognized that mean-line filters are convo-
lutions of functions while envelope filters are convolutions of sets.
This realization has made it possible to treat filtering for metrol-
ogy in a more unified setting.
5 Convolution
The computational scheme used for filtering is one of convolu-
tion. Engineers use the following two types of convolutions.
• Convolution of functions: Filtering is often implemented as
discrete convolution of functions 关17,18兴. In the most popu-
lar version, the measured data is convolved with the Gauss-
ian function. It has a smoothing effect on the surface data.
• Convolution of sets: Morphological filters are implemented
using Minkowski sums 关19兴. These can be regarded as con-
volutions where the input set is convolved with a circular or
flat structuring element.