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:
a507c8d
)
filamenttrestle plug hole height adjust right directions
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 10 Oct 2012 23:50:45 +0000
(
00:50
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 10 Oct 2012 23:50:45 +0000
(
00:50
+0100)
filamenttrestle.scad
patch
|
blob
|
history
diff --git
a/filamenttrestle.scad
b/filamenttrestle.scad
index 1193e4a219f67c9a078516681a3f67fc4b3c0834..d0b0ccb6bb8b00cfeed76bd3d78463bd60758f11 100644
(file)
--- a/
filamenttrestle.scad
+++ b/
filamenttrestle.scad
@@
-32,10
+32,12
@@
pindh = 1.0;
pindwidth = 1.0;
module Plug(d=0){
+ dw = d;
+ dh = d;
a = atan(plugslope);
-
tdx = d *
cos(a);
- tdy = d
* sin(a)
;
-
bdx = d / cos(a)
;
+
bdx = dw /
cos(a);
+ tdy = d
h
;
+
tdx = bdx + dh * plugslope
;
translate([-d,0,0]) rotate([90,0,90]) linear_extrude(height=plugl+0.1+d*2){
polygon([[-(plugwmin/2 + bdx), 0],
[-(plugwmax/2 + tdx), plugh + tdy],