chiark / gitweb /
lock-inframe-bracket: fix syntax error
[reprap-play.git] / lock-inframe-bracket.scad
index 5fe3daa986a3a4aa73decbf22ddf899eec0b6143..c7cc21e06f54d00e37731cf878ee11e1ae5b4da8 100644 (file)
@@ -12,8 +12,8 @@ lockshaft_dia = 14.35;
 cliprecess_h = 16;
 total_h = 45;
 
-back_gap = 11;
-main_th = 2.5;
+back_gap = 12.5;
+main_th = 2.75;
 tube_th = 2.25;
 
 midweb_d = 3;
@@ -30,6 +30,8 @@ $fn=50;
 
 join_cr = 7;
 
+tube_rear_extra_th = 1;
+
 // calculated
 
 lockshaft_r = [1, 1] * lockshaft_dia / 2;
@@ -57,6 +59,7 @@ module oval(sz){ // sz[0] > sz[1]
 }
 
 module JoinCircs(jr){
+  // http://mathworld.wolfram.com/Circle-CircleIntersection.html
   R = tube_or + join_cr;
   r = lock_or[1] + join_cr;
   d = dist2d( [0,0], lock_0 );
@@ -78,7 +81,11 @@ module JoinCircs(jr){
 module MainPlan(){
   difference(){
     union(){
-      circle(r = tube_or);
+      hull(){
+       for (t=[0, tube_rear_extra_th])
+         translate([0, -t])
+           circle(r = tube_or);
+      }
       translate([-back_ohw,0]) mirror([0,1])
        square([back_ohw*2, backflange_ymin]);