-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlaser box Qrv2.scad
169 lines (127 loc) · 4.23 KB
/
laser box Qrv2.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
// Frame dimension
H=1000;
L=400;
W=L;
T=4; // thinkness of material used.
stephole=0; //offset from button.
//configurations
onlyhotcamera();
//FullcoverQR();
//onlyhotcamera3d();
//FullcoverQR3d();
//stepper size
stepsz=43+T;//(min value 43)
module panel1(){
difference(){
cube([L,H,1]);
translate([+30,+10,0])cylinder(r=3,h=5);
translate([W-30,+10,0])cylinder(r=3,h=5);
translate([+30,H-10,0])cylinder(r=3,h=5);
translate([W-30,H-10,0])cylinder(r=3,h=5);
translate([0,0,0])cube([20,40+85,T]);
translate([W-20,0,0])cube([20,40+85,T]);
translate([0,H-20,0])cube([20,40,T]);
translate([W-20,H-20,0])cube([20,40,T]);
//translate([+10,H-10,0])cylinder(r=2.5,h=5);
//translate([L-10,H-10,0])cylinder(r=2.5,h=5);
translate([0,H-62-stephole,0])cube([20+T+3,42,1]);
translate([L-20-T-3,H-62-stephole,0])cube([20+T+3,42,1]);
}}
module panel2(){
difference(){
cube([W,H,1]);
translate([+30,+30,0])cylinder(r=3,h=5);
translate([W-30,+30,0])cylinder(r=3,h=5);
translate([+30,H-30,0])cylinder(r=3,h=5);
translate([W-30,H-30,0])cylinder(r=3,h=5);
translate([0,0,0])cube([20,40+85,T]);
translate([W-20,0,0])cube([20,40+85,T]);
translate([0,H-40,0])cube([20,40,T]);
translate([W-20,H-40,0])cube([20,40,T]);
translate([0,H-62-stephole-42,0])cube([20+T+3,42,1]);
translate([W-20-T-3,H-62-stephole-42,0])cube([20+T+3,42,1]);
}
}
module panel3(frontal){
difference(){
cube([L,H,1]);
translate([+30,+10,0])cylinder(r=3,h=5);
translate([L-30,+10,0])cylinder(r=3,h=5);
translate([+30,H-10,0])cylinder(r=3,h=5);
translate([L-30,H-10,0])cylinder(r=3,h=5);
if (frontal==1) translate([40,40,0]) cube([L-80,H-80,5]);
}}
module panel4(frontal){
difference(){
cube([W,H,1]);
translate([+30,+30,0])cylinder(r=3,h=5);
translate([W-30,+30,0])cylinder(r=3,h=5);
translate([+30,H-30,0])cylinder(r=3,h=5);
translate([W-30,H-30,0])cylinder(r=3,h=5);
if (frontal==1) translate([40,40,0]) cube([W-80,H-80,5]);
}}
module panelfull(){
cube([W+stepsz,H+stepsz,1]);
}
module panelfull2(){
cube([L+stepsz,H+stepsz,1]);
}
module panel3full(frontal){
difference(){
cube([L+stepsz,H+stepsz,1]);
translate([+10,+stepsz+10,0])cylinder(r=3,h=5);
translate([L-10,+stepsz+10,0])cylinder(r=3,h=5);
translate([+10,H+stepsz-10,0])cylinder(r=3,h=5);
translate([L-10,H+stepsz-10,0])cylinder(r=3,h=5);
if (frontal==1) translate([40,40+stepsz,0]) cube([L-80,H-80,5]);
}}
module panel4full(frontal){
difference(){
cube([W+stepsz,H+stepsz,1]);
translate([+10,+stepsz+30,0])cylinder(r=3,h=5);
translate([W-10,+stepsz+30,0])cylinder(r=3,h=5);
translate([+10,H+stepsz-30,0])cylinder(r=3,h=5);
translate([W-10,H+stepsz-30,0])cylinder(r=3,h=5);
if (frontal==1) translate([40,40+stepsz,0]) cube([W-80,H-80,5]);
}}
module panelfulltb(frontal){
difference(){
cube([W+stepsz,L+stepsz,1]);
translate([+30,+stepsz+30,0])cylinder(r=2.5,h=5);
translate([W-30,+stepsz+30,0])cylinder(r=2.5,h=5);
translate([+30,L+stepsz-30,0])cylinder(r=2.5,h=5);
translate([W-30,L+stepsz-30,0])cylinder(r=2.5,h=5);
if (frontal==1) translate([40,40+stepsz,0]) cube([W-80,L-80,5]);
}}
module onlyhotcamera(){
projection(cut = false)panel1(1);
projection(cut = false)translate([0,H+10,0])panel2();
projection(cut = false)translate([0,H*2+20,0])panel4(1);
projection(cut = false)translate([0,H*3+30,0])panel3(1);
}
module FullcoverQR(){
projection(cut = false)panel1(1);
projection(cut = false)translate([0,H+10,0])panel2();
projection(cut = false)translate([0,H*2+20,0])panel4full(0);
projection(cut = false)translate([0,H*3+stepsz+30,0])panel3full(1);
projection(cut = false)translate([0,H*4+stepsz*2+40,0])panelfull(0);
projection(cut = false)translate([0,H*5+stepsz*3+50,0])panelfull2(0);
projection(cut = false)translate([0,H*6+stepsz*4+60,0])panelfulltb(1);
projection(cut = false)translate([0,H*6+L+stepsz*5+70,0])panelfulltb(1);
}
module onlyhotcamera3d(){
panel1(1);
translate([0,H+10,0])panel2();
translate([0,H*2+20,0])panel4(0);
translate([0,H*3+30,0])panel3(1);
}
module FullcoverQR3d(){
panel1(1);
translate([0,H+10,0])panel2();
translate([0,H*2+20,0])panel4full(0);
translate([0,H*3+stepsz+30,0])panel3full(1);
translate([0,H*4+stepsz*2+40,0])panelfull(0);
translate([0,H*5+stepsz*3+50,0])panelfull2(0);
translate([0,H*6+stepsz*4+60,0])panelfulltb(1);
translate([0,H*6+L+stepsz*5+70,0])panelfulltb(1);
}