As the Sierpinski carpet is a generalization of the Cantor set from one dimension into two dimension, the Menger sponge is a generalization of the Sierpinski carpet into three dimensions. Sometimes this three-dimensional fractal called Menger-Sierpinski sponge or Sierpinski sponge. It was first described by Austrian mathematician Karl Menger in 1926.
Like the Sierpinski carpet begins from square, Menger sponge begins from cube. Every face of the cube is divided into 9 smaller squares. This operation divide the cube into 27 smaller cubes. Then center cubes from all faces and the inner center cube are removed, leaving 20. This is a level 1 Menger Sponge. The next levels forms by repeating these steps to all 20 cubes rest. Below you can see first four levels.
Below you can see the Menger sponge with cut off corner, which was designed by Seb Przd.