Logo by mauxuam - 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: Visit us on facebook
 
*
Welcome, Guest. Please login or register. April 24, 2024, 06:54:22 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!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Sierpinski triangle  (Read 8351 times)
0 Members and 1 Guest are viewing this topic.
Buddhi
Fractal Iambus
***
Posts: 895



WWW
« on: November 22, 2009, 09:28:43 PM »

Few days ago I found on Internet some pictures of Sierpinski Triangle and Sierpinski Temple (David Makin's pictures). It is very beautiful mathematical form. Unfortunately I didn't find any detailed algorithm. I decided to found proper algorithm by myself. I made lots of trials and before I understood how this kind of iterative algorithms works I get some interesting pictures. One of these is below.   


http://www.fractalforums.com/gallery/?sa=view;id=1088

Finally I found proper algorithm and rendered this "Sierpinski's Planet"


http://www.fractalforums.com/gallery/1/640_22_11_09_9_01_17.jpg

Bellow is my iteration algorithm in C
Code:
double k=2.0;
double a_off = 0;
double b_off = 0;
for (L = 0; L < N; L++)
{
  xx = fmod(a * k+a_off, 2.0);
  yy = fmod(b * k+b_off, 2.0);
  zz = fmod(c * k, 2.0);

  if ((zz>1.0)&&(xx<0.5 || xx>1.5 || yy<0.5 || yy>1.5))
  {
result = 0;
break;
  }
  k *= 2.0;
  result = 1;
  if(zz>1.0)
  {
     a_off = 1.0;
     b_off = 1.0;
  }
  else
  {
     a_off = 0;
     b_off = 0;
  }
}
Logged

Dinkydau
Fractal Senior
******
Posts: 1616



WWW
« Reply #1 on: November 25, 2009, 02:57:05 PM »

The second one is really cool!
Logged

Timeroot
Fractal Fertilizer
*****
Posts: 362


The pwnge.


WWW
« Reply #2 on: February 04, 2010, 07:11:37 AM »

It took me a while to realize these were square pyramids, not the regular sierpinksi pyramids. This means that, although there does seem to be a "floor" in this picture, the "floor" is dense, and it could extend onwards who-knows-how-far... a very simple, yet awe-inspiring image. Reminds me of the ancient Aztecs.  grin
Logged

Someday, man will understand primary theory; how every aspect of our universe has come about. Then we will describe all of physics, build a complete understanding of genetic engineering, catalog all planets, and find intelligent life. And then we'll just puzzle over fractals for eternity.
kram1032
Fractal Senior
******
Posts: 1863


« Reply #3 on: February 04, 2010, 11:44:44 AM »

due to them being cubes, you could actually build them... I wonder how stable they would be smiley
(Not using any glue between the cubes)
Logged
Timeroot
Fractal Fertilizer
*****
Posts: 362


The pwnge.


WWW
« Reply #4 on: February 04, 2010, 05:30:23 PM »

Yes, but you would have to build it upside down - note that many of the edges of the "floors" aren't supported by anything. By inverting it, we could get a buildable structure.... but it would tip over pretty easily. Would make an interesting problem for civil engineers, that's for sure!!!!
Logged

Someday, man will understand primary theory; how every aspect of our universe has come about. Then we will describe all of physics, build a complete understanding of genetic engineering, catalog all planets, and find intelligent life. And then we'll just puzzle over fractals for eternity.
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Sierpinski Triangle entry in Doritos Contest Other Artforms Nahee_Enterprises 6 6403 Last post February 02, 2010, 12:02:18 AM
by makc
Sierpinski Triangle 1.0 Adobe Photoshop Plugins richardrosenman 0 3346 Last post April 06, 2011, 02:33:37 AM
by richardrosenman
very simple sierpinski triangle in conways game of life General Discussion « 1 2 » cKleinhuis 16 17258 Last post January 21, 2015, 05:54:36 PM
by DarkBeam
Hand Drawn Sierpinski Triangle Images Showcase (Rate My Fractal) PieMan597 5 1784 Last post November 21, 2014, 11:36:41 AM
by PieMan597
Sierpinski triangle in 3D (crosseye) Apophysis 3d Hack Gallery F. Bernkastel 1 6985 Last post September 22, 2015, 10:09:52 AM
by Michael Scharrer

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.116 seconds with 24 queries. (Pretty URLs adds 0.006s, 2q)