Skip to content

CAD kernel foundations · Part five

Working in the parametric domain

The (u, v) rectangle a kernel computes in, and how it differs from a plane

Part three ended on a small observation: a uniform grid in (u, v) is not a uniform grid on the surface. This article follows that observation through. A kernel does much of its geometric work in the parameter rectangle, because two dimensions are cheaper than three. But the rectangle is a distorted chart: its two axes can carry different units, the conversion between a parameter step and a distance changes from point to point, and two of its four edges are often seams or poles instead of real edges. In this article we look at what that costs, what it breaks, and what an algorithm needs to know to handle it.

Why kernels work in the parameter rectangle

A surface is a map from a rectangle of parameters into space. Part three covered the map. This part is about the rectangle, because a kernel does a great deal of its computing there, and the reason is arithmetic.

Let’s take a concrete question: does a point lie on a bounded cylindrical face? In space, this is a question about a point, an infinite surface, and a set of 3D curves bounding a region of it, and there is no cheap way to answer it. Pulled back into the rectangle, it becomes a question about a point and a closed polygon in two dimensions, which is a first-year exercise. Many of a kernel’s problems reduce in the same way: trimming a surface, deciding which side of an edge a face lies on, laying out a triangulation, tracking an intersection curve, hatching a section, finding whether two faces overlap. All of them lose a dimension when they move into parameter space, and that dimension is often the difference between an algorithm that ships and one that does not.

So the kernel trades a dimension for a distortion. Every implementation makes this trade; what separates a careful one from a naive one is how few decisions it takes on the distorted side. The best production meshers do almost all of their arithmetic in the rectangle and almost none of their judgement there: a step is proposed in parameter space, then accepted or rejected on a distance measured in millimetres. In short, we propose in the rectangle and confirm in space. Most of this article explains why.

The first fundamental form

Part three measured how far a point moves for a unit step of each parameter, and found the answer was sometimes 1, sometimes a radius, and sometimes a function of the other parameter. Those two numbers cover most of what we need. The missing piece is the one that says whether the two parameter directions are at right angles to each other on the surface.

u v 0 2π −π/2 π/2 S a uniform grid in (u, v) at the equator the same cell, against the pole
The same grid, twice. On the left the cells are identical by construction; on the right is what the map makes of them: wide at the equator, pinched to a sliver near the pole, and the top row is not made of quadrilaterals at all, because the whole upper edge of the rectangle is one point. The two shaded cells are the same size in (u, v) and differ by a factor of 3.7 in area on the surface. Any parametrisation of a curved surface does this, not only this sphere or this grid, so an algorithm that samples parameter space evenly always gets the picture on the right.

Three quantities describe how the rectangle maps onto the surface near a point. Two are the squared lengths of the partial derivatives, E and G (the squares of the two numbers part three printed). The third, F, is the dot product of the two derivatives. It measures the angle between the parameter directions on the surface: the iso-parameter curves cross at a right angle exactly when F is zero. Together, the three give the length of a step in any direction, not only along the axes:

ds² = E du² + 2F du dv + G dv²

This is the first fundamental form, and every correct answer in this article is written in terms of it. We can read it as a unit conversion that depends on where we are and which direction we step in. A step of one in u and a step of one in v are different distances. A step of one in u here and a step of one in u somewhere else are different distances. And a diagonal step is the Pythagorean combination of the two only when F is zero.

For the five surfaces of part three, F is zero in every case:

SurfaceEFGWhat the pair of units is
Plane101length × length
CylinderR²01angle × length
Cone(R + v sin α)²01angle × length
SphereR² cos² v0R²angle × angle
Torus(R + r cos v)²0r²angle × angle

We can read three things from this table.

The plane is the only isometry. It is the one surface whose rectangle is a plane: E and G are 1, F is 0, and a distance measured in parameters is a distance in millimetres. Our intuitions about parameter space come from this case, and they do not carry over to any of the others.

The units depend on the surface as well as the axis. On a cylinder the rectangle is an angle crossed with a length, so a parametric “distance” mixes radians with millimetres. On a sphere it is angle crossed with angle. The familiar expression √(Δu² + Δv²) is therefore dimensionally incoherent, which is a stronger problem than having no units: on a cylinder it adds radians squared to millimetres squared and reports the root as a distance.

Because F is zero, two numbers are enough here. With a diagonal metric the two directions decouple: the conversion in u and the conversion in v can be computed and applied independently, and a tolerance can be a pair of numbers instead of a tensor. Kernels take exactly this route, offering a per-direction conversion from a distance in space to a span in each parameter. The design is legitimate because of the zero in the middle column. That zero is a property of these particular parametrisations and not of parameter space in general, and it disappears once we leave the closed forms. For a general free-form surface, an offset, or a surface of revolution on an arbitrary profile, F is not zero, the metric does not decouple, and the per-direction answer becomes an approximation whose error nobody is tracking. This is one of the less visible costs of the free-form geometry of part four.

How the table was checked

Each row is computed twice, once from the closed form as printed and once from a production kernel’s own first derivatives, at forty pseudo-random parameter pairs per surface. The surfaces are placed in a deliberately skewed position, so that a formula which is only right in the canonical frame would fail. The two agree to 6 × 10−14 at worst, and the measured F never exceeds 2 × 10−15 over all two hundred samples. So the zeros in the middle column are measured values.

Three kinds of tolerance

Almost every algorithm has to ask whether two things are close enough, and in parameter space that question has no answer until we say close in what sense. Three different concerns share the one word, and an implementation that mixes them up will be wrong in three unrelated ways.

ConcernThe question it answersWhat fixes it
MetricHow far apart are these two points, in millimetres?The first fundamental form, applied at the point
ConditioningWill this arithmetic keep its significant digits?Shifting and rescaling the domain
RepresentabilityWhat is the smallest difference a double can hold here?An epsilon relative to the magnitude of the coordinate

The metric concern is the one part three set up. The reference value a kernel holds is a distance in space. A parametric tolerance is that distance converted through the metric, and it has to be converted separately for each direction because the factors differ. On a cylinder of radius 50, a tolerance of a hundredth of a millimetre along the axis becomes a hundredth of a millimetre divided by fifty going around it. One scalar cannot be both.

Two properties of this conversion are easy to get wrong. First, it is a local linearisation, valid near the point where the derivative was taken, so a kernel that caches one conversion factor per surface is holding a bound and not a value. Second, the guarantee runs one way only: keeping a parameter step under the converted tolerance does bound the distance in space, but a small distance in space does not imply a small step in parameter. Near a sphere’s pole, two points three radians apart in u can be a nanometre apart, and no per-direction bound will detect it.

The conditioning concern is unrelated, and this is the most important distinction in this section. Shifting the domain to the origin and rescaling both parameters onto the same interval (typically the unit square) makes the arithmetic well behaved. Comparisons stop mixing magnitudes, subtracting two nearly equal large coordinates stops losing significant digits, and a division in a crossing test stops overflowing when one axis spans thousands and the other spans six. Of the two operations, the shift usually does more, because catastrophic cancellation on tightly clustered coordinates far from the origin is the more severe failure.

But the rescale only fixes conditioning. After rescaling, a distance in the rectangle still means nothing on the surface, and the rescale hides the ratio between the two conversion factors (the anisotropy, which is the whole problem). The two techniques address different failures, and we need both. An implementation that has rescaled and assumes it has dealt with units has a bug that will only appear on badly proportioned surfaces.

The representability concern is smaller but real. It is why a well-built kernel adds an epsilon scaled to the size of the coordinate before comparing anything. A model placed near the origin and the same model placed a kilometre away do not have the same floating-point resolution, so a constant that works for the first will fail for the second. This concern has nothing to do with surfaces; it comes from the double format.

Combinatorial and metric decisions

