chiark / gitweb /
screw-recess-test: abolish blockxy (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 11 Feb 2015 21:36:07 +0000 (21:36 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 11 Feb 2015 21:37:24 +0000 (21:37 +0000)
screw-recess-test.scad

index 576c216..50bcd5a 100644 (file)
@@ -29,13 +29,11 @@ module RecessedScrewCutout(shaftdia, recessdia, shaftlen,
   // pass recessdepth_arg=-1 for the default for flat heads
   recessdepth = RecessedScrewCutout_recessdepth(recessdia, recessdepth_arg);
   recesstopz = RecessedScrewCutout_totaldepth(recessdia, recessdepth_arg);
-  xblocky = shaftdia + 0.1;
 
   translate([0,0,-zbelow]) cylinder(r=shaftdia/2, h=shaftlen+zbelow, $fn=20);
   RecessScrewCutout_RecessCylinder(recessdia,zbelow, recessdepth);
   intersection(){
-    translate([-recessdia*1.5, -xblocky/2, -zbelow])
-      cube([recessdia*3, xblocky, recesstopz+2+zbelow]);
+    cube([recessdia + 1, shaftdia + 0.1, recesstopz*2 + 1], center=true);
     translate([0, -recessdia, recesstopz])
       rotate([0,135,0]) cube([recessdia, recessdia*2, 10]);
     RecessScrewCutout_RecessCylinder(recessdia,zbelow, recesstopz+1);