chiark / gitweb /
air-hockey-puck: wip
[reprap-play.git] / lock-inframe-bracket.scad
index c8404e10ffeac7b34126f4798afceffc84951b3c..bfa6e39699b9a8297c509adaf1ffb3143e294c47 100644 (file)
@@ -5,7 +5,7 @@
 
 include <funcs.scad>
 
-tube_dia = 27.5 + 1.625;
+tube_dia = 27.5 + 1.625 + 1.32;
 lock_w = 42.5 + 0.5;
 lock_d = 28.0 + 0.5;
 main_h = 45.0;
@@ -14,11 +14,11 @@ backflange_hole_dy = -1;
 lockshaft_dia = 14.35;
 
 cliprecess_h = 16;
-total_h = 45;
+total_h = 75;
 
 back_gap = 12.5;
-main_th = 3.50;
-tube_th = 4.00;
+main_th = 4.50;
+tube_th = 5.50;
 
 midweb_d = 3;
 clip_th = 3.5;
@@ -42,7 +42,7 @@ divide_shaft_w = 1.75;
 divide_shaft_l = 1.5;
 divide_head_dx = 1.75;
 divide_head_th = 1.5;
-divide_gap = 0.50;
+divide_gap = 0.75;
 
 divide_angle = 26;
 divide_fudge_r = 4.75;
@@ -202,7 +202,7 @@ module MainPlan(){ ////toplevel
 
 lockshaft_or = lockshaft_r + [clip_th,clip_th];
 cliprecess_ymax = cliprecess_h - lockshaft_r[1];
-clip_ymin = cliprecess_ymax - total_h;
+clip_ymin = cliprecess_ymax - main_h;
 clip_ogap = clip_gap + clip_th*2;
 
 module ClipElevationPositive(){
@@ -262,9 +262,27 @@ module ThroughHoles(){
 
   ThroughHole( clipbolt_dia/2,
               lock_0y + lock_d/2 + clip_d/2 + front_th/2,
-              total_h - cliprecess_h - clip_th - clip_d/2 );
+              main_h - cliprecess_h - clip_th - clip_d/2 );
 }
 
+module SlopeTrimElevation(){
+  far_corner_nom = [ lock_0y + lock_d/2, main_h ];
+  round_centre = far_corner_nom + lock_d/2 * [0,1];
+  hull(){
+    translate(round_centre) circle(r= lock_d/2);
+    translate([ lock_0y - lock_d/2, total_h ]) square([ lock_d + clip_d, 1 ]);
+    translate(far_corner_nom) square([clip_d*2, 1]);
+  }
+}
+
+module SlopeTrim(){
+  rotate([0,90,0])
+    rotate([0,0,90])
+    translate([0,0, -lock_w])
+    linear_extrude(convexity=100, height=lock_w*2)
+    SlopeTrimElevation();
+}
+    
 module MainPositive(){
   difference(){
     union(){
@@ -279,6 +297,7 @@ module Bracket(){ ////toplevel
   difference(){
     MainPositive();
     ThroughHoles();
+    SlopeTrim();
   }
 }