X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=fairphone-case.scad;h=00d167eb785767a9e30fd6209749ecfa8818f94c;hp=f1d363802ca3344791050ba7d324ebfe8c371c69;hb=c827170d69910df04bc8b620f2ed53ed5164e633;hpb=45e24311cc32cfc1efe83287d0f0a22d56cf766f diff --git a/fairphone-case.scad b/fairphone-case.scad index f1d3638..00d167e 100644 --- a/fairphone-case.scad +++ b/fairphone-case.scad @@ -18,6 +18,12 @@ phone_backside_slope_outer = 1.0; // larger means shallower camera_pos_tl = [ 6.450, 12.750 ]; // measured from tl corner camera_pos_br = [ 22.300, 37.600 ]; // tl/br as seen from back +jack_pos = [ 13.92, 7.96 ]; +jack_dia = 9.1 + .5; // some jack I had lying around + +noisecancelmic_pos = [ 19.54, 7.37 ]; // from rhs +noisecancelmic_dia = 1.75; + case_th_bottom = 2.5; case_th_lid = 2.5; case_th_side = 2; @@ -261,6 +267,16 @@ module AroundEdges(fill_zstart, fill_th, fill_downwards=0){ [phone_width, -phone_height] + [-1,+1] * phone_cnr_rad); } +module CaseAperture(pos, dia, $fn) { + theta = 180/$fn; + translate([ pos[0] + bumper[0], + -epp2i[0], + -pos[1] ]) + rotate([-90, theta, 0]) + cylinder(r = dia/2 / cos(theta), + h = 60); +} + module SideButton(y, y_ref_sign, l){ // y_ref_sign: // +1 measured from top of actual phone to top of button @@ -371,6 +387,11 @@ module Case(){ ////toplevel ButtonPlan($button_l, 1,1); } } + + // apertures along top edge + CaseAperture(jack_pos, jack_dia, 8); + CaseBase_rhsflip([1]) + CaseAperture(noisecancelmic_pos, noisecancelmic_dia, 20); } } @@ -420,7 +441,10 @@ module TestWidth(){ ////toplevel } module TestLidWidthPrint(){ ////toplevel - rotate([0,180.0]) TestLidWidth(); + rotate([0,180.0]) intersection(){ + Lid(); + TestSelectWidth(); + } } module TestSelectCamera(){