I was trying to build #Multiboard tile panel stacks using an STL generator in #OpenSCAD, but the sheer number of triangles ๐ caused it to shit the bed on stacks of 9x9 tiles unless a metric tonne of additional `render()` calls were added, slowing the process to an excruciating crawl ๐. In my journey down this particular rabbit hole ๐, I stumbled upon `numpy-stl`, which has absolutely no problem dealing with massively complex objects... and I have an STL file for a 9x9 panel...
So, naturally, I whipped up a little #Python ๐ script! It clones and lifts a provided mesh with a specified gap between each clone. I'm currently testing the results by printing a 9x9 stack of 2 panels. (I really should have gone smaller, but I will actually *use* a 9x9.) We'll see how it goes!๐คEither way, I can easily say that I am *much* more comfortable working with a Python script than OpenSCAD, but I see the power and the appeal. In this case, however, it was a simple task that doesn't warrant the learning curve just yet.
Here's the script: https://gist.github.com/haliphax/e63eb8efba86406862fc71d06a11cda1
Here's the panel I used as the base mesh:
https://thangs.com/designer/MultiBuild/3d-model/9x9%2520MU%2520-%2520Center%2520Grid%2520Interfitted%2520-%2520MultiBoard%2520Octagon%2520Plate-977730
(Yes, they provide stacks up to 4 for 9x9, but I was thoroughly nerd-sniped and I *may* want to print more than 4 eventually without paying their $4/month membership fee.)







