X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=fairphone-case.scad;h=c9e1a5ac7d396b6a65c533d50921b1350445d02b;hp=dd3b669a8ae61ab65acfb0e6273b39ea0f43cd45;hb=2d3f8d8ea8a4b5419b1a757f37fac573065294ea;hpb=54cf490e302b8908409dab91a31272910b47da68 diff --git a/fairphone-case.scad b/fairphone-case.scad index dd3b669..c9e1a5a 100644 --- a/fairphone-case.scad +++ b/fairphone-case.scad @@ -215,8 +215,8 @@ hex22 = hex21 + hinge_x_gap; hex23 = hex22 + hingescrew_portion_len - hingescrew_nut_thick; // bodge, need to divvy this up more sensibly hex24 = hex20 + hingescrew_shaft_len + hinge_x_postscrew_gap; -echo(hex20, hex21, hex22, hex23, hex24); -echo(hingescrew_portion_len); +//echo(hex20, hex21, hex22, hex23, hex24); +//echo(hingescrew_portion_len); // catch @@ -583,24 +583,26 @@ module CatchPortion(width){ } module PropRecess(){ - // origin and orientation are nonstandard + // origin is nonstandard hwd345 = 0.5*prop_main_width + prop_side_gap; hwd35 = 0.5*prop_fin_width + prop_side_gap; - linextr(-hwd345, +hwd345) - polygon([ prp1, - prp2, - prp3, - prp4, - prp4 + [0,10], - prp1 + [0,10], - ]); - linextr(-hwd35, +hwd35) - polygon([ prp1, - prp3, - prp5, - prp5 + [0,10], - prp1 + [0,10], - ]); + rotate([90,0,90]){ + linextr(-hwd345, +hwd345) + polygon([ prp1, + prp2, + prp3, + prp4, + prp4 + [0,10], + prp1 + [0,10], + ]); + linextr(-hwd35, +hwd35) + polygon([ prp1, + prp3, + prp5, + prp5 + [0,10], + prp1 + [0,10], + ]); + } } module CaseBase(){ @@ -735,7 +737,6 @@ module Lid(){ ////toplevel Flip_bot(1) for (y = prop_lid_posns) translate([ phone_width/2, -y, lpp13[1] ]) - rotate([90,0,90]) PropRecess(); } } @@ -865,6 +866,19 @@ module LidPrint(){ ////toplevel Lid(); } +module TestSelectPropRecesses(posns){ + linextr(-100,100){ + translate([phone_width/2, -phone_height]){ + square([ 3, 500 ], center=true); + for (y=posns) + hull() + for (dy=[ -prp5[0], -prp2[0] ]) + translate([0,y+dy]) + square([prop_main_width+5, 5], center=true); + } + } +} + module TestSelectFrame(){ include = [1,-1] * (epp2i[0] + 4); @@ -878,6 +892,7 @@ module TestSelectFrame(){ module TestSelectLidFrame(){ TestSelectFrame(); + TestSelectPropRecesses(prop_lid_posns); } module TestFrameCase(){ ////toplevel