-
Notifications
You must be signed in to change notification settings - Fork 1
/
output_case_mosfet.scad
71 lines (66 loc) · 1.22 KB
/
output_case_mosfet.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
64
65
66
67
68
69
70
71
include <lib/rj45_case.scad>
include <lib/vitamins.scad>
include <conf/config.scad>
x=65;
x1=3;
y1=45;
y2=y1;
z1=19;
z2=z1;
//default action PRINT or RENDER
/* ACTION=PRINT; */
module part(cutout=NONE) {
if (cutout==BOTTOM) {
//part to cut as holes in the bottom case
}
else if (cutout==TOP) {
//part to cut as holes in the top case
translate([-5, -y1/2+12.5, 0]) {
rj45();
}
translate([20-w*2, y1/2-17, 0]) {
rotate([0, 0, -90]) {
connector_holder_single(part=INNER,z=0);
}
}
} else {
//part to add to the case
difference() {
translate([10-w, -y1/2+12.5, 0]) {
grove_rj45();
}
translate([-8+w, -y1/2+12.5-5, -f]) {
cube(size=[5, 10, 10]);
}
}
translate([20-w, y1/2, 0]) {
rotate([0, 0, -90]) {
connector_holder_single(ALL);
}
}
translate([54, -11, 0]) {
rotate([0, 0, 90]) {
grove_relay();
}
}
}
}
module assembly() {
box_bottom();
translate([-w, 0, -w]) {
if (ACTION==RENDER) {
%box_top();
} else {
box_top();
}
}
box_holder();
}
module print() {
box_bottom();
translate([x*1.5, 0, 0]) {
rotate([0, -90, 0]) {
box_top();
}
}
}