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:
74b59b4
)
filamenttrestle adjust block hole
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 11 Oct 2012 00:42:49 +0000
(
01:42
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 11 Oct 2012 00:42:49 +0000
(
01:42
+0100)
filamenttrestle.scad
patch
|
blob
|
history
diff --git
a/filamenttrestle.scad
b/filamenttrestle.scad
index c45e8af5472f4e58201ee466c5b970a9019b49aa..77258767de9020a5d24258e536070db6339464a5 100644
(file)
--- a/
filamenttrestle.scad
+++ b/
filamenttrestle.scad
@@
-24,7
+24,7
@@
trestlebaseh = 10;
trestleplugd = 1;
topblockthick = 4;
trestleplugd = 1;
topblockthick = 4;
-topblockbasedepth =
4
;
+topblockbasedepth =
5
;
pinbasew = 5.0;
pinminh = 1.5;
pinbasew = 5.0;
pinminh = 1.5;
@@
-38,15
+38,17
@@
pinstraightlen = 10;
module Plug(d=0){
dw = d;
dh = d;
module Plug(d=0){
dw = d;
dh = d;
+ dhb = d*2;
a = atan(plugslope);
a = atan(plugslope);
- bdx = dw / cos(a);
+ bdy = -dhb;
+ bdx = dw / cos(a) + bdy * plugslope;
tdy = dh;
tdy = dh;
- tdx = bdx +
dh
* plugslope;
+ tdx = bdx +
tdy
* plugslope;
translate([-d,0,0]) rotate([90,0,90]) linear_extrude(height=plugl+0.1+d*2){
translate([-d,0,0]) rotate([90,0,90]) linear_extrude(height=plugl+0.1+d*2){
- polygon([[-(plugwmin/2 + bdx),
0
],
+ polygon([[-(plugwmin/2 + bdx),
bdy
],
[-(plugwmax/2 + tdx), plugh + tdy],
[+(plugwmax/2 + tdx), plugh + tdy],
[-(plugwmax/2 + tdx), plugh + tdy],
[+(plugwmax/2 + tdx), plugh + tdy],
- [+(plugwmin/2 + bdx),
0
]]);
+ [+(plugwmin/2 + bdx),
bdy
]]);
}
}
}
}