aboutsummaryrefslogtreecommitdiff
path: root/lib/extra.scad
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2026-07-18 13:53:38 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2026-07-18 13:53:38 +0200
commit41e2e339af3ef4b0dd62a050102601a0ed6a02b9 (patch)
tree9c064d78745d3611e0380bfc5f3bd2a7123f1165 /lib/extra.scad
parent4971ccafd0d6fb1da8131f60e87e71327741044b (diff)
New design: counter / token with a hole
Diffstat (limited to 'lib/extra.scad')
-rw-r--r--lib/extra.scad12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/extra.scad b/lib/extra.scad
new file mode 100644
index 0000000..f9bd52c
--- /dev/null
+++ b/lib/extra.scad
@@ -0,0 +1,12 @@
+use <utils.scad>
+
+module token(r, f=8, h=2) {
+ difference() {
+ union() { for ( i = [0:f-1] ) {
+ rotate([0, 0, 360 * i / f]) translate([r / 3, 0, 0]) cylinder(r=r * 2 / 3, h=h, $fn=64);
+ }}
+ union() { for (i = [0:f-1]) {
+ rotate([0, 0, 360 * i / f]) translate([0, 0, -1]) cube([r/3, r/3, h + 2]);
+ }}
+ }
+}