There is a simple test to tell whether a piece of parameter-space code needs the metric at all: would the answer change if someone multiplied u by one constant and v by another?

Let’s look first at decisions this rescale does not affect. Count how many times a ray crosses a closed polygon: stretching the axes moves every crossing but creates and destroys none, so the parity is unchanged. Take the sign of a signed area to decide whether a loop runs clockwise: a positive rescale cannot flip it. Ask which of two points comes first along an axis: the order holds. These are combinatorial decisions, and they are safe in the rectangle as they stand. This is why a point-in-polygon classifier can rescale its polygon to the unit square and be certain it has changed nothing: its predicate is invariant under the transform, so the rescale costs nothing and only buys floating-point headroom. Part seven looks at that classifier in detail.

Other decisions change under the same rescale. Anything that compares a parametric quantity against a threshold (is this gap small, is this triangle too thin, is this area negligible, are these two points the same) gives an answer that moves when the axes move. So does anything that computes an angle between two parametric directions, a distance, or a circumcircle. These decisions need the metric. Without it, they report an answer about the rectangle while the caller believes it is an answer about the surface.

So the rule is short. Combinatorial decisions are safe in parameter space; metric decisions are not. If we sort our parameter-space code into these two groups, the second group is the list of places that must either convert through the first fundamental form or move the decision back into three dimensions.

The rule also explains a case that looks inconsistent at first. A classifier normalises its polygon and the result provably does not change; a mesher normalises its parameter domain and the result provably does change. Both rescale the same kind of rectangle. The difference is the mesher’s triangulation criterion, a circumcircle test, which is invariant under similarity but not under an anisotropic stretch: change the ratio between the axes and we get a different mesh. So when a mesher rescales its domain by the measured arc length of each direction, turning the rectangle into a basis where both axes are approximately millimetres of surface, it is supplying the metric in the only form a triangulator built for the plane can use. The operation is the same as the classifier’s but the purpose is the opposite, and the rescale test is what tells them apart.

Poles, apexes, seams and self-intersection

Part three listed three places where a parametrisation breaks: the seam, degeneracy, and self-intersection. Each one breaks the metric too, and in these places the conversions above stop being approximations and become meaningless.

The sphere’s pole

At a sphere’s pole, E = R² cos² v goes to zero, so the conversion from a distance in space to a span in u divides by a quantity that vanishes. Here is the measured behaviour on a sphere of radius 4.25 with a tolerance of 10−7 mm:

Latitude v√EThe same tolerance, in u
0° (equator)4.252.35 × 10−8 rad
60°2.134.71 × 10−8 rad
89°0.0741.35 × 10−6 rad
89.99°0.000741.35 × 10−4 rad

Between the equator and a hundredth of a degree from the pole, the correct parametric tolerance for one fixed distance in space grows by a factor of about 5,700, and it keeps growing without limit as we approach the pole. At the pole itself every value of u gives the same point, so the correct tolerance is the whole domain, and any finite number is wrong.

In practice, the answer is to stop using a parametric tolerance there: at a pole, no parametric tolerance is correct, and the comparison has to be made in three dimensions or not at all. A kernel that reaches this state and disables its parametric comparison entirely, deciding coincidence on the 3D points alone, is doing the right thing, for the reason above.

The cone’s apex

A cone’s apex fails in a different way, and the difference matters. The sphere’s pole is an artificial singularity: the surface is smooth there and only the chart breaks down, so a different parametrisation would remove it. The cone’s apex is an essential singularity: there is no tangent plane at that point, and no choice of parameters will produce one. Both send E to zero and both break the conversion, but only one is the parametrisation’s fault, and a kernel that handles them with the same code will be right about one of them by accident.

One statement covers both cases. The area element on a surface is √(EG − F²), and curvature computations divide by it. At a pole and at an apex this determinant goes to zero, so the classical formulas are undefined there (and not only inaccurate), and every quantity derived by dividing by it has to be obtained another way or not at all.

