summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2016-01-06 22:33:26 (UTC)
committer Michael Krelin <hacker@klever.net>2016-01-06 22:33:26 (UTC)
commit70221c34a5021b3a63aa7fe7a1e925404a36cc95 (patch) (side-by-side diff)
tree3b95fb6effe03e653893241695b27c77787d593b
parent286fd5e24710cc535cfd07888cdcef02af466d30 (diff)
downloadredelta-70221c34a5021b3a63aa7fe7a1e925404a36cc95.zip
redelta-70221c34a5021b3a63aa7fe7a1e925404a36cc95.tar.gz
redelta-70221c34a5021b3a63aa7fe7a1e925404a36cc95.tar.bz2
reference axes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--delta.jscad10
1 files changed, 10 insertions, 0 deletions
diff --git a/delta.jscad b/delta.jscad
index 0ef25e3..baa977d 100644
--- a/delta.jscad
+++ b/delta.jscad
@@ -514,24 +514,34 @@ 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;
}
};
+
+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);
}
function main(params) {
return P(E2020.extrusion({l:40})).setColor(0.7,0.7,0.7,0.7);
}
function _main(params) {
var e = EFFECTOR.effector();
var hs = E3DV6.heatsink();
hs = hs.connectTo(hs.properties.grove_connector,e.properties.grove_connector,false,0);