Menger Sponge

Build a cube from 27 little cubes, three across, three high and three deep. Remove the middle cube from each face and the cube hidden at the center, and the seven gaps join into three square tunnels that meet inside. Twenty cubes remain, so make the same three tunnels in each of those, and keep repeating.

Every round removes seven out of every twenty-seven cubes, so if you keep going forever the volume approaches zero. Any drawing we stop at still contains solid cubes.

Menger sponge after the first cube-removal step
One removal step opens the large tunnels.
Menger sponge with smaller tunnels in its walls
The next step removes seven smaller cubes inside each remaining cube.

The tunnels run straight through, so from directly in front the holes line up through the depth of the sponge and give the same pattern as the Sierpinski carpet. A flat slice through the middle, facing one corner of the sponge, looks nothing like that. Its outline has six sides, and inside it the square tunnels make a six-pointed star.1

The figure below hides the front part of the sponge, and the amber faces show where the sponge meets the slice. Each tunnel crosses the tilted slice at an angle, and the star is where the three openings overlap, so highlight a tunnel to see its opening in teal. Moving the slice away from the center makes it meet different parts of the tunnels, which changes the shape of the hole. At round 0 there are no tunnels, so the centered slice is a solid six-sided shape.

A slice through square tunnels
Sponge and slice
The same slice, seen flat
Highlight a tunnel

Choose Shadow to swap the flat view for the shadow from straight in front. That shadow includes cubes at every depth, so moving the slice doesn't change it.

Further exploring

Videos

Reading

Sources and notes

  1. Mathematical Impressions: The Surprising Menger Sponge Slice.