The seam

The seam is the opposite case: the metric is fine, but the rectangle is not simply connected. The left and right edges of a cylinder’s rectangle are the same points of the surface. Two parameters a full period apart are one place, so a parametric difference says nothing about separation until it has been reduced modulo the period.

This has two consequences. First, a parameter is only meaningful relative to a neighbour, never in absolute terms: the right operation is to bring a value within half a period of a reference point, instead of clamping it into a canonical range. Second, the period reconstructed by subtracting the domain bounds is not exactly the period itself. The two differ in the last bits of a double, and an algorithm that reduces by the reconstructed value accumulates a drift that a periodicity test will eventually fail on. So we take the period as given and do not re-derive it from the range.

Self-intersection

The third case from part three is the rarest and the hardest to handle. When a torus’s tube swallows its own axis, two parameter pairs that are not related by any period map to the same point in space. No reduction identifies them: at the seam two parameters name one place in the chart, but here they are two different places in the chart that land on the same point. Nothing local can detect this; only a global check can. This is why a kernel flags the self-intersecting cases of its surfaces in advance instead of discovering them.

Trimmed faces in the rectangle

So far we have treated the domain as a rectangle. Part one’s topology changes that: a face is a region of the rectangle, cut out by curves.

Each edge bounding a face carries, next to its curve in space, a parametric curve: its image in that face’s rectangle. The wires become closed loops of these curves, and the face is the region they enclose. This representation is what makes the dimension reduction of section one possible, and it brings four problems with it.

On the elementary surfaces these parametric curves are usually simpler than the 3D curve they come from. Take a cylinder, whose parameters are an angle u round the axis and a length v along it. An arc of a circle cut at a constant height only changes u, so its image is a horizontal segment at constant v. A straight line along a ruling only changes v, so its image is a vertical segment at constant u. A helix climbing the cylinder at a steady rate changes both at a steady rate, so its image is a diagonal segment:

three curves on a cylinder the same three in (u, v) A B C S⁻¹ u v 0 2π v₀ v₁ A: v = const B: u = const C: helix
A: arc of circle, v constant B: ruling line, u constant C: helix, both vary linearly
Three curves on a cylinder, and their images under the inverse map. A is an arc of a circle at fixed height and becomes a horizontal segment; B is a line along a ruling and becomes a vertical segment; C is a helix and becomes a diagonal segment. Each pair of dots is one 3D point written twice: once as (x, y, z) on the surface, once as (u, v) in its rectangle.

The same simplification holds across the five surfaces of part three. Curves at constant u or constant v are axis-aligned segments in the rectangle, and the edges a modeller actually writes are mostly of this kind:

Surface3D curve on itIts parametric curve
Planelineline
Planecirclecircle
Cylinderruling (line parallel to the axis)vertical segment, u constant
Cylindercircle at constant heighthorizontal segment, v constant
Cylinderhelixdiagonal segment
Conerulingvertical segment, u constant
Conecircle at constant heighthorizontal segment, v constant
Spheremeridianvertical segment, u constant
Sphereparallel (circle of latitude)horizontal segment, v constant
Toruscircle round the axis, or round the tubehorizontal or vertical segment

Not every section is this kind. Cut a cylinder with a slanted plane and the 3D curve is an ellipse, while its image is a sine wave in v against u. The parametric curve is then a free-form curve even though both the surface and the cutting plane are elementary. Kernels keep the general representation for this reason: a parametric curve is stored as a 2D spline, and the table above lists the cases where that spline happens to be a line or a circle.

The same three-curve picture on the other four surfaces:

