chiark / gitweb /
filamentspool: FilamentGuideArm: Break out FilamentGuideArmStop (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 24 Jan 2016 15:51:22 +0000 (15:51 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 24 Jan 2016 15:51:22 +0000 (15:51 +0000)
filamentspool.scad

index 30fb27f..50f00a6 100644 (file)
@@ -771,6 +771,13 @@ guidearm_base_z0 = -(guidearm_totallen - guidearm_armcorelen);
 guidearm_realbendlen = min(guidearm_bendlen,
                           guidearm_totallen - guidearm_screwplateth - 0.1);
 
+module FilamentGuideArmStop(h){
+  for (ts=[-1,+1]) {
+    translate([ts * guidearm_hookprotr, 0,0])
+      cylinder(r=guidearm_armdia/2, h);
+  }
+}
+
 module FilamentGuideArmShaftPositive(){
   r = guidearm_armdia/2;
 
@@ -778,10 +785,7 @@ module FilamentGuideArmShaftPositive(){
     cylinder(r=r, h= guidearm_totallen);
   translate([0,0, guidearm_armcorelen]){
     hull(){
-      for (ts=[-1,+1]) {
-       translate([ts * guidearm_hookprotr, 0,0])
-         cylinder(r=r, h=guidearm_hookprotrflat);
-      }
+      FilamentGuideArmStop(guidearm_hookprotrflat);
       translate([0,0, guidearm_hookprotr/guidearm_hookslope])
        cylinder(r=r, h=guidearm_hookprotrflat);
     }