chiark / gitweb /
flyscreen-handle: from v3: break out Ribbles (nfc)
[reprap-play.git] / lock-inframe-bracket.scad
index 1df0c2a082a58da914de885d3f2c001b2aa71d54..6df5733e8e1a26d8dc25a9fdb4dd5bba10979ad7 100644 (file)
@@ -1,24 +1,26 @@
 // -*- 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;
 
-back_gap = 7;
+back_gap = 10;
 main_th = 2.5;
+tube_th = 2.25;
+
 midweb_d = 3;
 clip_th = 3.5;
 clip_gap = 2.5;
 clip_d = 22.0;
 
 mountscrew_dia = 4 + 0.5;
-clipbolt_dia = 5 + 0.5;
+clipbolt_dia = 5 + 0.1;
 
 backflange_th = 3.5;
 
@@ -28,7 +30,6 @@ $fn=50;
 
 lockshaft_r = [1, 1] * lockshaft_dia / 2;
 front_th = main_th;
-tube_th = main_th;
 
 tube_or = tube_dia/2 + tube_th;
 back_ohw = back_gap/2 + backflange_th;
@@ -139,17 +140,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();