chiark / gitweb /
flyscreen-handle: LeverSects wip, before Test
[reprap-play.git] / flyscreen-handle.scad
index 2eccdbe7a529cce365a3d91326edf6e3d11e0bb5..72add71a5160c53c0193b2ab6ef1ef843269a876 100644 (file)
@@ -8,7 +8,7 @@ opening_protrh = 1.8;
 pivot_x = 6;
 inside_len = 4;
 
-pivoting_gap = 1;
+pivoting_gap = 0.1;
 
 outside_gap = 3;
 outside_len = 16;
@@ -24,6 +24,11 @@ opening_protr_slop = 0.1;
 intooth_top_slop = 0.1;
 inside_h_xgap = 1;
 
+pivot_r = 2;
+pivot_slop = 0.25;
+
+width = 10;
+
 // calculated
 
 inside_h = opening_height/2 - opening_protrh - inside_h_xgap/2;
@@ -82,7 +87,6 @@ module PsHull(ps) {
 
 module LeverSect(){
   PsHull([P2,P3,P4]);
-  PsHull([P5,P6,P7]);
   difference(){
     PsHull([P0,P1,P2,P5,P8,P9]);
     translate(Q0) {
@@ -95,12 +99,17 @@ module LeverSect(){
 }
 
 module LeverSectTop(){
-  LeverSect();
+  difference(){
+    LeverSect();
+    translate([pivot_x,0]) circle(r= pivot_r + pivot_slop, $fn=20);
+  }
 }
 
 module LeverSectBot(){
   mirror([0,1]) {
     LeverSect();
+    PsHull([P5,P6,P7]);
+    translate([pivot_x,0]) circle(r=pivot_r, $fn=20);
   }
 }
 
@@ -110,4 +119,18 @@ module Demo(){
   LeverSectBot();
 }
 
-Demo();
+module LeverTop(){
+  linear_extrude(height=width, convexity=100) LeverSectTop();
+}
+
+module LeverBot(){
+  linear_extrude(height=width, convexity=100) LeverSectBot();
+}
+
+module Test(){
+  translate([0,2,0]) LeverTop();
+  LeverBot();
+}
+
+//Demo();
+Test();