Logo by Trifox - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Follow us on Twitter
 
*
Welcome, Guest. Please login or register. July 05, 2022, 08:41:35 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!



 
  Search  

  Slideshow  
BuriedSierpinski-Menger CubeSun Tapestry II
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
BB Code
Direct Link
Html Link
0 Members and 1 Guest are viewing this picture.
  Slideshow  

Comments (1) rss
paragon5
Forums Freshman
**
Posts: 13


View Profile
May 13, 2011, 02:46:24 AM
Very cool sponge room! I really like the perspective.

Return to Gallery

Powered by SMF Gallery Pro

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.172 seconds with 32 queries. (Pretty URLs adds 0.004s, 1q)