make number of segments configurable on small holes
authorJoachim Glauche <webmaster@joaz.de>
Mon, 13 May 2013 16:34:23 +0000 (18:34 +0200)
committerJoachim Glauche <webmaster@joaz.de>
Mon, 13 May 2013 16:34:23 +0000 (18:34 +0200)
box_frame/configuration.scad.dist
box_frame/inc/functions.scad
box_frame/x-end.scad

index f41f559..35ebabf 100644 (file)
@@ -95,6 +95,9 @@ y_threaded_rod_long_r = 5.4;
 // Thickness of the XZ plate board. Leave at 12 for single plate
 board_thickness = 12;
 
+// segments of small holes. some poeple claim that a low value makes them easier to print.
+small_hole_segments=7;
+
 // END of custom settings
 
 
index 7b61a41..1eaed2f 100644 (file)
@@ -147,7 +147,7 @@ function idler_assy_r_outer(idler_bearing) = (idler_bearing[0] / 2) + (idler_bea
 
 module idler_assy(idler_bearing = [22, 7, 8, 1]) {
 
-    translate([0,0,-1]) cylinder(h = 120, r=(idler_bearing[2] + 1) / 2, $fn=7, center=true);
+    translate([0,0,-1]) cylinder(h = 120, r=(idler_bearing[2] + 1) / 2, $fn=small_hole_segments, center=true);
     //bearing shadow
     %cylinder(h = idler_bearing[1], r=idler_bearing[0]/2, center=true);
 
index 285e6ca..c8a5d06 100644 (file)
@@ -43,7 +43,7 @@ module x_end_motor(){
                 // belt hole
                 translate([-30, 11, -0.25]) cube([11, 36, 24], center = true);
                 //motor mounting holes
-                translate([-28.5, 0, 0]) rotate([0, 0, 0])  rotate([0, 90, 0]) nema17(places=[1, 1, 0, 1], holes=true, shadow=5, $fn=7, h=8);
+                translate([-28.5, 0, 0]) rotate([0, 0, 0])  rotate([0, 90, 0]) nema17(places=[1, 1, 0, 1], holes=true, shadow=5, $fn=small_hole_segments, h=8);
             }
         }
         //smooth rod caps
@@ -84,7 +84,7 @@ module x_end_base(vfillet=[3, 3, 3, 3], thru=true, len=40, offset=0){
         translate([0, 0, 5 - bushing_xy[0]]) {  // m5 nut insert
             translate([0, 17, 0]) rotate([0, 0, 10]){
                 //rod
-                translate([0, 0, -1]) cylinder(h=(4.1 / 2 + 5), r=2.75);
+                translate([0, 0, -1]) cylinder(h=(4.1 / 2 + 5), r=2.75, $fn=32);
                 //nut
                 translate([0, 0, 9]) cylinder(r=4.6, h=14.1, center = true, $fn=6);
 
@@ -100,7 +100,7 @@ module x_end_idler(){
         x_end_base(len=45 + z_delta / 3, offset=-10 - z_delta / 3);
         // idler hole
         translate([-20, -15 - z_delta / 2, 30]) {
-            rotate([0, 90, 0]) cylinder(r=m4_diameter / 2, h=33, center=true, $fn=7);
+            rotate([0, 90, 0]) cylinder(r=m4_diameter / 2, h=33, center=true, $fn=small_hole_segments);
             translate([15 - 2 * single_wall_width, 0, 0]) rotate([90, 0, 90]) cylinder(r=m4_nut_diameter_horizontal / 2, h=3, $fn=6);
 
         }