summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2016-01-07 17:31:23 (UTC)
committer Michael Krelin <hacker@klever.net>2016-01-07 17:31:23 (UTC)
commit8366ce3996a539918b7a3e04fa6b5d9cdce580ad (patch) (unidiff)
tree40e6aac0c8a15a73b24f3d4d3ef387463fa82ef6
parent740c971a9ebf663765e91eb84e2251d303ea4ceb (diff)
downloadredelta-8366ce3996a539918b7a3e04fa6b5d9cdce580ad.zip
redelta-8366ce3996a539918b7a3e04fa6b5d9cdce580ad.tar.gz
redelta-8366ce3996a539918b7a3e04fa6b5d9cdce580ad.tar.bz2
no-nonsense render for printing
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--delta.jscad7
1 files changed, 6 insertions, 1 deletions
diff --git a/delta.jscad b/delta.jscad
index 5d40e26..b718fd4 100644
--- a/delta.jscad
+++ b/delta.jscad
@@ -599,25 +599,25 @@ function P(x) {
599} 599}
600 600
601var PARTS = { 601var PARTS = {
602 wip: function(params) { 602 wip: function(params) {
603 return union(base_extrusions(),column_extrusions(),duet()); 603 return union(base_extrusions(),column_extrusions(),duet());
604 } 604 }
605}; 605};
606 606
607function main(params) { 607function main(params) {
608 var part = params.part && PARTS[params.part]; 608 var part = params.part && PARTS[params.part];
609 if(!part) return refaxes(); 609 if(!part) return refaxes();
610 var rv = P(part(params)); 610 var rv = P(part(params));
611 if(true) rv = rv.union(refaxes()); 611 if(!params.print) rv = rv.union(refaxes());
612 return rv; 612 return rv;
613} 613}
614 614
615function _main(params) { 615function _main(params) {
616 var e = EFFECTOR.effector(); 616 var e = EFFECTOR.effector();
617 var hs = E3DV6.heatsink(); 617 var hs = E3DV6.heatsink();
618 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);
619 var ms = microswitch(); 619 var ms = microswitch();
620 var hd = EFFECTOR.hinged({ 620 var hd = EFFECTOR.hinged({
621 microswitch:ms,effector:e 621 microswitch:ms,effector:e
622 }); 622 });
623 ms = ms.connectTo( 623 ms = ms.connectTo(
@@ -656,16 +656,21 @@ function getParameterDefinitions() {
656 'wip' 656 'wip'
657 ], 657 ],
658 captions: [ 658 captions: [
659 'Effector platform', 659 'Effector platform',
660 'Hinged part', 660 'Hinged part',
661 'Clamp', 661 'Clamp',
662 'Fan holder', 662 'Fan holder',
663 'All together now!', 663 'All together now!',
664 'Work in progress' 664 'Work in progress'
665 ], 665 ],
666 caption: 'Part', 666 caption: 'Part',
667 initial: 'wip' 667 initial: 'wip'
668 },{
669 name: 'print',
670 type: 'checkbox',
671 caption: 'For print, no nonsense',
672 initial: false
668 }]; 673 }];
669} 674}
670 675
671/* vim:set ft=javascript ai: */ 676/* vim:set ft=javascript ai: */