summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2016-01-06 21:38:15 (UTC)
committer Michael Krelin <hacker@klever.net>2016-01-06 21:38:15 (UTC)
commit1822646c471df79f4a97ae6cae7d328917503b47 (patch) (side-by-side diff)
treec4250da736c7c3429ea9d2edd17a369f73173091
parent1d1eef5830bd523eebe3607923d986268cd85339 (diff)
downloadredelta-1822646c471df79f4a97ae6cae7d328917503b47.zip
redelta-1822646c471df79f4a97ae6cae7d328917503b47.tar.gz
redelta-1822646c471df79f4a97ae6cae7d328917503b47.tar.bz2
reformatted parameters definition
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--delta.jscad16
1 files changed, 14 insertions, 2 deletions
diff --git a/delta.jscad b/delta.jscad
index fd36ba5..489e20d 100644
--- a/delta.jscad
+++ b/delta.jscad
@@ -409,50 +409,62 @@ function microswitch() {
return CSG.cube({ center:[x,0,0], radius: [0.6/2,3.2/2,13/2] })
})
).subtract(
[-9.5/2,9.5/2].map(function(x,i) {
screw_connector[i] = new CSG.Connector([x,6/2,0],[0,-1,0],[0,0,1]);
return CSG.cylinder({
start: [x,-4,0], end: [x,4,0],
radius: 2/2
})
})
);
rv.properties.switch_connector = new CSG.Connector([2.5,0.5,6+5/2],[0,0,1],[0,-1,0]);
rv.properties.screw_connector = screw_connector;
rv.properties.microswitch = new CSG.Properties();
rv.properties.microswitch.size = new CSG.Vector3D(
19.8,6,10
);
return rv;
}
function getParameterDefinitions() {
return [{
name: 'part',
type: 'choice',
- values: ['platform', 'hinged', 'clamp', 'fanholder', 'alltogethernow'],
- captions: ['Effector platform','Hinged part', 'Clamp', 'Fan holder', 'All together now!'],
+ values: [
+ 'platform',
+ 'hinged',
+ 'clamp',
+ 'fanholder',
+ 'alltogethernow'
+ ],
+ captions: [
+ 'Effector platform',
+ 'Hinged part',
+ 'Clamp',
+ 'Fan holder',
+ 'All together now!'
+ ],
caption: 'Part',
initial: 'alltogethernow'
}];
}
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(
ms.properties.screw_connector[0],
hd.properties.microswitch_screw_connector[0],
false, 0);
var hdhd = EFFECTOR.split_hinged(hd);
var fh = EFFECTOR.fanholder();
return union({
platform: e,
hinged: hdhd[1],
clamp: hdhd[0],
fanholder: fh,