8 phone_edge_thick = 9.0;
9 phone_total_thick = 12.0;
10 phone_backside_slope = 1.0; // larger means shallower
24 phone_backside_slope_thick = phone_total_thick - phone_edge_thick;
26 //lid_lip_overlap_width xxx bad name = ;
27 //lid_lip_inner_slope = [ 5, 5 ]; // xxx
30 epp1 = [0, -phone_edge_thick];
31 epp2 = epp1 + phone_backside_slope_thick * [ phone_backside_slope, -1 ];
32 epp3 = epp2 + [10, 0];
33 epp4 = epp0 - [1,0] * (case_th_side - case_th_lip);
34 epp5 = epp0 + [1,0] * case_lip;
35 epp6 = epp5 + [0,1] * case_th_lip;
37 module rectfromto(a,b) { translate(a) square(b - a); }
38 module circleat(c,r) { translate(c) circle(r); }
43 circleat(epp3, r=case_th_bottom);
44 circleat(epp2, r=case_th_bottom);
45 circleat(epp1, r=case_th_side);
46 circleat(epp4, r=case_th_lip);
47 rectfromto(epp0, epp6);
49 polygon([ epp6 + [10,10],
59 module CaseBase_rhsflip(rhs) {
60 translate([phone_width/2, 0, 0])
62 translate([-phone_width/2, 0, 0])
66 module CaseBase_botflip(bot) {
67 translate([0, -phone_height/2, 0])
69 translate([0, phone_height/2, 0])
75 CaseBase_rhsflip(rhs){
76 translate([0, -phone_cnr_rad, 0])
78 linear_extrude(height = phone_height - phone_cnr_rad*2)
83 CaseBase_rhsflip(rhs){
84 translate([+1,-1] * phone_cnr_rad)
89 translate([-1,0] * phone_cnr_rad)
91 rectfromto([0,-20],[10,20]);
93 translate([-10, 0, -20] + 0.01 * [+1,-1, 0] )
99 CaseBase_botflip(bot){
100 translate([ phone_width - phone_cnr_rad, 0,0 ])
102 linear_extrude(height = phone_width - phone_cnr_rad*2)