two curves on a plane the same three in (u, v) S⁻¹ A B u v u₀ u₁ v₀ v₁ A: line B: circle
A: line B: circle arc
Two curves on a plane, and their images. A line stays a line and a circle stays a circle. The plane is the only isometry in the table of section two, so the right-hand panel is the left-hand patch up to scale. Both parameters are lengths, nothing is periodic, and no edge needs special handling.
three curves on a cone the same three in (u, v) S⁻¹ A B C u v 0 2π v₀ v₁ A: v = const B: u = const C: helix
A: circle, v constant B: ruling, u constant C: steady climb, both vary linearly
The same three curves on a cone: a circle at fixed v becomes a horizontal segment, a ruling becomes a vertical segment, a steady climb becomes a diagonal segment. The only difference from the cylinder is what v measures: length along the ruling, so the vertical axis of the rectangle is already an arc length.
three curves on a sphere the same three in (u, v) S⁻¹ A B C u v 0 2π −π/2 π/2 A: v = const B: u = const C: diagonal
A: parallel, v constant B: meridian, u constant C: steady diagonal climb
Three curves on a sphere: a parallel becomes a horizontal segment, a meridian a vertical segment, a steady climb from one to the other a diagonal segment. The red top and bottom edges of the rectangle are the poles: whole edges in (u, v) and single points in space, with finite parametric length and zero length on the surface.
three curves on a torus the same three in (u, v) S⁻¹ A B C u v 0 2π 0 2π A: v = const B: u = const C: winding
A: circle round the axis, v constant B: circle round the tube, u constant C: steady winding round both
Three curves on a torus: a circle round the axis becomes a horizontal segment, a circle round the tube a vertical segment, a curve winding steadily round both a diagonal segment. Both pairs of rectangle edges are seams (both shaded), so the rectangle with both pairs glued is itself a torus: the only one of the five whose chart is a faithful picture of its surface.

The region has holes. It has an outer loop and any number of inner loops, exactly as in the plane, with the same orientation convention to tell them apart. This part is easy, and it is the one everyone implements first.

The region can wrap the seam. A face covering the whole of a cylinder has a boundary that runs off one edge of the rectangle and comes back in on the other side. It is a closed loop on the surface and an open one in the chart, so any algorithm that assumes the region is bounded by closed polygons in the rectangle fails on the most common shape in mechanical CAD.

The region can reach a pole. The top of a sphere is a single point of the surface and an entire edge of the rectangle. In the region it appears as a boundary curve with finite parametric length and zero length in space: a degenerate edge. The right way to detect one is by its length in three dimensions. A parametric test cannot see it, because in the rectangle it looks like an ordinary curve.

The same edge is stored twice, and the two copies drift. An edge shared by two faces has a curve in space and a parametric curve in each of the two rectangles, and these are independent representations of one thing. They agree only to a tolerance, and keeping them in agreement is a named problem in every kernel. The soundest version of the check does not compare in parameter space at all: evaluate the 3D curve at a parameter, evaluate the surface at the parametric curve’s value for the same parameter, and compare the two points in millimetres. When they disagree, the sound repair is to widen the edge’s tolerance to cover the deviation. This is how tolerance grows through a model, and why part eleven finds Booleans dealing with tolerances that earlier operations set.

Sampling a surface evenly

The most common thing anyone does with a parameter rectangle is walk across it on a grid, and this is where the distortion is most visible. Part three stated the problem: sample parameter space evenly and the triangles crowd at a sphere’s poles and stretch at its equator. Let’s see how that is corrected.

In principle, the fix is to give the rectangle the metric it inherits from the surface instead of treating it as flat. Written out, the first fundamental form is a symmetric two-by-two matrix at every point of the rectangle, and it turns the parameter domain into a curved space in which lengths, angles and areas can all be measured correctly. Mesh generators built this way work entirely in parameter space, which keeps them two-dimensional and fast, while measuring everything in the induced metric, which keeps them correct. The anisotropy then becomes data: the mesher knows the elements should be stretched in the chart, because it knows they will come out square on the surface.

