chiark / gitweb /
flyscreen-handle: bot adj cutout is better
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 27 Aug 2016 15:54:57 +0000 (16:54 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 27 Aug 2016 15:54:57 +0000 (16:54 +0100)
flyscreen-handle.scad

index bdae865..0b0e415 100644 (file)
@@ -110,15 +110,17 @@ module LeverSect(top, inadj=false){
   P6 = inadj ? P6a : P6t;
   P8 = top ? P8t : P8b;
   P9 = top ? P9t : P9b;
-  PsHull([P2,P3,P4]);
   difference(){
-    PsHull([P0,P1,P2,P5,P8,P9]);
+    union(){
+      PsHull([P2,P3,P4]);
+      PsHull([P0,P1,P2,P5,P8,P9]);
+    }
     hull(){
-      for (p = [ Q0,
-                Q0 + (P6-P5),
-                Q0 + (P3-P4)
-                ]) {
-       translate(p) circle(r=edge_or, $fn=20);
+      for (dp = [ [0,0],
+                 (P6-P5),
+                 (P3-P4)
+                 ]) {
+       translate(Q0 + 5*dp) circle(r=edge_or, $fn=20);
       }
     }
   }
@@ -179,5 +181,6 @@ module Test(){
   translate([0,-opening_height - 2,0]) LeverBot(true);
 }
 
+//LeverSectBot(true);
 Demo();
 //Test();