chiark / gitweb /
filamentspool: Break out base_xyz in StorageArm
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 16 Feb 2016 21:31:34 +0000 (21:31 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 16 Feb 2016 21:31:34 +0000 (21:31 +0000)
filamentspool.scad

index 96673c5..114f3d5 100644 (file)
@@ -763,6 +763,7 @@ module StorageArmAtMountingHoles(){
 
 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,
@@ -775,7 +776,7 @@ module StorageArmRight(){ ////toplevel
   difference(){
     union(){
       hull(){
-       translate([-storarm_base_d, -storarm_base_off_y, storarm_base_w])
+       translate(base_xyz)
          rotate([0,90,0])
          linear_extrude(height=storarm_base_mind)
          StorageArmBaseTemplate();