|
@@ -0,0 +1,57 @@
|
|
1
|
+/*
|
|
2
|
+ * Created by:
|
|
3
|
+ * Thomas Buck <xythobuz@xythobuz.de> in June 2016
|
|
4
|
+ *
|
|
5
|
+ * Licensed under the
|
|
6
|
+ * Creative Commons - Attribution - Share Alike license.
|
|
7
|
+ */
|
|
8
|
+
|
|
9
|
+// -----------------------------------------------------------
|
|
10
|
+
|
|
11
|
+d_min = 8.7;
|
|
12
|
+d_max = 9.2;
|
|
13
|
+d_inner = 5.5;
|
|
14
|
+d_outer = 14;
|
|
15
|
+d_grip = 11;
|
|
16
|
+w_grip = 20;
|
|
17
|
+h_top = 5;
|
|
18
|
+h_mid = 35;
|
|
19
|
+h_bottom = 10;
|
|
20
|
+sphere_ratio = 1.25;
|
|
21
|
+grip_ratio = 1.75;
|
|
22
|
+grip_angle = 20;
|
|
23
|
+
|
|
24
|
+$fn = 20;
|
|
25
|
+
|
|
26
|
+// -----------------------------------------------------------
|
|
27
|
+
|
|
28
|
+difference() {
|
|
29
|
+ union() {
|
|
30
|
+ difference() {
|
|
31
|
+ intersection() {
|
|
32
|
+ translate([-w_grip / 2, -w_grip / 2, 0])
|
|
33
|
+ cube([w_grip, w_grip, h_bottom]);
|
|
34
|
+ sphere(d = w_grip * sphere_ratio);
|
|
35
|
+ }
|
|
36
|
+
|
|
37
|
+ for(angle = [0, 90, 180, 270]) {
|
|
38
|
+ rotate([0, 0, angle])
|
|
39
|
+ translate([0, -w_grip / grip_ratio, -w_grip / 4])
|
|
40
|
+ rotate([grip_angle, 0, 0])
|
|
41
|
+ cylinder(d = h_bottom, h = h_bottom + (w_grip / 2));
|
|
42
|
+ }
|
|
43
|
+ }
|
|
44
|
+
|
|
45
|
+ translate([0, 0, h_bottom])
|
|
46
|
+ cylinder(d = d_outer, h = h_mid + h_top);
|
|
47
|
+ }
|
|
48
|
+
|
|
49
|
+ translate([0, 0, -1])
|
|
50
|
+ cylinder(d = d_grip, h = h_bottom + 1);
|
|
51
|
+
|
|
52
|
+ translate([0, 0, h_bottom - 1])
|
|
53
|
+ cylinder(d1 = d_max, d2 = d_min, h = h_mid + 1, $fn = 6);
|
|
54
|
+
|
|
55
|
+ translate([0, 0, h_bottom + h_mid - 1])
|
|
56
|
+ cylinder(d = d_inner, h = h_top + 2);
|
|
57
|
+}
|