summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2016-01-06 21:41:54 (UTC)
committer Michael Krelin <hacker@klever.net>2016-01-06 21:41:54 (UTC)
commit286fd5e24710cc535cfd07888cdcef02af466d30 (patch) (side-by-side diff)
tree3a92d98e20e3acef89d1c31e43c56a14c5203e8e
parentadcd18d64550c932814ed6c37c346e781920e640 (diff)
downloadredelta-286fd5e24710cc535cfd07888cdcef02af466d30.zip
redelta-286fd5e24710cc535cfd07888cdcef02af466d30.tar.gz
redelta-286fd5e24710cc535cfd07888cdcef02af466d30.tar.bz2
tesing stuff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--delta.jscad9
1 files changed, 9 insertions, 0 deletions
diff --git a/delta.jscad b/delta.jscad
index 8cf6ca6..0ef25e3 100644
--- a/delta.jscad
+++ b/delta.jscad
@@ -501,49 +501,58 @@ var E2020 = {
corner2: [e.outer/2,e.outer/2,0],
roundradius: [e.roundius,e.roundius,0]
});
var fw = [0,90,180,270]; // four winds
var iy = e.outer/2-e.T.depth;
var ix = e.T.width/2-(e.outer/2-iy-e.thickness-e.T.thickness);
rv = rv.union(fw.map(function(w) {
return CAG.fromPoints([
[ e.slot_width/2,e.outer/2],
[ e.slot_width/2,e.outer/2-e.thickness],
[ e.T.width/2,e.outer/2-e.thickness],
[ e.T.width/2,e.outer/2-e.thickness-e.T.thickness],
[ ix, iy ],
[ -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 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);
var ms = microswitch();
var hd = EFFECTOR.hinged({
microswitch:ms,effector:e
});
ms = ms.connectTo(
ms.properties.screw_connector[0],
hd.properties.microswitch_screw_connector[0],
false, 0);
var hdhd = EFFECTOR.split_hinged(hd);
var fh = EFFECTOR.fanholder();
return union({
platform: e,
hinged: hdhd[1],
clamp: hdhd[0],
fanholder: fh,
alltogethernow: [e,hdhd[0],hdhd[1], columns(),hs,ms,fh]
}[params.part||'alltogethernow'])
var rv = union(
e,
hs,
columns(),