chiark / gitweb /
filamentspool axle undo debug
[reprap-play.git] / filamentspool.scad
index 3d5344c72e1ded0ff2409e6cdbd9770d6978e46c..873f87c39e14e7e7d696c48ccc16f8988738367d 100644 (file)
@@ -261,7 +261,6 @@ module AxlePin(){ ////toplevel
 module Axle(){ ////toplevel
   pillarswidth = DoveClipPairSane_width(towerclipcount);
 
-if(0)
   rotate([0,0, -( axleaxlefudgebend + atan(slop/hubaxlelen) ) ])
   translate([-axlehorizoffset, -axlevertheight, 0]) {
     rotate([0,0,-axletowerfudgebend])
@@ -286,21 +285,25 @@ if(0)
        union(){
          translate([-1, 0, 0])
            rotate([0,90,0])
-           cylinder(r = axlerad, h = 1 + axleclearlen + 3 + 2);
+           cylinder($fn=60,
+                    r = axlerad,
+                    h = 1 + axleclearlen + axlepinrad*2 + 2);
          mirror([1,0,0]) rotate([0,90,0])
-           cylinder(r = washerrad, h = 3);
-if(0)
+           cylinder(r = axlerad*1.75, h = 3);
          intersection(){
-           mirror([1,0,0]) rotate([0,90,0])
-             cylinder(r = towercliph - shift,
-                      h = pillarswidth/2 + axlehorizoffset);
+           mirror([1,0,0])
+             translate([axlehorizoffset - pillarswidth/2, 0, 0])
+             rotate([0,90,0])
+             cylinder($fn=60,
+                      r = towercliph - shift,
+                      h = pillarswidth);
            translate([-50, -joinbelowallow, -50])
              cube([100, joinbelowallow+50, 100]);
          }
        }
        rotate([90,0,0])
        translate([axleclearlen + axlepinrad/2, 0, -25])
-         cylinder(r=axlepinrad, h=50);
+         cylinder(r = axlepinrad + slop, h=50);
       }
     }
     translate([-50,-50,0]) cube([100,100,100]);