summaryrefslogtreecommitdiffabout
Unidiff
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 = {
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 525
526
527function refaxes(o) {
528 if(!o) o = {};
529 var l = o.l||20, g = o.g||0.7;
530 return union([
531 CSG.cylinder({start:[0,0,0],end:[l,0,0]}).setColor([1,0,0,g]),
532 CSG.cylinder({start:[0,0,0],end:[0,l,0]}).setColor([0,1,0,g]),
533 CSG.cylinder({start:[0,0,0],end:[0,0,l]}).setColor([0,0,1,g])
534 ]);
535}
526function P(x) { 536function P(x) {
527 return x.connectTo(x.properties.P,new CSG.Connector([0,0,0],[0,0,1],[1,0,0]), false, 0); 537 return x.connectTo(x.properties.P,new CSG.Connector([0,0,0],[0,0,1],[1,0,0]), false, 0);
528} 538}
529 539
530function main(params) { 540function main(params) {
531 return P(E2020.extrusion({l:40})).setColor(0.7,0.7,0.7,0.7); 541 return P(E2020.extrusion({l:40})).setColor(0.7,0.7,0.7,0.7);
532} 542}
533 543
534function _main(params) { 544function _main(params) {
535 var e = EFFECTOR.effector(); 545 var e = EFFECTOR.effector();
536 var hs = E3DV6.heatsink(); 546 var hs = E3DV6.heatsink();
537 hs = hs.connectTo(hs.properties.grove_connector,e.properties.grove_connector,false,0); 547 hs = hs.connectTo(hs.properties.grove_connector,e.properties.grove_connector,false,0);