chiark / gitweb /
fairphone-case: hinge: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 20:22:27 +0000 (20:22 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 20:22:27 +0000 (20:22 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index ea8207e..6241152 100644 (file)
@@ -556,6 +556,18 @@ module Lid(){ ////toplevel
   }
 }
 
+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]);
@@ -699,6 +711,26 @@ module ButtonPlanForDemo(z, deep, cut){
 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