Skip to content

Instantly share code, notes, and snippets.

@joeskeen
Last active January 2, 2024 05:32
Show Gist options
  • Save joeskeen/83bcd734ba9a0a93e7892e21c259d322 to your computer and use it in GitHub Desktop.
Save joeskeen/83bcd734ba9a0a93e7892e21c259d322 to your computer and use it in GitHub Desktop.
Numbered Coin 3D Model

Numbered Coin 3D Model

image

This SCAD script allows you to print mulitple numbered coin tokens meant to be drawn at random from a bag. There are lines over the top of the number to make it more difficult to feel around for a specific number. To change the number, modify the last line of code to include the desired number. Then take the code to https://ochafik.com/openscad2/ and download it as STL, then slice it with your favorite slicer. It should be able to be printed at any size required, without needing any supports.

module numberedCoin(number) {
// base
cylinder(5, 50, 50);
// outer ring
translate([0,0,5])
difference() {
cylinder(5, 50, 50);
cylinder(5, 45, 45);
}
// tactile obfuscation lines
rotate(45)
translate([0,0,5])
for(offset=[0:20])
intersection() {
cylinder(5, 50, 50);
translate([offset * 5 - 50,-50,0])
cube([1,100,5]);
}
// number
translate([0,0,5])
linear_extrude(height=3)
text(
text=number,
size=50,
halign="center",
valign="center",
font="monospace"
);
translate([-30,-30,5])
cube([60,3,3]);
}
numberedCoin("74");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment