chiark / gitweb /
lock-inframe-bracket: Fix front hole position
[reprap-play.git] / lock-inframe-bracket.scad
index 3d368627b70f07359d433dd5816867a24a84a43c..afe3beb3d1422ceb34e9b8f7b6b72e4f2d76b591 100644 (file)
@@ -20,12 +20,17 @@ 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;
@@ -70,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]);
@@ -115,7 +124,7 @@ module ThroughHoles(){
   }
 
   ThroughHole( clipbolt_dia/2,
-              lock_0y + lock_d/2 + clip_d/2,
+              lock_0y + lock_d/2 + clip_d/2 + front_th/2,
               total_h - cliprecess_h - clip_th - clip_d/2 );
 }
 
@@ -129,7 +138,17 @@ module MainPositive(){
   }
 }
 
+module Bracket(){
+  difference(){
+    MainPositive();
+    ThroughHoles();
+  }
+}
+
 //MainPlan();
+//ClipElevationPositive();
 //ClipElevation();
-MainPositive();
-%ThroughHoles();
+//MainPositive();
+//%ThroughHoles();
+
+Bracket();