chiark / gitweb /
filamentspool: FilamentGuideArm: Break out guidearm_slopelen (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 24 Jan 2016 23:10:11 +0000 (23:10 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 24 Jan 2016 23:10:11 +0000 (23:10 +0000)
filamentspool.scad

index 57af02e..212f617 100644 (file)
@@ -774,6 +774,7 @@ guidearm_base_z0 = -(guidearm_totallen - guidearm_armcorelen);
 
 guidearm_realbendlen = min(guidearm_bendlen,
                           guidearm_totallen - guidearm_screwplateth - 0.1);
+guidearm_slopelen = guidearm_hookprotr/guidearm_hookslope;
 
 module FilamentGuideArmStop(h){
   for (ts=[-1,+1]) {
@@ -790,7 +791,7 @@ module FilamentGuideArmShaftPositive(){
   translate([0,0, guidearm_armcorelen]){
     hull(){
       FilamentGuideArmStop(guidearm_hookprotrflat);
-      translate([0,0, guidearm_hookprotr/guidearm_hookslope])
+      translate([0,0, guidearm_slopelen])
        cylinder(r=r, h=guidearm_hookprotrflat, $fn=80);
     }
   }