Generate your own protective cases for board game cardboard tokens with this OpenSCAD script
Many board games come with cheap cardboard tokens that after a short while begin to fray at the edges.
So I came up with this OpenSCAD script to generate custom protective cases for any regular shaped tokens.
Version 2.3.1 02-11-2024: Triangle and hexagon shapes were messed up. Hopefully this fixes it. Fixed logic of parts arrangement for hexagons.
The output is two parts, a smaller top part and a larger bottom part. Insert the token into the top, then push it all down into the bottom part. I suggest using a tiny drop of superglue to keep the parts together.
IMHO, clear PLA looks great with these cases.
But wait… OpenSCAD? What's that?! I mean… do I need to learn how to write code?
No, you don't! It's actually very simple, and you don't need to “speak SCAD” to build your very own token cases.
Please note that if you do not want to install OpenSCAD, this script is also available on Thingiverse at https://www.thingiverse.com/thing:4160162, and you can use the online customizer Thingiverse provides at https://www.thingiverse.com/apps/customizer/run?thing_id=4160162 to generate token cases. I haven't been impressed with the robustness of the TV platform, so their customizer may or may not work at any point in time…
Here's a step-by-step guide for using OpenSCAD to create your token cases.
Setting everything upIf you don't have OpenSCAD, it from https://openscad.org/ and install it following the standard installation procedure for your computer platform. the “Token Case Generator.scad” file from the Files section here and save it somewhere in a convenient place on your local computer.Making the modelLaunch OpenSCAD.Use File>Open File to load the file “Token Case Generator.scad” you ed earlier.You should see the Customizer on the right. If not, go to the Window menu and uncheck Hide Customizer.Select the appropriate Customizer options (see below). If needed, press F5 or go to the Design>Preview menu command after you've made changes, to update the image of the model.When you're happy with the results, press F6 or go to Design>Render to render the model. Rendering may take some time, so please be patient. Watch the progress bar at the bottom right of the window.Press F7 or go to File>Export to STL and save the model as an .stl file.The final act… slicing and printingLoad the .stl file into PrusaSlicer, slice, and print.
OpenSCAD customizer options
There are just a handful of input parameters to set:
Type Rectangle, Circle/Oval, Hexagon, Triangle.
W Token and L Token are the dimensions of the token.
For squares, L is ignored. For rectangles, W and L are the lengths of the sides.For circles, W is the diameter, L is ignored. For ovals, W and L are the lengths of the axes. For equilateral triangles and hexagons, W is the length of a side, L is ignored.
H Token is the height (or thickness) of the token.
Rim Width defines how wide the small rim is that holds the token in place. It can be adjusted in case the rim obscures important text on the token.
Inner Tolerance defines how much space there is between the token and the surrounding case and can be increased to make it easier to fit the token in, if needed. (Obviously, simply increasing the values wToken and lToken would have the same effect.)
The script doesn't do any serious range checking so if you enter stupid values, the script may blow up.
If you like what I'm doing… …consider buying me a coffee.