POV-Ray : Newsgroups : povray.binaries.images : Sierpinski Pyramid : Sierpinski Pyramid Server Time
7 Aug 2024 03:20:38 EDT (-0400)
  Sierpinski Pyramid  
From: DJ Wiza
Date: 22 Jun 2006 07:40:34
Message: <449a81b2@news.povray.org>
I was bored, and the recursive torii post got me thinking of recursion, 
so I made a simple macro that draws the Sierpinski Pyramid.  Before I 
made this, I didn't know POV-Ray allowed macros to call themselves. 
This particular image is built from 78,125 pyramids, each made using 6 
triangles, for a total of 468,750 triangles, all wrapped up in a single 
mesh with some radiosity, sky_sphere, and a plane tacked on.

(NOTE: I did some searching around...some places show the Sierpinski 
Pyramid as having 3 sides on the base, others with 4.  4 was easier to 
implement, so I used that.)

-DJ


Post a reply to this message


Attachments:
Download 'sierpinksi.png' (239 KB)

Preview of image 'sierpinksi.png'
sierpinksi.png


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.