The Menger Sponge

​
variation
1
2
3
4
level
1
2
3
opacity
ho2[3,1]
Start with a cube, divide it like a Rubik's cube into 27 smaller cubes and remove each central cube to leave 20. Recursively apply this procedure to each of the remaining cubes and you will have successive levels of Menger's sponge, a recursive 3D shape generalizing the Sierpinski carpet—in fact each face of the Menger sponge is a Sierpinski carpet. This Demonstration provides four variations on this idea, starting with the Sierpinski carpet.

External Links

Sierpinski–Menger Sponge Code and Graphic (Wolfram Library Archive)
Menger Sponge (Wolfram MathWorld)

Permanent Citation

Jaime Rangel-Mondragon
​
​"The Menger Sponge"​
​http://demonstrations.wolfram.com/TheMengerSponge/​
​Wolfram Demonstrations Project​
​Published: January 1, 1999