8 phone_edge_thick = 9.0;
9 phone_total_thick = 12.0;
10 phone_backside_slope = 1.0; // larger means shallower
22 keeper_gap_z_top = 0.25;
23 keeper_gap_z_bot = 0.25;
33 phone_backside_slope_thick = phone_total_thick - phone_edge_thick;
35 //lid_lip_overlap_width xxx bad name = ;
36 //lid_lip_inner_slope = [ 5, 5 ]; // xxx
39 epp1 = [0, -phone_edge_thick];
40 epp2 = epp1 + phone_backside_slope_thick * [ phone_backside_slope, -1 ];
41 epp3 = epp2 + [10, 0];
42 epp5 = epp0 + [0,1] * (keeper_th_z + keeper_gap_z_top + case_lip);
43 epp4 = epp5 + [-1,0] * case_th_side;
45 module rectfromto(a,b) {
47 translate([min(a[0], b[0]), min(a[1], b[1])])
48 square([abs(ab[0]), abs(ab[1])]);
50 module circleat(c,r) { translate(c) circle(r); }
55 circleat(epp3, r=case_th_bottom);
56 circleat(epp2, r=case_th_bottom);
57 circleat(epp1, r=case_th_side);
58 rectfromto(epp0, epp4);
60 %polygon([ epp5 + [0,10],
67 module CaseBase_rhsflip() {
69 translate([phone_width/2, 0, 0])
71 translate([-phone_width/2, 0, 0])
76 module CaseBase_botflip() {
78 translate([0, -phone_height/2, 0])
80 translate([0, phone_height/2, 0])
87 translate([0, -phone_cnr_rad, 0])
89 linear_extrude(height = phone_height - phone_cnr_rad*2)
92 CaseBase_rhsflip() CaseBase_botflip() {
93 translate([+1,-1] * phone_cnr_rad)
98 translate([-1,0] * phone_cnr_rad)
100 rectfromto([0,-20],[10,20]);
102 translate([-10, 0, -20] + 0.01 * [+1,-1, 0] )
107 translate([ phone_width - phone_cnr_rad, 0,0 ])
109 linear_extrude(height = phone_width - phone_cnr_rad*2)