This thing design features some Sierpinski pyramides that could be printed without any support structure. In each depth of the pyramide, there are 5 sub-pyramides while the central-upper one is supported by (a non-fractal) upside-down pyramide with the same size. Hence, it can easily be printed and the result will look very nice (see image), and real-world light-shade effects practically "hide" these supporting pyramides.
You may able to generate any version for this using the C code attached. See Instructions for further details.
One just has to print the designs without any kind of further tuning or so. First, this design has been printed without any kind of support base (see the file sierpinski_what_is_seen_on_thepic.stl). However, some printer drivers (such as CURA what we are using with UltiMaker) prints the individual smallest triangles on the base individually instead a fully filled square. Therefore, it was very hard to remove the object from the printer after the printout has been completed and smallest pyramides could likely break. Due to this side-effect, the generator program has been modified in order to add a support base with one unit of smallest-pyramide-height. This support can clearly be seen on the attached sierpinski??mm_d?.stl files.
Sierpinski pyramide is also a fancy thing to demonstrate STL format: facelets are purely triangles (with the exception of the base) and STL encodes triangles as well. With this design, a C code is shipped (see the *.zip file, with pre-compiled Linux and Windows binaries), with which you can create arbitrary Sierpinski pyramides. And one can teach how recursive algorithms work. See the command line option
./sierpinski --help (on Linux) or
sierpinski.exe --help (on Windows) for more instructions.
Please note that the Windows binary has only be compiled on a Linux machine using the 32-bit version of the MinGW cross-compiler. But it should work as well on Win* systems as well.
Also note that by default, this sierpinski.c code prints its output to the standard output -- that can be a lot since there are lots of pyramides and triangles. So redirect it to a file or use the
-o ... option.
What is your smallest size-to-2^depth ratio what your printer can print nicely? ;)