Light and mirrors

A hole is not preserved

The shadow of a connected object is connected — always, at every lamp position, and for a reason with no geometry in it. A hole survives in neither direction: a ring's shadow closes up at a computable tilt, and an object with no hole in it casts a shadow that has one.

Worth reading first: A shadow is a second projection · The edge of a shadow is drawn on the object.

A shadow is a picture of a thing, and it is fair to ask what it keeps. Length goes, angle goes, area goes, straightness survives — those are settled by the fact that a shadow on a flat floor is a projection, and the foundations field has said what a projection does to each of them.

There is a coarser set of properties that a projection also acts on, and it is not usually asked about: how many pieces the shadow is in, and how many holes it has. They are the crudest facts about a shape and they are exactly the ones a person reads off a shadow at a glance.

One of them survives and one does not.

A ring tipped 0°, lit from straight aboveThe shadow is computed cell by cell — a patch of floor is dark when the line from it to the light meets the ring — so the count of holes is a measurement. The hole survives at 0° of tilt; the closed form puts the transition at 71.34°, where the ring's own opening, foreshortened to R·cos θ, drops below the tube's radius.1 holetilt 0°closes at 71.3°
Fig. 1 The ring lying flat. Its shadow is an annulus: one piece with one hole, and every cell of it decided by a ray test rather than by an outline.

Connectedness survives, and the proof is a sentence

The shadow of a connected caster is connected. Always. There is no lamp position, no floor, no shape and no arrangement that breaks one object’s shadow into two.

The reason has nothing to do with light. The shadow is the image of the caster under the map that sends a point to where the lamp’s ray through it meets the floor, and that map is continuous on the region where it is defined. The continuous image of a connected set is connected. That is the whole argument.

It survives every complication one might try to introduce. A caster with a hole in it, a caster that is nearly two objects joined by a thread, a lamp almost inside the caster, a caster half of whose shadow runs off to the horizon: all still one piece, because none of them breaks the continuity.

So the count of pieces in a shadow is a lower bound on the count of pieces of the caster, and nothing more. Two shadows means at least two objects; one shadow means nothing at all.

A box and its shadow, both projections from a pointThe rays from the lamp to the corners are the same construction as the rays from the eye to the corners — one operation, two centres.correct from 26 cm, at 160 mm wide34° across
Fig. 2 What the ray test is testing. A shadow is a projection from the lamp, and the map from caster to floor is continuous wherever it is defined — which is the whole of the connectedness argument.

And a hole does not

A ring lying flat, lit from above, casts an annulus. Tip it and the hole shrinks. Tip it far enough and the hole is gone, and what is left is a solid dark patch the shape of a squashed washer.

A ring tipped 40°, lit from straight aboveThe shadow is computed cell by cell — a patch of floor is dark when the line from it to the light meets the ring — so the count of holes is a measurement. The hole survives at 40° of tilt; the closed form puts the transition at 71.34°, where the ring's own opening, foreshortened to R·cos θ, drops below the tube's radius.1 holetilt 40°closes at 71.3°
Fig. 3 A ring tipped forty degrees, lit from straight above. Every cell of the floor has been tested against the ray to the light rather than filled inside an outline, so the count of holes is a measurement.
A ring tipped 80°, lit from straight aboveThe shadow is computed cell by cell — a patch of floor is dark when the line from it to the light meets the ring — so the count of holes is a measurement. The hole has closed at 80° of tilt; the closed form puts the transition at 71.34°, where the ring's own opening, foreshortened to R·cos θ, drops below the tube's radius.no holetilt 80°closes at 71.3°
Fig. 4 The same ring at eighty degrees. The tube’s own shadow has overlapped itself across the middle and the hole is gone; the shadow is still one piece.

The transition has a closed form and it is short.

Project the tube’s core circle along the direction of the light. It is a circle of radius R seen obliquely, so its image is an ellipse with semi-axes R and R·cos θ, where θ is the angle between the light and the ring’s axis. A line along the light clears the tube exactly while its distance from that ellipse exceeds the tube’s radius r, and the largest clear disc that fits inside an ellipse is centred and has the semi-minor axis for its radius. So the hole survives while

