chiark / gitweb /
anglepoise-neck: ArmPart pin hole
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Jun 2013 20:41:39 +0000 (21:41 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Jun 2013 20:41:39 +0000 (21:41 +0100)
anglepoise-neck.scad

index afe75a1..72d16e4 100644 (file)
@@ -1,9 +1,10 @@
 // -*- C -*-
 
 arm_depth = 25;
-arm_pindepth = (16.15 + 18.00)/2;
 arm_innerwidth = 9.60 - 0.50;
 arm_innerheight = 8.90 - 0.50;
+arm_pin_depth = (16.15 + 18.00)/2;
+arm_pin_dia = 1.5;
 
 armpart_hex_rad = 15;
 armpart_hex_thick = 8;
@@ -30,9 +31,13 @@ hingenut_depth_y =
   - hingenut_depth;
 
 module ArmPart(){ ////toplevel
-  translate([-arm_innerwidth/2, 1, 0])
-    mirror([0,-1,0])
-    cube([arm_innerwidth, arm_depth+1, arm_innerheight]);
+  difference(){
+    translate([-arm_innerwidth/2, 1, 0])
+      mirror([0,-1,0])
+      cube([arm_innerwidth, arm_depth+1, arm_innerheight]);
+    translate([0, -arm_pin_depth, -50])
+      cylinder(r=arm_pin_dia/2, h=100);
+  }
   rotate([90,0,180])
     linear_extrude(height=armpart_hex_thick)
     for (mir=[0,1])
@@ -77,4 +82,4 @@ module HeadPart(){ ////toplevel
 }
 
 //ArmPart();
-HeadPart();
+//HeadPart();