summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--delta.jscad12
1 files changed, 11 insertions, 1 deletions
diff --git a/delta.jscad b/delta.jscad
index b3bb3d3..5d40e26 100644
--- a/delta.jscad
+++ b/delta.jscad
@@ -595,14 +595,24 @@ function refaxes(o) {
595} 595}
596 596
597function P(x) { 597function P(x) {
598 return x.connectTo(x.properties.P,new CSG.Connector([0,0,0],[0,0,1],[1,0,0]), false, 0); 598 return x.connectTo(x.properties.P,new CSG.Connector([0,0,0],[0,0,1],[1,0,0]), false, 0);
599} 599}
600 600
601var PARTS = {
602 wip: function(params) {
603 return union(base_extrusions(),column_extrusions(),duet());
604 }
605};
606
601function main(params) { 607function main(params) {
602 return refaxes().union(P(base_extrusions())); 608 var part = params.part && PARTS[params.part];
609 if(!part) return refaxes();
610 var rv = P(part(params));
611 if(true) rv = rv.union(refaxes());
612 return rv;
603} 613}
604 614
605function _main(params) { 615function _main(params) {
606 var e = EFFECTOR.effector(); 616 var e = EFFECTOR.effector();
607 var hs = E3DV6.heatsink(); 617 var hs = E3DV6.heatsink();
608 hs = hs.connectTo(hs.properties.grove_connector,e.properties.grove_connector,false,0); 618 hs = hs.connectTo(hs.properties.grove_connector,e.properties.grove_connector,false,0);