Techniquecore
Reflection lines
Also called reflection line analysis, zebra stripes.
Shows the mirror image of a family of parallel light lines in a surface, so a designer sees breaks in tangent or curvature continuity as kinks, after Klass.
Reflection lines are the curves on a surface where a fixed eye sees the mirror images of a family of parallel straight light lines, as on the polished body of a car in a hall with rows of strip lights. Klass introduced them in 1980 as a way to inspect and correct car body surfaces. They are a diagnostic, not an algorithm: they show the normal field of the surface in a form that the eye judges well, and a designer reads them. Because a reflection line depends on the normal, it is one order less smooth than the surface, so a jump in curvature shows as a kink and a jump in the tangent plane shows as a break.
In plain words
Put a shiny object under a ceiling with long parallel strip lights and look at it. On a flat mirror the strips look like straight lines. On a smooth curved panel they bend, but they bend smoothly. Where two panels meet with a sudden change in how sharply they bend, the reflected strips turn a corner, and where the panels meet at an angle the strips break apart. The eye is very good at seeing such corners and breaks, even when the change is too small to see in the shape. A program imitates this: for each point of the surface it follows the line of sight, bounces it off the surface like light off a mirror, and records which strip it hits. Drawing the boundaries between strips gives the reflection lines.
When it applies
- The surface is given with its normals: a parametric patch, a set of patches, or a fine mesh with good normals.
- The question is about smoothness: are two patches tangent () or curvature continuous () along their common boundary, and are there small waves inside a patch?
- The answer is wanted as a picture for a person, at interactive speed, and not as a number. For a number, such as the size of a curvature jump, compute curvatures directly.
- The result depends on the eye position and on the light lines, so a check must use several set-ups. A defect can be invisible in one of them.
The template
This page uses the unit normal of a surface , and for this . Reflection lines do not depend on the sign of , because the mirror formula below is even in .
Set-up. An eye point . A light plane with unit normal . A unit direction in , and a unit vector in orthogonal to . The light lines are for a base point and the levels , .
The function. For a surface point with normal :
- The view direction is .
- The mirror direction is .
- If and , the reflected ray meets at , and . Otherwise sees no light line, and is undefined.
The reflection line of level is .
Drawing. Evaluate on a grid of each patch and extract the level curves of the levels with marching squares, or trace them with a predictor and corrector step. The zebra display instead colours each point by the parity of , which gives alternating light and dark stripes whose edges are the reflection lines. A renderer gets the same picture from an environment map with stripes.
Reading. Look at the lines where they cross patch boundaries. A smooth crossing means no visible defect for this set-up. A kink means a jump in curvature, and a break means a jump in the tangent plane. Then move the eye or turn the light lines and look again.
Continuity. is a smooth function of and where it is defined. So the isophote theorem carries over, with replaced by , and with the same proof: on a surface that is across a boundary, , the reflection lines are where . For , is continuous across the boundary, its tangential derivative along the boundary is the same on both sides, and a reflection line that crosses transversally () has a corner exactly when the one-sided cross derivatives differ. In a reparametrization that makes the union , the position terms of agree, so , which involves only the jump of the derivative of the normal. At a crease itself jumps.
Classic examples
A plane mirror gives straight lines
Let the surface be a plane and the mirror image of in it. A ray from to reflects into the ray from in the direction . So lies on the reflection line of a light line if and only if , and a point of are collinear, that is, if lies in the plane through and . The reflection line is the intersection of two planes, a straight line. A defect of a flat panel therefore shows as a bend in a straight line.
A curvature jump, seen from three directions
Take the surface near the origin, whose curvature in the direction jumps from to across . Put the eye at , the light plane at , and the point of interest at the origin, where on both sides, , and . Let be the one-sided gradients at the origin; the boundary direction is .
| light lines parallel to | what the picture shows at the origin | |||
|---|---|---|---|---|
| the axis | no kink: the jump is hidden | |||
| the axis | the line through the origin is tangent to the boundary | |||
| the diagonal | a kink of about |
The second row follows by hand. On to first order in , the left side has , and . The right side has , , , and . In the third row the level curves are orthogonal to the gradients, and the angle between and is . The surface and the eye are symmetric under on the left, which makes in the first row. One set-up is not enough.
Car body inspection
The original use, after Klass: a designer looks at reflection lines on a car body model, finds the places where they wiggle or kink, and changes control points there until the lines are smooth. The same check, as zebra stripes, is a standard display of surface modelers today.
Variations
- Isophotes. Lines of constant . They need only a light direction and do not depend on the eye; see isophote.
- Highlight lines. Points whose normal line meets a fixed straight light line. Like reflection lines they lose one order of continuity, and they do not depend on the eye.
- Zebra stripes and environment maps. The raster form of reflection lines, drawn by a renderer from a striped environment map, at the cost of the accuracy of the mesh normals.
- Light lines at infinity. As with fixed, , which depends only on and on the view direction .
- Fairing with reflection lines. Klass also used reflection lines to correct the irregularities that they show, by changing the surface until the lines have the wanted shape. Energy based fairing is the usual numerical alternative.
Pitfalls
- Hidden defects. The corner at a curvature jump has size proportional to , which is zero for some set-ups, as the first row of the table shows. Always look with at least two directions of the light lines.
- Lines along the boundary. Where a reflection line runs along a patch boundary (), there is no crossing to judge.
- Artifacts of the drawing. Marching squares on a coarse grid draws a polygon, and its corners are not defects of the surface. A zebra image of a coarse mesh shows kinks at the mesh edges, even for a surface, when the normals are interpolated linearly. Refine the grid or the mesh before reading a kink as a defect.
- Missing parts. Points whose reflected ray does not reach the light plane ( or ) have no reflection line. A blank region is not a defect.
- Wrong normals. A patch with a reversed normal does not change the lines, but a normal that is wrong in direction, for example a normal from a degenerate corner of a patch, gives false kinks.
Exercises
- Show that the mirror direction is a unit vector and that it does not change when is replaced by .
- For the plane , and the light plane with lines parallel to the axis, find the reflection line of level . (Answer: the line , , since and the plane through and the light line is .)
- Show that for the tangential derivatives of on the two sides of a boundary agree, and that the position terms of the cross derivatives cancel in .
- In the third row of the table, rotate the light lines by an angle in the plane . For which does the kink at the origin disappear? (Answer: only for lines parallel to the axis, the first row. From the table, the jump of across the boundary is , and the jump of is its dot product with , which is zero only for .)
References
- Klass 1980, the definition of reflection lines for an eye point and a family of parallel light lines, and their use to find and correct surface irregularities
- Nicholas M. Patrikalakis and Takashi Maekawa, Shape Interrogation for Computer Aided Design and Manufacturing, Springer, 2002, Chapter 8, Curve and Surface Interrogation (Section 8.1.2.3, reflection lines)
- Hans Hagen, Stefanie Hahmann and coauthors, Surface interrogation algorithms, IEEE Computer Graphics and Applications 12(5), 1992, reflection lines as an interrogation tool, and the statement that they lose one order of continuity with respect to the surface
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 4T694Y Edit this page History Report an error Markdown