hppM = [ epp4[0] - foldover_lever_gap - hp_r2,
0.5 * (hppU + hppS)[1] ];
-hppT = hppM + 0.5 * [0,+1] * hp_k;
-hppB = hppM + 0.5 * [0,-1] * hp_k;
+hppT = [ hppM[0], hppU[1] - hp_r1 ];
+hppB = hppT + [0,-1] * hp_k;
// hinge elevation x coords
}
}
+module Flip_hinge(){
+ hinge_origin = [0, -(phone_height - hppB[0]), hppB[1]];
+ translate(hinge_origin)
+ rotate([180,0,0])
+ translate(-hinge_origin)
+ children();
+}
+
module HingePortion(x0,x1){
Flip_rhs() Flip_bot(1)
translate([x0,0,0])
// bores for the screws
HingeScrews();
+
+ // space for the charging cable
+ MicroUSB();
+ Flip_hinge() MicroUSB();
}
}
}
module DemoHingedFrame(){ ///toplevel
- hinge_origin = [0, -(phone_height - hppB[0]), hppB[1]];
-
color("red") TestFrameCase();
translate([0,0, -2*hp_k])
color("blue") intersection(){ Lid(); TestSelectFrame(); }
-
- translate(hinge_origin)
- rotate([180,0,0])
- translate(-hinge_origin) {
- color("orange") HingeLever();
- color("black") HingeScrews();
- }
+
+ Flip_hinge(){
+ color("orange") HingeLever();
+ color("black") HingeScrews();
+ }
}
module DemoHinge(){ ////toplevel