Continuing the development of the Menger sponge models, and encouraged by mathgrrl, this OpenSCAD script combines the cut and external support options and adds the ability to change the size and choose the order/level up to 3.
Feb 6 update - added two more capabilities to the script:
- a combination of cut and supported, to print a half-cube with the cut side facing up for folks with difficulty removing the finished object from their printbeds,
- an option for an order zero cube - just a plain cube, no holes - so you can make a set showing the progression from cube to fractal.
The OpenSCAD script has the ability to generate Menger sponges of order/level 0, 1, 2 or 3 and to cut the model on the long diagonal or provide support structure so it can be printed standing on a corner without any internal support, or do both. The supports can be broken off easily after printing.
Please note that although the scale isn't limited in Customizer, the support structure is only tested at relatively small sizes and may not work as well with really large prints; if nothing else it will certainly use too much plastic.
It's also likely that OpenSCAD will produce models with some issues; I have found that order 2 and above need to be cleaned up before slicing. The posted STLs have been processed through Netfabb Cloud and should slice correctly.