chiark / gitweb /
filamentspool: Storarm: Mounting hole positions
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 30 Dec 2015 18:44:53 +0000 (18:44 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 30 Dec 2015 18:44:53 +0000 (18:44 +0000)
filamentspool.scad

index 5b68cb21e3bfa5abd058cbf3bc0fe98a33307e96..a7f2abb8ac28124569ea8117b331aad34c61876d 100644 (file)
@@ -465,6 +465,10 @@ storarm_base_mind = 2;
 
 storarm_cope_hubaxle_mk1 = true;
 
+storarm_screw_hole = 4;
+storarm_screw_hole_slop = 0.5;
+storarm_besides_hole = 4;
+
 // calculated
 
 storarm_axlerad = hubaxlerad - storarm_axleslop;
@@ -506,6 +510,24 @@ module StorageArmBaseTemplate(){
   square([storarm_base_w, storarm_base_h]);
 }
 
+module StorageArmAtMountingHoles(){
+  bes = storarm_besides_hole + storarm_screw_hole;
+
+  x0 = bes;
+  x1 = storarm_base_w-bes;
+  y1 = storarm_base_h - bes;
+  y0 = bes;
+
+  for (pos=[ [x0, y1],
+            [x1, y1],
+            [x1, y0] ]) {
+    rotate([0,90,0])
+      translate([pos[0] - storarm_base_w,
+                pos[1] - storarm_base_off_y, -storarm_base_d])
+      children();
+  }
+}
+
 module StorageArm(){ ////toplevel
   shear = storarm_hookheight / (storarm_mainlen/2);
 
@@ -526,6 +548,9 @@ module StorageArm(){ ////toplevel
          StorageArmBaseTemplate();
        StorageArmDiagPart(-1, 0, shear, 0);
       }
+      StorageArmAtMountingHoles(){
+       cylinder(r=1, h=10);
+      }
     }
   }
 }