|
|
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'
|
|