From: Ian Jackson Date: Sun, 21 Jan 2018 21:06:45 +0000 (+0000) Subject: fairphone-case: introduce Flip_hinge (nfc) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f896c69bb662cc257db6e064bb6ac41b389651b1;p=reprap-play.git fairphone-case: introduce Flip_hinge (nfc) Signed-off-by: Ian Jackson --- diff --git a/fairphone-case.scad b/fairphone-case.scad index 39ad7c0..8ced1eb 100644 --- a/fairphone-case.scad +++ b/fairphone-case.scad @@ -457,6 +457,14 @@ module HingeLeverInnerProfile(){ } } +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]) @@ -767,18 +775,14 @@ module DemoFrame(){ ////toplevel } 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