Welcome to a simulation of one of my favorite fractals: ~~~~~THE MENGER SPONGE~~~~~ The controls are explained in the project. ______________________________________________________ LINKS FOR MORE INFO: What Wolfram|Alpha has to say about the Menger Sponge: http://www.wolframalpha.com/input/?i=Menger+sponge Wikipedia: (has a nice "formal definition") :D http://en.wikipedia.org/wiki/Menger_sponge
HOW THIS WORKS: I defined a block to draw a menger sponge of iteration A centered at (X, Y, Z). The block uses recursion. It draws menger sponges of iteration A-1 in the places needed to create the fractal. In a way, this project draws the fractal using its own definition. :D The program can create any iteration of the fractal, but when you put too many iterations it lags a ton, so I blocked any renderings of iterations which are too high.