Menger Sponge (Levels 0-4)
thingiverse
Your standard issue Menger sponges! Inspired by this video from standupmaths to see how easy it was to draw up. Attached are the resulting .STLs for a level 0 (no holes) through 4 (316 holes per face) sponge. Managed to piece together a level 5 sponge STL with Solidworks, which you can find here on GrabCAD. First upload and time on this site, hope this all works properly. How I Designed This Originally drew these in (and indeed the .STL uploads were exported from) Solidworks, but just for you guys figured out how to reproduce it in OpenSCAD as well, and am actually pretty impressed at how elegant the code ended up. As far as I've been able to test on my own computer OpenSCAD can't render higher than level 4 (F6 on the level 4 sponge took about 9 hours to finish rendering), but theoretically the function I built in should mathematically work for arbitrary recursion depths. Geometry actually gets large and complicated very quickly, what with all the holes in each direction crossing each other. As a result, the level 5 sponge that managed to create after hours of tinkering and export/reimporting and body combination in Solidworks results in a .STL with about 10 million triangles that is almost 500MB and too big to upload here. Apparently not a problem over at GrabCAD though. Printed on a Makerbot Replicator 2, but since they're in my school's maker space I didn't have a ton of liberty to tinker with settings or orientation or, pretty significantly, support structure. My level 4 print Solidworks put up a fight
With this file you will be able to print Menger Sponge (Levels 0-4) with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Menger Sponge (Levels 0-4).