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
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);
}
}
+module TestSelectLidFrame(){
+ TestSelectFrame();
+ TestSelectPropRecesses(prop_lid_posns);
+}
+
module TestFrameCase(){ ////toplevel
intersection(){
Case();
module TestFrameLidPrint(){ ////toplevel
rotate([0,180,0]) intersection(){
Lid();
- TestSelectFrame();
+ TestSelectLidFrame();
}
}
module DemoFrame(){ ////toplevel
color("red") TestFrameCase();
- color("blue") intersection(){ Lid(); TestSelectFrame(); }
+ color("blue") intersection(){ Lid(); TestSelectLidFrame(); }
color("black") HingeScrews();
%HingeLever();
}
module DemoHingedFrame(){ ///toplevel
color("red") TestFrameCase();
translate([0,0, -2*hp_k])
- color("blue") intersection(){ Lid(); TestSelectFrame(); }
+ color("blue") intersection(){ Lid(); TestSelectLidFrame(); }
Flip_hinge(){
color("orange") HingeLever();