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) (unidiff)
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
@@ -513,25 +513,34 @@ var E2020 = {
513 [ ix, iy ], 513 [ ix, iy ],
514 [ -ix, iy ], 514 [ -ix, iy ],
515 [ -e.T.width/2,e.outer/2-e.thickness-e.T.thickness], 515 [ -e.T.width/2,e.outer/2-e.thickness-e.T.thickness],
516 [ -e.T.width/2,e.outer/2-e.thickness], 516 [ -e.T.width/2,e.outer/2-e.thickness],
517 [ -e.slot_width/2,e.outer/2-e.thickness], 517 [ -e.slot_width/2,e.outer/2-e.thickness],
518 [ -e.slot_width/2,e.outer/2], 518 [ -e.slot_width/2,e.outer/2],
519 ]).extrude({offset:[0,0,l+thickness]}).rotateZ(w); 519 ]).extrude({offset:[0,0,l+thickness]}).rotateZ(w);
520 })); 520 }));
521 rv.properties.P = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]); 521 rv.properties.P = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]);
522 return rv; 522 return rv;
523 } 523 }
524}; 524};
525
526function P(x) {
527 return x.connectTo(x.properties.P,new CSG.Connector([0,0,0],[0,0,1],[1,0,0]), false, 0);
528}
529
525function main(params) { 530function main(params) {
531 return P(E2020.extrusion({l:40})).setColor(0.7,0.7,0.7,0.7);
532}
533
534function _main(params) {
526 var e = EFFECTOR.effector(); 535 var e = EFFECTOR.effector();
527 var hs = E3DV6.heatsink(); 536 var hs = E3DV6.heatsink();
528 hs = hs.connectTo(hs.properties.grove_connector,e.properties.grove_connector,false,0); 537 hs = hs.connectTo(hs.properties.grove_connector,e.properties.grove_connector,false,0);
529 var ms = microswitch(); 538 var ms = microswitch();
530 var hd = EFFECTOR.hinged({ 539 var hd = EFFECTOR.hinged({
531 microswitch:ms,effector:e 540 microswitch:ms,effector:e
532 }); 541 });
533 ms = ms.connectTo( 542 ms = ms.connectTo(
534 ms.properties.screw_connector[0], 543 ms.properties.screw_connector[0],
535 hd.properties.microswitch_screw_connector[0], 544 hd.properties.microswitch_screw_connector[0],
536 false, 0); 545 false, 0);
537 var hdhd = EFFECTOR.split_hinged(hd); 546 var hdhd = EFFECTOR.split_hinged(hd);