chiark / gitweb /
air-hockey-puck: wip
[reprap-play.git] / powerbank-bike-clamp.scad
index 18b3adbd2f3869056f8f6993e490242df6463304..2a755a878f8186848eb3e1bf4f6dea7dcdcc394d 100644 (file)
@@ -27,6 +27,8 @@ clamp_min_width = 20;
 
 clamp_gap = 2;
 
+corner_rounding_r = 10;
+
 lower_th = 1;
 
 overlap_l = 0.1;
@@ -147,23 +149,28 @@ module TubeClampLeft() { ////toplevel
     TubeClampLeftPlan();
 }
 
-module TubeClampRightPlan(){
+module TubeClampRightPlan(){ ////toplevel
   difference(){
-    union(){
-      rectfromto([ clamp_gap/2,                   bot_y ],
-                [ clamp_gap/2 + behind_knob_th,  0     ]);
-      intersection(){
-       circle(r= main_r);
-       union(){
-         rectfromto([0,0],
-                     main_r *  [5,5]);
-         rectfromto([ clamp_gap/2, main_r*5 ],
-                     main_r * [2,-5]);
+    // It broke at the inside corner, round these a bit
+    offset(r=-corner_rounding_r)
+    offset(r=+corner_rounding_r)
+    difference(){
+      union(){
+       rectfromto([ clamp_gap/2,                   bot_y ],
+                  [ clamp_gap/2 + behind_knob_th,  0     ]);
+       intersection(){
+         circle(r= main_r); // maybe split off from main_r and increase?
+         union(){
+           rectfromto([0,0],
+                      main_r *  [5,5]);
+           rectfromto([ clamp_gap/2, main_r*5 ],
+                      main_r * [2,-5]);
+         }
        }
+       HingeBodyPlan();
       }
-      HingeBodyPlan();
+      TubePlan();
     }
-    TubePlan();
     HingePinPlan();
   }
 }