chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9042389
)
screw-recess-test: abolish blockxy (nfc)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 11 Feb 2015 21:36:07 +0000
(21:36 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 11 Feb 2015 21:37:24 +0000
(21:37 +0000)
screw-recess-test.scad
patch
|
blob
|
history
diff --git
a/screw-recess-test.scad
b/screw-recess-test.scad
index 576c21682b508c0749edfa93a63211b30ff0121a..50bcd5aee114c3390b032bf0f88dd2cad97455e4 100644
(file)
--- a/
screw-recess-test.scad
+++ b/
screw-recess-test.scad
@@
-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);
// 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([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);
translate([0, -recessdia, recesstopz])
rotate([0,135,0]) cube([recessdia, recessdia*2, 10]);
RecessScrewCutout_RecessCylinder(recessdia,zbelow, recesstopz+1);