}
}
+module HingeLever(){ ////toplevel
+ difference() {
+ // outer body, positive
+ HingePortion(hex22, hex22 + phone_width/2)
+ HingeLeverOuterProfile();
+
+ // space for the screws
+ HingePortion(hex23, hex24)
+ HingeLeverInnerProfile();
+ }
+}
+
module TestSelectLength(){
translate([-30, -200, -20])
cube([30 + 15, 250, 40]);
module DemoFrame(){ ////toplevel
color("red") TestFrameCase();
color("blue") intersection(){ Lid(); TestSelectFrame(); }
+ %HingeLever();
+}
+
+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(); }
+
+ color("orange") translate(hinge_origin)
+ rotate([180,0,0])
+ translate(-hinge_origin)
+ HingeLever();
+}
+
+module DemoHinge(){ ////toplevel
+ DemoFrame();
+ translate([0,0, -hp_k*3])
+ DemoHingedFrame();
}
module DemoProfiles(){ ////toplevel