Techniqueintro
Curvature comb
Also called porcupine plot, curvature plot.
Draws the curvature of a curve as spikes along its normal, so inflections, curvature jumps and unfair regions show at a glance.
A curvature comb is a drawing of a plane curve with a short segment, a tooth, at each of many sample points, perpendicular to the curve and with length proportional to the curvature there. The free ends of the teeth form a second curve, and its shape shows how the curvature varies: where it changes sign, where it jumps, and where it wobbles. The comb is a diagnostic, not an algorithm. It shows the curvature function of a curve to a designer, who reads it to judge whether the curve is fair.
In plain words
Drive along a road and watch the steering wheel. On a straight part it is centered, in a long bend it is turned and held, and at an S-bend it swings from one side to the other. A curvature comb draws this. At many points along the curve it puts a little spike, sideways, as long as the steering wheel is turned. A gentle bend gets short spikes, a tight bend long ones, and a straight part none. The spikes switch sides where the curve switches from turning left to turning right. If you join the tips of the spikes, a well shaped curve gives a smooth, calm outline. A sudden step in that outline means the steering wheel jumped, which a driver or a machine tool would feel.
When it applies
- The input is a plane curve with at least two continuous derivatives on each piece: a Bézier curve, a B-spline or a NURBS curve, a curve of a sketch, or a section of a surface.
- The question is about smoothness and fairness: is a join , where are the inflections, and does the curvature vary in a few monotone pieces?
- For a surface, combs are drawn on chosen curves of it, such as isoparametric curves or plane sections. For whole surfaces, isophotes and reflection lines do the same job.
The template
Let be a regular plane curve. Use the unit tangent , the left unit normal , and the signed curvature
which is positive where the curve turns to the left, toward . The center of curvature is . Choose a scale .
- Sample parameters , densely enough that consecutive tips are close, and preferably equally spaced in arc length.
- At each , compute and , and draw the tooth from to the tip .
- Join the tips in order by a polyline, the tip curve.
With the minus sign, each tooth points away from the center of curvature, to the convex side of the curve. Some systems draw the teeth to the concave side; the picture is then mirrored, and the readings below do not change. A tooth has length . The scale is chosen so that the longest tooth is a fixed fraction of the size of the drawing.
What the tip curve shows. Parametrize by arc length, so that the Frenet formulas are and (see Frenet frame). The tip curve is , and
- If the curve is , then and are continuous, so is continuous. If it is but the curvature jumps from to , the tip jumps by along .
- Since , the tip curve is always regular, and its direction makes the angle with , measured toward . So if jumps, as at a join that is not , the tip curve has a corner.
- At an inflection, changes sign, the teeth change sides, and the tip curve crosses the curve.
- A fair curve has a tip curve with few wiggles, because its curvature has few monotone pieces (Farin and Sapidis 1989).
Classic examples
Worked example: a cubic Bézier curve with an inflection
Take the cubic Bézier curve with control points , , , , and the scale . Then and , so is constant and
| tip | |||||
|---|---|---|---|---|---|
The comb reads as follows. On the first half the curve turns right (), and the teeth stand above it, on its convex side. At the tooth has length zero: this is the only inflection, since has its only zero there. On the second half the teeth stand below. The curve is symmetric about the point , and so is the comb. The longest teeth are at and , where and the tooth length is about . The tip curve is continuous and smooth, as it must be for a polynomial curve.
A line joined to a circular arc
Join the segment from to to the quarter circle of radius with center , from to . The join is : both pieces have the tangent at . The curvature is on the segment and on the arc. With the teeth on the segment have length , so the tip curve is the segment itself, and the teeth on the arc have length and point away from the center, so the tip curve is the circle of radius about . At the join the tip curve jumps from to . This step is the reason road and rail designers put a transition curve with linearly growing curvature between a straight and an arc.
Variations
- Curvature graph. Plot against arc length in a separate chart. It shows the same data, without the geometry of the curve.
- Radius of curvature comb. Teeth of length toward the center of curvature, so that the tips trace the evolute. It is unbounded near inflections and is used less.
- Space curves. Teeth along the principal normal with length , . There are no signed inflections, so a second comb of the torsion is sometimes added.
- Surfaces. Combs on a net of isoparametric curves or of plane sections give a coarse picture of the surface curvature.
Pitfalls
- Scale. With a scale that is too small, real jumps are invisible. With one that is too large, the tip curve crosses itself and is hard to read.
- Sampling. The comb shows only the samples. A curvature spike between two samples, for example near a short knot interval of a B-spline, can be missed. Equal steps in the parameter put few teeth where the curve moves fast.
- Points with zero speed. Where , for example when two end control points coincide, the formula for divides by zero, and the curve can have a cusp there.
- Tessellated curves. A comb computed from a polyline, by fitting circles through consecutive vertices, shows noise of the tessellation and not the curvature of the design curve.
- Parametric smoothness. A comb shows geometric smoothness. A curve can be in its parameter and still have a corner where its speed is zero, for example at , and a curve can be without being .
Exercises
- Draw the comb of a circle of radius traversed counterclockwise. Show that the tip curve is the circle of radius with the same center.
- For the parabola , show that , and find the tip of the tooth at for . (Answer: .)
- Show that a join of two curves gives a continuous tip curve, and that the tip curve of the line and arc example jumps by .
- Show that the tip curve of a curve parametrized by arc length is regular for every .
References
- Nicholas M. Patrikalakis and Takashi Maekawa, Shape Interrogation for Computer Aided Design and Manufacturing, Springer, 2002, Chapter 8, Curve and Surface Interrogation (interrogation of curves by curvature plots)
- Farin and Sapidis 1989, curvature plots as a test of the fairness of curves, and fair curves as curves whose curvature plot has few monotone pieces
- Manfredo P. do Carmo, Differential Geometry of Curves and Surfaces, Prentice-Hall, 1976, Section 1-5 (signed curvature of plane curves and the Frenet formulas)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag F7AXBD Edit this page History Report an error Markdown