In practice, the fix is usually cruder. Measuring the 3D arc length spanned by each parameter direction and rescaling the rectangle by it gives a basis in which both axes are roughly millimetres of surface. It is a single global approximation to a quantity that varies from point to point, so it is exact only for the plane and the cylinder and an average everywhere else. But it is enough for a triangulator written for the Euclidean plane to produce sensible elements, and it costs one sampling pass. When we read that a mesher “normalises its parameter domain”, this is usually what is meant, and by section four’s test it is a metric operation, not a conditioning one.

Two more points about sampling are less obvious.

The sampling criterion is a distance in space. What a user asks for is a deflection (the greatest distance the facets may deviate from the true surface), and the parameter step is derived from it through the metric and the curvature, never the other way round. A tessellator whose setting is “number of samples per direction” exposes an implementation detail and cannot promise anything about the result.

Boundaries are tessellated before interiors, and in space. An edge shared by two faces has to receive the same points from both sides, or the shell comes apart, and the only representation both faces agree on is the 3D curve. So the edge is discretised in three dimensions and the resulting points are pulled back into each face’s rectangle. This is the same principle as in section one: propose in the rectangle, confirm in space.

Implementation checklist

If we implement this from scratch, the failures in this article arrive in a predictable order, and most of them are cheap to prevent and expensive to fix later. Here is the list, roughly in the order they appear.

Give the parametric domain its own types. This decision determines whether the rest can even be expressed. If a point in a parameter rectangle has the same type as a point in a plane, every operation defined on the plane (distance, angle, norm) is available on it without warning, and every one of them is wrong. This is the same distinction part three made between a point and a vector, for the same reason: a type system that cannot tell two things apart lets us write the bug.

Never store a parametric tolerance as the reference value. Keep the tolerance in millimetres, and derive the parametric one where it is used, in each direction, from the metric at that point. A cached per-surface conversion is a bound and should be named as one.

Do the conditioning rescale, knowing it does not fix the metric. Shift to the origin, scale each axis onto a common interval, and keep the unscaled values for anything that communicates with the outside. Then do the metric work as well.

Sort predicates with the rescale test. Combinatorial ones are safe; threshold ones are not. Doing this once, explicitly, on paper, finds more real bugs than any amount of testing on well-proportioned parts, because the failures only appear when the two axes are badly matched.

Handle periodicity by reframing against a neighbour. Do not clamp to a canonical range, and do not use a period recomputed from the domain bounds.

Treat the degenerate row as a separate case. Detect poles and apexes by the collapse of the derivative, detect degenerate edges by their length in space, and give both their own branch. Code that tries to reach them by letting a tolerance grow will either never trigger or trigger everywhere.

Decide which representation is authoritative, and write it down. When the 3D curve and the parametric curve disagree, one of them must win. Whichever we choose, the check that compares them belongs in three dimensions.

Drive sampling from a deflection in millimetres. Do not drive it from a sample count or from a parametric step.

Why the types come first

None of these is difficult on its own. They become hard because a library that makes the first mistake (reusing its planar geometry types for the parametric domain) cannot cleanly make any of the later corrections: the place where the units diverge is not visible anywhere in its code. The symptoms then get treated one at a time: a magic constant for one surface type, a rescale to make a triangulator behave, a special case for the seam. Each patch works, but none of them addresses the cause. If we are building a kernel, these are the decisions to make before there is anything to retrofit.

What this article leaves out

The quality of a parametrisation we did not choose. Everything here took the parametrisation as given, which is fair for the ten closed forms because convention fixes their parameters. A free-form surface’s parameters are whatever its knot vector says, and they can be badly distributed in ways that make every quantity in this article worse. Choosing them (uniform, chord-length, centripetal) and repairing them afterwards needs an article of its own.

Arc-length parametrisation, and why we cannot have it. The obvious wish is a reparametrisation in which the parameter is arc length, making E and G equal to one everywhere and this whole article unnecessary. For the polynomial and rational curves a kernel stores, no such reparametrisation exists except in trivial cases. This is a theorem, and not a gap in the literature, so the distortion is a permanent property of these representations.