Rcosθ>rR\cos\theta > r

and closes at θ = arccos(r/R), which for the ring in the figures — half a metre across the core, sixteen centimetres of tube — is 71.34°.

Getting that wrong is instructive. The first version used Rr rather than R, on the reasoning that the opening starts at the tube’s inner edge. That is the right picture face-on and the wrong one at every other angle: the quantity that shrinks with the obliquity is the distance from the core circle, and the tube’s thickness enters as a constant rather than as part of what is foreshortened. The wrong version put the transition at 61.9° and the measurement said 71.

A ring tipped 60°, lit from straight aboveThe shadow is computed cell by cell — a patch of floor is dark when the line from it to the light meets the ring — so the count of holes is a measurement. The hole survives at 60° of tilt; the closed form puts the transition at 71.34°, where the ring's own opening, foreshortened to R·cos θ, drops below the tube's radius.1 holetilt 60°closes at 71.3°
Fig. 5 Sixty degrees of tilt. The opening has narrowed into a slot and is still open; the closed form puts its disappearance eleven degrees further on.
Two lamps, two shadows, one darker regionEach lamp casts its own shadow, and each is an exact record of the same object under a different projection. Where the two overlap no light arrives from either — the region a reader reads as "the" shadow, and it is the intersection of two shapes rather than a shape in its own right. The ratio between them is 1.2509, and it is the only thing separating one from the other.correct from 19 cm, at 160 mm widetwo lamps · one homothety, ratio 1.2509
Fig. 6 Two lamps and one caster. A second light is a second centre of projection, and a pair of shadows decides things neither of them can — which is where this essay ends.

The lamp cannot close it — only the tilt can

The first attempt at this measurement asked the wrong question, and the wrong question is the one most people would ask: how high does the lamp have to be before the hole in a flat ring’s shadow closes?

It never does.

A flat ring lit from anywhere above it casts a shadow with a hole, at every lamp height, at every horizontal offset, and at every distance. The bisection that went looking for the transition reported that the hole was present at both ends of every bracket it was given, which is a function politely saying the question has no answer.

The reason is one line and it is worth having, because it is the sort of thing an intuition about “steep light” gets backwards. The segment from a lamp above the ring’s plane to any point of the floor crosses that plane exactly once, somewhere. As the floor point ranges over the whole floor, the crossing point ranges over the whole plane — including the disc inside the ring’s inner edge. So there are always floor points whose ray goes through the hole, and the hole in the shadow is exactly the set of them.

What that argument uses is that the ring’s own plane is being crossed transversally by every ray. Tip the ring and the argument still holds for the plane — but the tube is no longer a thin annulus in the plane the rays are crossing, it is a foreshortened one, and the clear opening in it is what shrinks. So the closing is a fact about the obliquity of the light to the ring, and a lamp’s height only matters through the angle it makes with the ring’s axis.

Which means the tilt in the figures could equally have been a lamp moved sideways, and the figures use a sun straight down and a tipped ring because that makes the obliquity exactly the tilt rather than approximately it. A lamp at a finite distance sees different parts of a large ring at different obliquities, and the transition then happens raggedly, one part of the opening at a time.

A ring tipped 20°, lit from straight aboveThe shadow is computed cell by cell — a patch of floor is dark when the line from it to the light meets the ring — so the count of holes is a measurement. The hole survives at 20° of tilt; the closed form puts the transition at 71.34°, where the ring's own opening, foreshortened to R·cos θ, drops below the tube's radius.1 holetilt 20°closes at 71.3°
Fig. 7 Twenty degrees. Nothing is near a decision here, which is why the count is stable at every grid size and the area is stable to a fraction of a per cent.

Measuring a count is not like measuring a length

The measurement is where this essay turned into a gate.

The shadow region is computed cell by cell: a patch of floor is dark when the segment from it to the light meets the ring. That is the definition, and it has to be the definition rather than an outline, because an outline presumes the shadow is the inside of one closed curve and half the point here is that it need not be.

