+module DemoHingeScrews(){
+ Flip_rhs() Flip_bot(1){
+ for (c= [ hppT, hppB ])
+ translate([ hex20,
+ -c[0],
+ c[1] ]){
+ rotate([0,90,0])
+ translate([0,0,-.2])
+ cylinder( r= hingescrew_shaft_dia/2,
+ h = hingescrew_shaft_len+0.2 );
+ rotate([0,-90,0])
+ translate([0,0,+.1])
+ cylinder( r= hingescrew_head_dia/2, h = hingescrew_head_th );
+ }
+ }
+}
+
+module DemoFrame(){ ////toplevel
+ color("red") TestFrameCase();
+ color("blue") intersection(){ Lid(); TestSelectFrame(); }
+ color("black") DemoHingeScrews();
+ %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(); }
+
+ translate(hinge_origin)
+ rotate([180,0,0])
+ translate(-hinge_origin) {
+ color("orange") HingeLever();
+ color("black") DemoHingeScrews();
+ }
+}
+
+module DemoHinge(){ ////toplevel
+ DemoFrame();
+ translate([0,0, -hp_k*3])
+ DemoHingedFrame();
+}
+