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) (side-by-side diff)
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) {
}
var PARTS = {
wip: function(params) {
return union(base_extrusions(),column_extrusions(),duet());
}
};
function main(params) {
var part = params.part && PARTS[params.part];
if(!part) return refaxes();
var rv = P(part(params));
- if(true) rv = rv.union(refaxes());
+ if(!params.print) rv = rv.union(refaxes());
return rv;
}
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(
@@ -656,16 +656,21 @@ function getParameterDefinitions() {
'wip'
],
captions: [
'Effector platform',
'Hinged part',
'Clamp',
'Fan holder',
'All together now!',
'Work in progress'
],
caption: 'Part',
initial: 'wip'
+ },{
+ name: 'print',
+ type: 'checkbox',
+ caption: 'For print, no nonsense',
+ initial: false
}];
}
/* vim:set ft=javascript ai: */