Then the holes are counted by flood-filling the complement and keeping the components that do not touch the edge of the sampled patch. Which is correct, and which reported seven holes at forty degrees of tilt on a grid four hundred cells across, where the true answer is one.

The six extra were single cells. A ray that grazes the tube can take a long time to resolve — the marching gets closer and closer to the surface without crossing it — and a handful of cells ran out of steps and were reported as lit. A flood fill calls an isolated lit cell inside a dark region a hole, and it is right to; the count was correct arithmetic on the wrong region.

Two things fixed it and both are worth stating, because neither is a tolerance in the geometry.

A grazing ray is counted as a hit once it is within a hundredth of a millimetre of the surface. That converts an unresolvable case into a decision, and the decision is the one a physical ray would make.

A hole has to be bigger than a stated number of cells to count as a hole. Otherwise the answer is a fact about the sampler, and the way that shows up is unmistakable once looked for: the count was stable at a coarse grid, wrong at a fine one, and wronger at a finer one — the opposite of what a converging measurement does.

The threshold is a limit of the samplingThe tilt at which the hole disappears, bisected on a grid of each size, against the closed form acos(rr/Rr) = 71.337°. Every measurement is below it, because a hole a fraction of a cell across is not a hole to a flood fill — and the sequence walks up to the answer rather than scattering around it.70.270.470.670.871100200300cells across the sampled patchtilt at which the hole is lost (degrees)acos(rr/Rr) = 71.34°approached from belowa hole must exceed a cell
Fig. 8 The tilt at which the hole is lost, bisected on grids of five sizes, against the closed form. Every measurement is below it, and the sequence walks up to the answer rather than scattering about it.

The ladder in the figure is what makes the threshold honest. The measured transition rises with the grid — 70.6°, 70.8°, 71.0° — and approaches 71.34° from below, which is the only direction the sampling can err in, because a hole a fraction of a cell across is invisible to any grid and no grid can invent one. If the threshold were doing the work, the ladder would flatten somewhere short of the closed form or wander. It does neither.

A ring tipped 70°, lit from straight aboveThe shadow is computed cell by cell — a patch of floor is dark when the line from it to the light meets the ring — so the count of holes is a measurement. The hole survives at 70° of tilt; the closed form puts the transition at 71.34°, where the ring's own opening, foreshortened to R·cos θ, drops below the tube's radius.1 holetilt 70°closes at 71.3°
Fig. 9 Seventy degrees, a degree and a third short of the transition. The remaining opening is a slot about a centimetre and a half across.
A ring tipped 71°, lit from straight aboveThe shadow is computed cell by cell — a patch of floor is dark when the line from it to the light meets the ring — so the count of holes is a measurement. The hole has closed at 71° of tilt; the closed form puts the transition at 71.34°, where the ring's own opening, foreshortened to R·cos θ, drops below the tube's radius.no holetilt 71°closes at 71.3°
Fig. 10 Seventy-one degrees. The slot is a few millimetres wide and a grid of a few hundred cells has already lost it, which is why the measured transition sits below the closed form.

How the hole goes, on the way

The transition is a threshold in the count and not in anything else, and watching the area of the hole approach it is the more informative picture.

The clear opening’s two semi-axes are R·cos θ − r and Rr, so the hole’s area falls linearly in cos θ near the transition and reaches zero at a definite angle rather than tapering. There is no long tail: a degree short of the closing the opening is a slot about a centimetre and a half across, and five degrees short it is about eight centimetres.

The grid in the figures is fine enough to resolve the first of those and not much finer, which is exactly why the measured transition lands a third of a degree below the closed form rather than on it. The sampling loses the hole when the hole is a few cells wide, and a few cells is a few millimetres.

A reader watching a real ring being tipped therefore sees the hole narrow into a slot, hold as a visible line for a degree or two, and go. What they do not see is a slow fade, and that is worth saying because the arithmetic of a threshold and the arithmetic of a limit look the same on a plot until the axis is chosen. Plotted against the tilt the curve looks like a fade; plotted against cos θ it is a straight line running into the axis.