Containment in detail. The point-in-region test has served as an example throughout without being examined. More algorithms rest on it than on any other foundation algorithm, it has two quite different classical answers with different robustness properties, and choosing between them is exactly the kind of decision section four is about. That is part seven.

Intersection curve tracking. Marching along a curve that lives at the same time in two parameter rectangles and in space, with a separate step in each of the four parameters, is where every problem in this article occurs at once. It belongs with the foundation algorithms.

Reading list

Sources

N. M. Patrikalakis and T. Maekawa, Shape Interrogation for Computer Aided Design and Manufacturing, Springer, 2010. Read directly, in the MIT hyperbook edition. Section 3.2 is the reference for the first fundamental form as this article uses it, including the orthogonality condition on F and the area element; section 3.1 is the source of the essential/artificial distinction between the cone apex and the sphere pole.

I. Stroud, Boundary Representation Modelling Techniques, Springer, 2006. Read directly. Section 10.2, pp. 315–317, is the closest thing in the B-rep literature to this article’s subject, and states the problem in almost these terms: facetting is done in parameter space so that it happens in a plane, and determining an appropriate parameter space for a face “is not a straightforward problem”, because circular edges at different heights on a cylinder have different lengths there. The tolerance rules on p. 604 (a distance must not be compared against an angular tolerance) and on p. 459 (comparing angles means converting them to distances first) follow the same reasoning as section three, without the differential geometry. The book never uses the phrase “first fundamental form”, and its remedies for degeneracy are topological rather than metric.

H. Borouchaki, P. Laug and P. L. George, “Parametric surface meshing using a combined advancing-front generalized Delaunay approach”, International Journal for Numerical Methods in Engineering 49 (2000), 233–259. Read directly. The published treatment of section seven: the surface’s metric is induced into the parameter domain, meshing then happens entirely in two dimensions against that metric, and the anisotropy is treated as information rather than as a problem.

F.-E. Wolter and S. T. Tuohy, “Curvature computations for degenerate surface patches”, Computer Aided Geometric Design 9 (1992), 241–270. Read directly. The source for the statement in section five that the classical formulas are undefined, and not only inaccurate, at a degeneracy: the computation requires dividing by the determinant of the first fundamental form, and that determinant is zero there.

D. Jackson, “Boundary representation modelling with local tolerances”, Proceedings of the Third Symposium on Solid Modeling and Applications, 1995, pp. 247–254. Read directly, and cited here for what it does not contain. It is the canonical published account of tolerant modelling: its tolerant edges are represented by curves in the parameter spaces of the adjacent faces, and the tolerance attached to them is a radius in millimetres around a tube in space. The paper draws no distinction between parametric and model-space tolerance anywhere, and does not discuss poles, seams or periodicity. That such a careful treatment skips the question says something about how the problem has usually been handled.

R. T. Farouki and T. Sakkalis, “Real rational curves are not ‘unit speed’”, Computer Aided Geometric Design 8 (1991), 151–157. Not consulted directly. Cited for the claim in section nine that arc-length parametrisation of the curves a kernel stores is impossible, and not only unavailable; the bibliographic record was verified but the text was not read, and the claim should be treated as secondhand until it is.

Method

The first fundamental form of each of the five surfaces was computed twice, once from the closed form printed in the table and once from a production kernel’s own first derivatives, at forty pseudo-random parameter pairs per surface, in a skewed placement. The two agree to 6 × 10−14 at worst. The claim that F is zero for all five is the measured maximum over those two hundred samples, 2 × 10−15. The pole table in section five is evaluated from the same closed forms, and the factor of 5,700 is the ratio of its last row to its first.

The claims about what kernels do (the per-direction conversion, the arc-length rescale before triangulation, disabling the parametric comparison at a pole, checking the two representations of an edge in three dimensions) were each read in the source of a production kernel rather than recalled. They are stated here without attribution because this series is about the problem rather than any one implementation of it.

Revision history

. Part numbers renumbered for the new part two, The Mathematics a Kernel Stands On.