4 bolt_above = 8.50 - 0.50;
5 bolthole_height = 4.24 + 1.00;
7 bolthole_width = 16.62 + 2.00;
8 main_sz = 150.56 + 0.75;
9 cnr_rad = 13.5; // approx
10 lidinner_thick_allow = 20.78 + 0.50;
11 display_width = 69.81 - 0.50;
14 dpp2 = [ -11.0, 7.0 ];
15 dpp1 = [ -34.0, 14.0 ];
19 web_height = 20; // excluding wall and base thick
23 anchor_wall_space = 25;
31 thumbslot_depth = 5.0;
32 thumbslot_width = 15.0;
33 thumbslot_between = 10;
34 ksafecover_lip = 4.62;
35 display_rhs_secs = 15;
36 dcover_endthick = 3.0;
37 dcover_mainthick = 5.0;
38 dcover_slop_height = 0.35;
39 dcover_slop_depth = 0.25;
40 dcover_slop_inside = 1.50;
41 dcover_commonvertoff = 0.00; // slop_height or slop_inside is added too
42 dcover_edge_gap_more_width = 2.0; // each side
44 // ----- calculated -----
49 gppB = gppA - [ wall_thick, 0 ];
51 gppL = [ gppB[0], -(lidinner_thick_allow + space + base_thick) ];
54 yw2 = yw1 - bolthole_rhs;
55 yw3 = yw2 - anchor_thick;
56 yw4 = yw3 - anchor_wall_space;
57 yw5 = yw4 - wall_thick;
58 yw6 = -(hsz - cnr_rad + 0.1);
61 yw11 = yw2 + anchor_wall_space;
62 yw12 = yw11 + wall_thick;
65 cpp1 = dpp1 + [ dcover_slop_depth, dcover_slop_height ];
66 cpp2 = [ dpp2[0] - dcover_slop_depth, dpp3[1] + dcover_slop_height ];
67 cppH = cpp1 + [ 0, dcover_endthick ];
68 cppA = [ cpp2[0], dpp3[1] + dcover_slop_inside ];
69 cppK = cppA + [ 0, dcover_mainthick ];
70 cppZ = [ -ksafecover_lip, -dcover_commonvertoff ];
71 cppD = cppZ + [ 0, -dcover_slop_inside ];
72 cppE = cppD + [ 0, -dcover_mainthick ];
73 cppC = [ dcover_slop_inside, cppD[1] ];
74 cppF = cppC + dcover_mainthick * [1,-1];
75 cppB = [ cppC[0], cppA[1] ];
76 cppG = [ cppF[0], cppK[1] ];
80 anchor_b = anchor_thick + anchor_rad;
81 appM = gppL + anchor_b * [1,1];
83 a_bevel = 2 * anchor_b * (1 + sqrt(0.5));
85 module upp_app_Vars(t_bevel){
86 $xppE = gppL + t_bevel * [0,1];
87 $xppF = gppL + t_bevel * [1,0];
89 $xppJ = $xppE + wall_thick * [ 1, tan(22.5) ];
90 $xppI = $xppF + base_thick * [ tan(22.5), 1 ];
92 // must pass a_bevel for t_bevel for these to be valid
93 $gppP = gppA + [0,-1] * lidinner_thick_allow;
94 $gppQ = $gppP + [1,-1] * web_height;
95 $gppR = $xppJ + [ 1, tan(22.5) ] * web_height;
96 $gppS = $xppI + [ tan(22.5), 1 ] * web_height;
97 $gppT = [ $gppQ[0], $xppE[1] ];
102 module upp_app_Profile(){
114 module UsualProfile(){
115 upp_app_Vars(bevel) upp_app_Profile();
118 module NearAnchorProfile(){
119 upp_app_Vars(a_bevel) upp_app_Profile();
122 module AnchorProfile(){
123 upp_app_Vars(a_bevel) {
134 translate(appM) circle(r= anchor_b);
136 translate(appM) circle(r= anchor_rad);
141 module AnchorWallProfile(){
145 for (bev = [bevel, a_bevel]) {
158 upp_app_Vars(a_bevel){
159 if ($gppR[1] <= $gppP[1]) {
175 $gppP + web_height * [1,0] ],
186 module SomeBaseProfile(I, F){
193 module BaseProfile(){
194 SomeBaseProfile($xppI, $xppF);
197 module DCoverProfileRaw(){
212 module DCoverProfile(){
218 module SWalls(ymin, ymax, t_bevel) {
219 upp_app_Vars(t_bevel) {
220 translate([0,ymin,0])
223 linear_extrude(height= ymax-ymin, convexity=10)
231 module AtTwoCorners(){
234 translate((hsz - cnr_rad) * [1,1])
236 rotate_extrude(convexity=10)
237 translate([-cnr_rad,0])
239 translate([0,0,-250])
246 /// corners, and front and back of base
247 for (ym=[0,1]) mirror([0,ym,0]) {
251 hull() AtTwoCorners(){
262 // side walls and base
263 SWalls(yw6 , yw4 , bevel ) { UsualProfile(); BaseProfile(); }
264 SWalls(yw5 , yw4 , a_bevel) { AnchorWallProfile(); BaseProfile(); }
265 SWalls(yw5 , yw12, a_bevel) { NearAnchorProfile(); BaseProfile(); }
266 SWalls(yw3 , yw2 , a_bevel) { AnchorProfile(); BaseProfile(); }
267 SWalls(yw11, yw12, a_bevel) { AnchorWallProfile(); BaseProfile(); }
268 SWalls(yw11, yw13, bevel ) { UsualProfile(); BaseProfile(); }
269 SWalls(yw1, yw10, a_bevel) { WebProfile(); SomeBaseProfile($gppS, $xppF); }
271 // front and rear walls
272 rotate([0,0,90]) SWalls(yw6, yw13, bevel) UsualProfile();
275 module DCover(){ ////toplevel
276 translate([ -display_width/2, -hsz, 0 ])
279 linear_extrude( display_width - display_rhs_secs, convexity = 10)
283 module DCoverSupportAllowance(){
284 translate([0, -hsz, 0])
286 [ display_width + 2 * dcover_edge_gap_more_width,
288 dcover_slop_inside * 2 + 0.01 ]);
291 module KsafeBase(){ ////toplevel
300 translate([0,0, -bolt_above -0.5 * bolthole_height])
301 cube(center=true, [ cut, bolthole_width, bolthole_height ]);
305 -(bolthole_width/2 + bolthole_rhs),
307 mirror([0,1,0]) mirror([0,0,1])
310 lidinner_thick_allow + string_depth + 1 ]);
313 for (mx=[0,1]) mirror([mx,0,0]) {
314 translate([ thumbslot_between/2,
317 cube([ thumbslot_width,
319 thumbslot_depth+1 ]);
322 DCoverSupportAllowance();
326 module DemoProfiles(){ ////toplevel
327 translate([0,0,-2]) color("yellow") AnchorWallProfile();
328 color("red") AnchorProfile();
329 translate([0,0,2]) color("black") NearAnchorProfile();
330 translate([0,0,4]) color("blue") UsualProfile();
331 translate([0,0,-4]) color("pink") WebProfile();
332 translate([0,0,6]) color("purple") DCoverProfile();
335 module RimTest(){ ////toplevel
338 cube(center=true, [ main_sz*2, main_sz*2,
343 module DCoverTest(){ ////toplevel
350 cube(center=true, [ main_sz*2, main_sz*2,
355 module BoltTest(){ ////toplevel
356 dy = 0.5 * (bolthole_width+4);
359 translate([ 0, -dy, -(bolt_above + bolthole_height + 1) ])
360 cube([ main_sz, dy*2, 50 ]);