What the receiving surface costs a four-point fitThe same lamp and the same occluder, cast onto four surfaces. Four marks of the shadow are matched to four known points of the occluder, the map they determine exactly is built, and the other sixty-eight points are predicted by it. On the plane the prediction is right to 3e-13 mm; on the others it is not, and the fit is still exact at the four everywhere — 2e-13 mm — which is what makes the rest a prediction rather than a residual.a flat floor3e-13 mma homology — four points determine ita dished floor5.67 mmnot a homologya ridged floor9.07 mmnot a homologya floor with a step74.95 mmnot a homologyworst error of the predicted pointsexact at the four fitted, on every surface
Fig. 11 What the collection had before this: shadows on receivers of stated shape, measured on whether the map from caster to receiver is still a homology. Every one of them is a question about a boundary curve rather than about a region.

And a caster with no hole at all

The other direction is the surprise.

Take a helical ramp of a turn and a quarter — a solid tube swept along a rising spiral, its top end above its bottom end and the two not joined. There is nothing to put a finger through. It is a thickened arc, which is topologically a ball, and it has no hole in any sense.

Its shadow has one.

A solid with no hole, and the hole in its shadowA helical ramp of a turn and a quarter. It does not close, so there is nothing to put a finger through — and its shadow has a hole of 0.489 m² in it, because the two ends of the ramp overlap in the projection and the gap between them does not. A hole in a shadow is not a hole in the thing.one piece, one hole, 0.49 m²correct from 19 cm, at 160 mm widelamp 9 m up
Fig. 12 A helical ramp and its shadow, computed by the same ray test. The solid has no hole in it; its shadow has one of about half a square metre.

The reason is easy once seen. The ramp’s shadow is the union of the shadows of all its points, and the two ends of the ramp — a full turn apart — cast onto overlapping parts of the floor. Their shadows meet and join up, and the region between them, which no part of the ramp is above, is enclosed. A projection can glue two ends of an arc together, and the moment it does, the arc’s shadow is a loop.

So the count of holes in a shadow bounds the caster’s holes in neither direction. A shadow with a hole may come from a solid with none. A shadow with no hole may come from a ring.

A ring tipped 86°, lit from straight aboveThe shadow is computed cell by cell — a patch of floor is dark when the line from it to the light meets the ring — so the count of holes is a measurement. The hole has closed at 86° of tilt; the closed form puts the transition at 71.34°, where the ring's own opening, foreshortened to R·cos θ, drops below the tube's radius.no holetilt 86°closes at 71.3°
Fig. 13 Nearly edge-on. The shadow is a narrow band, still one piece, with no hole at any grid resolution.
A ring tipped 76°, lit from straight aboveThe shadow is computed cell by cell — a patch of floor is dark when the line from it to the light meets the ring — so the count of holes is a measurement. The hole has closed at 76° of tilt; the closed form puts the transition at 71.34°, where the ring's own opening, foreshortened to R·cos θ, drops below the tube's radius.no holetilt 76°closes at 71.3°
Fig. 14 Past the transition. The tube’s shadow has closed across the middle and what remains is a solid patch shaped like a squashed washer.

The quantity that behaves itself

Beside the count, the same computation gives an area, and the contrast is worth drawing because it is the reason a count needed a gate and an area did not.

The shadow’s area is a sum over cells, and a cell that is resolved wrongly contributes one cell’s worth of error to a total of thousands. Refine the grid and the errors get smaller and more numerous in exactly the proportion that keeps the total converging; the area at a hundred and forty cells across and at three hundred and eighty agree to well under a per cent, and neither is anywhere near a decision.

The count is not a sum. It is a decision about connectivity, and a single wrongly resolved cell changes it by a whole unit. There is no averaging, no cancellation and no smallness: the error is one hole, and one hole is the entire quantity.

That is the distinction the collection’s convergence gate was built around, and it generalises past shadows. A quantity that is an integral over a sampled region is robust to the sampler in a way that a quantity that is a predicate over the same region is not, and a measurement of the second kind needs its ladder shown rather than assumed. Both were computed here from the same array of ones and zeros.

