author | Michael Krelin <hacker@klever.net> | 2016-01-06 22:34:41 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2016-01-06 22:34:41 (UTC) |
commit | 6be14d3c81d6ce000ed7964c51adf99049e4e19f (patch) (side-by-side diff) | |
tree | 4be4ecda4fc2b06ee1b81b45da76e6de77ab952b | |
parent | a7f7cd089e5a0e29b6c6e25120a6e9ce83d830f3 (diff) | |
download | redelta-6be14d3c81d6ce000ed7964c51adf99049e4e19f.zip redelta-6be14d3c81d6ce000ed7964c51adf99049e4e19f.tar.gz redelta-6be14d3c81d6ce000ed7964c51adf99049e4e19f.tar.bz2 |
three winds
-rw-r--r-- | delta.jscad | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/delta.jscad b/delta.jscad index c134c29..9883003 100644 --- a/delta.jscad +++ b/delta.jscad @@ -540,24 +540,25 @@ var E2020 = { [ -ix, iy ], [ -e.T.width/2,e.outer/2-e.thickness-e.T.thickness], [ -e.T.width/2,e.outer/2-e.thickness], [ -e.slot_width/2,e.outer/2-e.thickness], [ -e.slot_width/2,e.outer/2], ]).extrude({offset:[0,0,l+thickness]}).rotateZ(w); })); rv.properties.P = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]); return rv; } }; +var THREEWINDS = [0,120,240]; function refaxes(o) { if(!o) o = {}; var l = o.l||20, g = o.g||0.7; return union([ CSG.cylinder({start:[0,0,0],end:[l,0,0]}).setColor([1,0,0,g]), CSG.cylinder({start:[0,0,0],end:[0,l,0]}).setColor([0,1,0,g]), CSG.cylinder({start:[0,0,0],end:[0,0,l]}).setColor([0,0,1,g]) ]); } function P(x) { return x.connectTo(x.properties.P,new CSG.Connector([0,0,0],[0,0,1],[1,0,0]), false, 0); |