-
Notifications
You must be signed in to change notification settings - Fork 97
/
penholder.scad
50 lines (46 loc) · 1.38 KB
/
penholder.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
offset = 12;
wall = 1.6;
diameter1 = 10; // dial indicator
diameter2 = 9; // ball point pen
module penholder() {
difference() {
union() {
translate([0, 0, 6])
cube([2*wall+2, 2*offset+30, 20], center=true);
translate([0, offset, 6])
cylinder(r=diameter1/2+wall, h=20, center=true);
translate([0, -offset, 6])
cylinder(r=diameter2/2+wall, h=20, center=true);
intersection() {
union() {
cylinder(r=29, h=8, center=true);
translate([0, 0, 9])
cylinder(r1=20, r2=3, h=14, center=true);
}
union() {
rotate([0, 0, 30]) cube([100, 10, 100], center=true);
rotate([0, 0, -30]) cube([100, 10, 100], center=true);
}
}
}
translate([0, offset, 0]) {
cylinder(r=diameter1/2, h=100, center=true, $fn=24);
translate([0, 10, 0]) cube([2, 20, 100], center=true);
}
translate([0, -offset, 0]) {
cylinder(r=diameter2/2, h=100, center=true, $fn=24);
translate([0, -10, 0]) cube([2, 20, 100], center=true);
}
for (a = [-30, 30, -150, 150]) {
rotate([0, 0, a]) {
translate([25, 0, 0]) {
cylinder(r=2.2, h=10, center=true, $fn=12);
translate([3, 0, 0]) cube([6, 1, 10], center=true);
}
}
}
}
}
translate([0, 0, 4]) penholder();
use <platform.scad>;
% translate([0, 0, -4]) platform();