A solid with no hole, and the hole in its shadowA helical ramp of a turn and a quarter. It does not close, so there is nothing to put a finger through — and its shadow has a hole of 0.649 m² in it, because the two ends of the ramp overlap in the projection and the gap between them does not. A hole in a shadow is not a hole in the thing.one piece, one hole, 0.65 m²correct from 19 cm, at 160 mm widelamp 3 m up
Fig. 15 The ramp under a lower lamp. The shadow is larger and the hole is still there, because the overlap that creates it is a fact about the ramp’s turn rather than about the lamp’s height.
The outline, the shadow, and the outline againA point light is a centre of projection, so the map from the occluder's plane to the floor is a plane projectivity and has an inverse. Running each shadow point back through the lamp returns the outline to 4e-16 m — the recovered curve is drawn over the original and cannot be seen apart from it.the outline, its shadow, and the outline recovered from itcorrect from 20 cm, at 160 mm widerecovered to 4e-16 m
Fig. 16 A shadow inverted to the outline that cast it, for the case where the caster is a flat card at a known height. Nothing of the kind is available for a ring, because a ring’s shadow does not determine its shape.

What that leaves

Two properties, one of which is preserved and one of which is not, is a small yield from a whole class of question. It is worth being explicit about why the yield is small, because the reason is the same one that makes this field work at all.

A shadow is a projection, and a projection is a map that is continuous and generally not injective. Continuity is what preserves connectedness, and it is essentially the only topological property a non-injective continuous map preserves in the direction one wants. Holes are destroyed because points that were apart can be brought together; and they are created for exactly the same reason. Everything else in this vicinity — the number of boundary curves, the number of self-intersections of the outline, whether the dark region is simply connected — follows from the projection’s failure to be injective and can go either way.

There is one thing more that can be said, and it is the practical form:

A shadow’s topology is a joint fact about the object and the lamp, and the lamp’s contribution is not small. One ring gives an annulus or a disc depending on nothing but an angle.

The same ring, the same floor, the same light — one number changed, and the shape a person would describe from across the room has changed category. That is the shape of the claim the edge of a shadow is drawn on the object makes about the boundary curve and a wire with a corner in its shadow makes about a cusp, arriving a third time about the crudest property a shape has.

A solid with no hole, and the hole in its shadowA helical ramp of a turn and a quarter. It does not close, so there is nothing to put a finger through — and its shadow has a hole of 0.470 m² in it, because the two ends of the ramp overlap in the projection and the gap between them does not. A hole in a shadow is not a hole in the thing.one piece, one hole, 0.47 m²correct from 19 cm, at 160 mm widelamp 13 m up
Fig. 17 The ramp from almost directly above. The shadow is close to the plan of the ramp, and the hole is close to the plan of the space the spiral encloses.
A ring tipped 45°, lit from straight aboveThe shadow is computed cell by cell — a patch of floor is dark when the line from it to the light meets the ring — so the count of holes is a measurement. The hole survives at 45° of tilt; the closed form puts the transition at 71.34°, where the ring's own opening, foreshortened to R·cos θ, drops below the tube's radius.1 holetilt 45°closes at 71.3°
Fig. 18 Forty-five degrees, halfway to the transition, with the opening narrowed and unmistakably still there.

And what a reader can do with it

The negative results are the useful ones here, because they are the ones that stop an inference.

A photograph of a shadow with a hole in it does not license the conclusion that the object has a hole. A photograph of a shadow without one does not license the conclusion that it does not. What a photograph does license is: at least this many objects, and no more than this much extent. The rest needs a second lamp, a second view, or a walk round.

That last remark connects this to the twoviews field rather than to anything in this one, and the connection is real: a second lamp is a second centre of projection, and two shadows of one object from two lamps are exactly as informative about it as two photographs from two cameras. The ring lit twice, from two directions far enough apart, has a hole in one of its shadows and that settles it. Two lamps and one map works out what the pair of shadows is as a map; this is one thing the pair can decide that neither can.

What links here

Computed from the collection, not written here: the essays that point at this one.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A flat tag is an object no other essay names yet.

ConnectednessContour generatorDegeneracyForeshorteningnecessary, not sufficientOcclusionPoint lightSampling gridShadow projectionUmbra