The above picture was generated by povray using the sierpyr program with DEPTH = 3 and RADIUS = 0.01.
A while ago, can't quite remember when, I was interested in fractals and decided to expand the sierpinsky gasket into 3 dimensions. The first attempt, which the above picture comes from, was a C program that generated povray code. Since then it's been ported to a few other formats, some of which might show up here.
DEPTH determines how many levels of recursion to do. 1 is just the outside pyramid, 2 has 4 sub pyramids, etc. RADIUS determines the radius of the cylinders that draw the fractal. The include file defines the object SierPyr.
RADIUS = 0.01)