z-axis: skip generating fillet if bottom is long
authorClinton Ebadi <clinton@unknownlamer.org>
Sat, 9 Jul 2016 07:08:55 +0000 (03:08 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Sat, 9 Jul 2016 07:08:55 +0000 (03:08 -0400)
Fillet is not useful if bottom_x is further out than the linear rod
hole. Needed to avoid interference with leadscrew bearing holder.

box_frame/z-axis.scad

index e02d658..30df7a7 100644 (file)
@@ -85,14 +85,16 @@ module zrodholder(thickness=(frame_type == frame_single ? 14 : 15), bottom_thick
 
                    //hole for Z axis is thru this
                     cube_fillet([xlen + zaxis_delta_x, bottom_y, bottom_thickness], vertical=[3, 0, 0, 3]);
-                    translate([bottom_x, bottom_y, 0]) {
-                        //large fillet that makes it stiffer by lot. Thanks to Marcus Wolschon
-                        difference(){
-                            cube([holder_inner_r, holder_inner_r, bottom_thickness]);
-                            translate([holder_inner_r, holder_inner_r, -0.5])
-                                cylinder(r=holder_inner_r, h=bottom_thickness + 1);
-                        }
-                    }
+                   if (bottom_x < board_to_xz_distance - z_delta + zaxis_delta_y) {
+                        translate([bottom_x, bottom_y, 0]) {
+                             //large fillet that makes it stiffer by lot. Thanks to Marcus Wolschon
+                             difference(){
+                                  cube([holder_inner_r, holder_inner_r, bottom_thickness]);
+                                  translate([holder_inner_r, holder_inner_r, -0.5])
+                                       cylinder(r=holder_inner_r, h=bottom_thickness + 1);
+                             }
+                        }
+                   }
                    if (frame_type != frame_alu) {
                         translate([5, 5, 0]) {
                              difference(){