Sierpinski 4-Pyramid in Openscad. Cusomizable
Nice, compact, efficient, recursive script generates the model
Selectable level of subdivision.
See how it is done.
The author marked this model as their own original creation.