chiark / gitweb /
lock-inframe-bracket: MainPlan: reorg to make cutouts common (nfc)
[reprap-play.git] / lock-inframe-bracket.scad
index 7a35441935839263a8079ade3bdc233a675bef02..d87e7913e55893c824d000b607477061285a9a60 100644 (file)
@@ -1,11 +1,11 @@
 // -*- C -*-
 
-tube_dia = 27.5 + 1.25;
+tube_dia = 27.5 + 1.625;
 lock_w = 42.5 + 0.5;
 lock_d = 28.0 + 0.5;
 main_h = 45.0;
 backflange_d = 12;
-lockshaft_dia = 15.5;
+lockshaft_dia = 14.35;
 
 cliprecess_h = 16;
 total_h = 45;
@@ -56,16 +56,17 @@ module MainPlan(){
       circle(r = tube_or);
       translate([-back_ohw,0]) mirror([0,1])
        square([back_ohw*2, backflange_ymin]);
+
+      translate([0, lock_0y]){
+       oval(lock_or);
+      }
     }
+
     circle(r = tube_dia/2);
     translate([-back_gap/2,1]) mirror([0,1])
       square([back_gap, backflange_ymin+2]);
-  }
-  translate([0, lock_0y]){
-    difference(){
-      union(){
-       oval(lock_or);
-      }
+
+    translate([0, lock_0y]){
       oval([lock_w/2, lock_d/2]);
     }
   }
@@ -140,17 +141,42 @@ module MainPositive(){
   }
 }
 
-module Bracket(){
+module Bracket(){ //// toplevel
   difference(){
     MainPositive();
     ThroughHoles();
   }
 }
 
+module TestTopEdge(){ //// toplevel
+  intersection(){
+    translate([0,0, -total_h])
+      translate([0,0, 4])
+      Bracket();
+    translate([-200,-200,0])
+      cube([400,400,100]);
+  }
+}
+
+module TestClipBoltHole(){ //// toplevel
+  intersection(){
+    union(){
+      translate([0, 0, -5])
+       Bracket();
+      translate([-4, lock_0y + lock_d/2 + 1, 0])
+       cube([8, 4, 1.5]);
+    }
+    translate([-200, lock_0y + lock_d/2 + 0.1])
+      cube([400, 400, total_h-20]);
+  }
+}
+
 //MainPlan();
 //ClipElevationPositive();
 //ClipElevation();
 //MainPositive();
 //%ThroughHoles();
+//TestTopEdge();
+//TestClipBoltHole();
 
-Bracket();
+//Bracket();