X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=fairphone-case.scad;h=5db4a92a0d2a40cfaba3c5ec742ff6b296e84fcc;hb=f5ce7570c35ff764b5eafa2b7a033a0919350684;hp=deb40ba01a1036cc2a0c879f7311e665e0427335;hpb=2770e3844f3885e574bd4bc029d6b15efef060a9;p=reprap-play.git diff --git a/fairphone-case.scad b/fairphone-case.scad index deb40ba..5db4a92 100644 --- a/fairphone-case.scad +++ b/fairphone-case.scad @@ -21,7 +21,7 @@ led_window_style = 3; // 3: like 2 but one-layer window for ad-hoc multi-colour initial_layer_thick = 0.400; // ^ needed for mode 3 only -initial_layer_width = 0.125; // ^ needed for mode 3 only +initial_layer_width = 0.750; // ^ needed for mode 3 only multicolour_gap = 0.15; // each side phone_cnr_rad = 6.0; @@ -40,7 +40,7 @@ camera_pos_br = [ 22.300, 37.600 ]; // tl/br as seen from back jack_pos = [ 13.83, 8.485 ]; jack_dia = 10.64 + .5; // some jack I had lying around -led_pos = [ 10.86, 8.58 ]; +led_pos = [ 13.98, 9.18 ]; led_aperture = 5; led_window_ledge = 0.75; // each side @@ -62,6 +62,8 @@ case_th_lid = 3.0; case_th_side = 2; case_th_lip = 1.2; +lid_screen_gap_extra = .66; + case_struts_count = 6; case_struts_solid_below = 1.00; case_struts_solid_above = 0.75; @@ -201,7 +203,8 @@ lpp14 = lpp10 + [1,0] * keeper_inner_width; // exact x posn not very important; must extend past end of keeper lpp15 = [ lpp14[0], - epp0[1] - phone_rim_depth + 1/2.5 * case_th_lid ]; + epp0[1] - phone_rim_depth + 1/2.5 * case_th_lid + + lid_screen_gap_extra ]; // ^ beam theory says to maximise force before contact, // the gap below the `beam' (the lid) must be 1/3 // the thickness (ie the lid thickness) if the beam @@ -350,7 +353,7 @@ module AdhocMultiprintFrame(phase, z0, zs) { xextra = extra + -epp4[0]; xrange = [ 0, phone_width ] + [-1,+1] * xextra; yextra = extra + -epp4[0]; - yrange = [ -phone_height + -hppB[0] + hp_r2, 0 ] + [-1,+1] * yextra; + yrange = [ -phone_height + +hppB[0] - hp_r2, 0 ] + [-1,+1] * yextra; p0 = [ xrange[0], yrange[0] ]; p1 = [ xrange[1], yrange[1] ]; echo(p0, p1);