-
Notifications
You must be signed in to change notification settings - Fork 1
/
battery_holder.scad
63 lines (58 loc) · 1.41 KB
/
battery_holder.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
51
52
53
54
55
56
57
58
59
60
61
62
63
$fn=51;
c = 30.5 / 2;
dy=9;
dx=8;
th = 1.6;
sink = -6;
module tab_c(){
translate([-4.5, 0, 0])
rotate(90, [1, 0, 0])
cylinder(d=th, h=3+2.4, center=true);
}
module tab(){
difference(){
hull(){
cylinder(d=3+2.4, h=th, center=true);
tab_c();
}
cylinder(d=3.1, h=3, center=true);
}
hull(){
tab_c();
translate([0, 0, sink])tab_c();
}
hull(){
tab_c();
translate([0, 0, -1])tab_c();
translate([1, 0, 0])tab_c();
}
hull(){
translate([-1.5, 0, 0])tab_c();
translate([-1.5, 0, sink])tab_c();
translate([0, 0, 0])tab_c();
translate([0, 0, sink])tab_c();
}
}
difference(){
union(){
translate([c, c, 0])tab();
translate([c, -c, 0])tab();
mirror([1, 0, 0])translate([c, c, 0])tab();
mirror([1, 0, 0])translate([c, -c, 0])tab();
hull(){
translate([c, c, sink])tab_c();
mirror([1, 0, 0])translate([c, -c, sink])tab_c();
}
mirror([0, 1, 0])hull(){
translate([c, c, sink])tab_c();
mirror([1, 0, 0])translate([c, -c, sink])tab_c();
}
hull(){
translate([dx, dy, sink])sphere(d=th);
translate([dx, -dy, sink])sphere(d=th);
translate([-dx, dy, sink])sphere(d=th);
translate([-dx, -dy, sink])sphere(d=th);
}
}
//cube([6, 8, 15], center=true);
}