chiark / gitweb /
lock-inframe-bracket: Improve overhang
[reprap-play.git] / lock-inframe-bracket.scad
index b890609290ef7a877e0b8a9f37bb55287da1b84a..0fa9d5ce26b2f4c5ab8fead1a27e89458fbe1352 100644 (file)
@@ -17,12 +17,20 @@ clip_th = 2.5;
 clip_gap = 2.5;
 clip_d = 22.0;
 
+mountscrew_dia = 4 + 0.5;
+clipbolt_dia = 5 + 0.5;
+
+backflange_th = 3.5;
+
+$fn=50;
+
 // calculated
 
 front_th = main_th;
+tube_th = main_th;
 
-tube_or = tube_dia/2 + main_th;
-back_ohw = back_gap/2 + main_th;
+tube_or = tube_dia/2 + tube_th;
+back_ohw = back_gap/2 + backflange_th;
 backflange_ymin = tube_or+backflange_d;
 
 lock_0y = tube_dia/2 + lock_d/2 + midweb_d;
@@ -67,7 +75,11 @@ clip_ymin = cliprecess_ymax - total_h;
 clip_ogap = clip_gap + clip_th*2;
 
 module ClipElevationPositive(){
-  oval(lockshaft_or);
+  hull(){
+    oval(lockshaft_or);
+    translate([0, -lockshaft_or[1] * sqrt(2)])
+      square(center=true, 0.5);
+  }
   translate([-lockshaft_or[0], 0])
     square([lockshaft_or[0]*2, cliprecess_ymax]);
   translate([-clip_ogap/2, 0]) mirror([0,1]) square([clip_ogap, -clip_ymin]);
@@ -98,6 +110,24 @@ module ExtrudeClipElevation(extra=0){
     children(0);
 }
 
+module ThroughHole(r, y, z) {
+  translate([-50, y, z])
+    rotate([0, 90, 0])
+    cylinder(r=r, h=100, $fn=20);
+}
+
+module ThroughHoles(){
+  for (z=[ 1/4, 3/4 ]) {
+    ThroughHole( mountscrew_dia/2,
+                -tube_or -0.5*backflange_d,
+                total_h * z );
+  }
+
+  ThroughHole( clipbolt_dia/2,
+              lock_0y + lock_d/2 + clip_d/2,
+              total_h - cliprecess_h - clip_th - clip_d/2 );
+}
+
 module MainPositive(){
   difference(){
     union(){
@@ -108,6 +138,17 @@ module MainPositive(){
   }
 }
 
+module Bracket(){
+  difference(){
+    MainPositive();
+    ThroughHoles();
+  }
+}
+
 //MainPlan();
+//ClipElevationPositive();
 //ClipElevation();
-MainPositive();
+//MainPositive();
+//%ThroughHoles();
+
+Bracket();