Browse Source

Add simple model of tamper for espresso machine

T. Meissner 3 years ago
parent
commit
f3ab1adffd
1 changed files with 30 additions and 0 deletions
  1. 30
    0
      tamper.scad

+ 30
- 0
tamper.scad View File

@@ -0,0 +1,30 @@
1
+// configuration values
2
+rb  = 57/2;
3
+h1  = 10;
4
+h2  = 80;
5
+fs  = 5;
6
+
7
+
8
+content = "TM";
9
+font = "Droid Sans Mono Bold";
10
+
11
+union () {
12
+  cylinder(r1=rb, r2=rb, h=2, $fn=50);
13
+  translate([0, 0, 2]) {
14
+    cylinder(r1=rb, r2=rb-2, h=h1, $fn=50);
15
+  }
16
+  cylinder(r1=10, r2=10, h=h2, $fn=50);
17
+  hull () {
18
+    translate ([0, 0, h2]) {
19
+      sphere(r=17, $fn=50);
20
+    }
21
+    translate ([0, 0, h1*3]) {
22
+      sphere(r=10, $fn=50);
23
+    }
24
+  }
25
+  translate ([-fs, -20, h1+2]) {
26
+    linear_extrude(height=1.5) {
27
+      text(content, font=font, size=fs);
28
+    }
29
+  }
30
+}