The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!
|
|
Sierpinski-Menger Cube | ||||||
Previous Image | Next Image | ||||||
Description: Some variation of algorithm proposed by twinbee and modified by Buddhi. http://www.fractalforums.com/3d-fractal-generation/revenge-of-the-half-eaten-menger-sponge/msg8920/#msg8920 Code: ax = Math.Abs(x); ay = Math.Abs(y); az = Math.Abs(z); k = 1; i = 0; while (i < iterations) { x = (ax * k) % 2 - 1; y = (ay * k) % 2 - 1; z = (az * k) % 2 - 1; if (x * x * x * x + y * y * y * y + z * z * z * z < 1.01) return 0; k *= 3; i++; } return 1; Stats: Total Favorities: 0 View Who Favorited Filesize: 476.54kB Height: 750 Width: 1200 Discussion Topic: View Topic Keywords: sierpinski menger cube Posted by: Guest May 12, 2011, 08:33:57 PM Rating: Has not been rated yet. Image Linking Codes
|
||||||
0 Members and 1 Guest are viewing this picture. |
|
Comments (1) | |
paragon5 | May 13, 2011, 02:46:24 AM Very cool sponge room! I really like the perspective. |
Powered by SMF Gallery Pro