Remove polyhole
authorVáclav 'Ax' Hůla <axtheb@gmail.com>
Mon, 17 Jun 2013 08:33:03 +0000 (10:33 +0200)
committerVáclav 'Ax' Hůla <axtheb@gmail.com>
Mon, 17 Jun 2013 08:33:03 +0000 (10:33 +0200)
box_frame/extras/calibrate.scad
box_frame/inc/functions.scad
box_frame/z-axis.scad

index ff0554b..13456ef 100644 (file)
@@ -31,7 +31,7 @@ intersection() {
         //x smooth rod
         translate([0, -11, 5 + bushing_xy[0]]) rotate([-90, 0, 0]) pushfit_rod(bushing_xy[0] * 2 + 0.2, 50);
         //z smooth rod
-        translate([0, 18, -1]) cylinder_poly(h=20, r=bushing_z[0] + single_wall_width / 4);
+        translate([0, 18, -1]) cylinder(h=20, r=bushing_z[0] + single_wall_width / 4);
 
         //screw
         translate([0, -20, 10]) rotate([0, -90, 0]) screw(head_drop=7, h=122, r_head=4.5);
index 40ee477..50047a2 100644 (file)
@@ -18,18 +18,6 @@ module nut(d,h,horizontal=true){
     }
 }
 
-// Based on nophead research
-module polyhole(d, h, center=false) {
-    n = max(round(2 * d),3);
-    rotate([0,0,180])
-        cylinder(h = h, r = (d / 2) / cos (180 / n), $fn = n);
-}
-
-// make it interchangeable between this and cylinder
-module cylinder_poly(r, h, center=false){
-    polyhole(d=r*2, h=h, center=center);
-}
-
 module fillet(radius, height=100, $fn=0) {
     //this creates acutal fillet
     translate([-radius, -radius, -height / 2 - 0.02]) difference() {
index ce95e79..48ac17a 100644 (file)
@@ -72,7 +72,7 @@ module zrodholder(thickness=(i_am_box == 0 ? 14 : 15), bottom_thickness=5, ylen=
                         cylinder(h=bottom_thickness / 2, r=(bushing_z[0] + 5 * single_wall_width));
                 }
                 //smooth rod hole
-                translate([board_to_xz_distance - z_delta, 9, -1]) cylinder_poly(h=board_thickness+20, r=bushing_z[0] + single_wall_width / 4);
+                translate([board_to_xz_distance - z_delta, 9, -1]) cylinder(h=board_thickness+20, r=bushing_z[0] + single_wall_width / 4);
                 //inside rouned corner
                 translate([0, 5, -1]) cylinder(r=0.8, h=100, $fn=8);
                 //side screw