Sierpinski Sponge

The Sierpinski sponge is a 3-dimensional fractal figure. It is obtained by dividing a cube into 27 smaller cubelets and removing the six cubelets in the center of the faces and the one in the middle. If this process was to be repeated indefinitely, than a Sierpinski sponge with zero volume and unbounded surface area would be obtained. Below you see the first three stages of this process.
Click and drag to rotate.

Java Source

C++ Source