chiark / gitweb /
filamentspool: StorageArm: swap last two args to StorageArmDiagPart (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 16 Feb 2016 21:55:23 +0000 (21:55 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 16 Feb 2016 21:55:23 +0000 (21:55 +0000)
filamentspool.scad

index be8104d..0aca782 100644 (file)
@@ -725,7 +725,7 @@ module StorageArmDiagPartSide(xmin, xmax){
   }
 }
 
-module StorageArmDiagPart(xmin, xmax, shear, adjbot){
+module StorageArmDiagPart(xmin, xmax, adjbot, shear){
   hull(){
     StorageArmDiagPartSide(xmin,xmax);
 
@@ -765,13 +765,13 @@ module StorageArmRight(){ ////toplevel
   shear = storarm_hookheight / (storarm_mainlen/2);
   base_xyz = [-storarm_base_d, -storarm_base_off_y, storarm_base_w];
 
-  StorageArmDiagPart(-1, storarm_mainlen/2+1, shear, 0);
-  StorageArmDiagPart(storarm_mainlen/2-1, storarm_mainlen+1, shear/2,
-                    storarm_hookheight/2);
+  StorageArmDiagPart(-1, storarm_mainlen/2+1, 0, shear);
+  StorageArmDiagPart(storarm_mainlen/2-1, storarm_mainlen+1,
+                    storarm_hookheight/2, shear/2);
 
   translate([0, storarm_hookheight, 0])
     StorageArmDiagPart(storarm_mainlen, storarm_totlen,
-                      shear/2, -storarm_hookheight/2);
+                      -storarm_hookheight/2, shear/2);
 
   difference(){
     union(){
@@ -780,7 +780,7 @@ module StorageArmRight(){ ////toplevel
          rotate([0,90,0])
          linear_extrude(height=storarm_base_mind)
          StorageArmBaseTemplate();
-       StorageArmDiagPart(-1, 0, shear, 0);
+       StorageArmDiagPart(-1, 0, 0, shear);
       }
       StorageArmAtMountingHoles(){
        cylinder(r= storarm_screw_hole_head/2,