summaryrefslogtreecommitdiffabout
path: root/delta.jscad
Unidiff
Diffstat (limited to 'delta.jscad') (more/less context) (show 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
@@ -421,26 +421,38 @@ function microswitch() {
421 rv.properties.screw_connector = screw_connector; 421 rv.properties.screw_connector = screw_connector;
422 rv.properties.microswitch = new CSG.Properties(); 422 rv.properties.microswitch = new CSG.Properties();
423 rv.properties.microswitch.size = new CSG.Vector3D( 423 rv.properties.microswitch.size = new CSG.Vector3D(
424 19.8,6,10 424 19.8,6,10
425 ); 425 );
426 return rv; 426 return rv;
427} 427}
428 428
429function getParameterDefinitions() { 429function getParameterDefinitions() {
430 return [{ 430 return [{
431 name: 'part', 431 name: 'part',
432 type: 'choice', 432 type: 'choice',
433 values: ['platform', 'hinged', 'clamp', 'fanholder', 'alltogethernow'], 433 values: [
434 captions: ['Effector platform','Hinged part', 'Clamp', 'Fan holder', 'All together now!'], 434 'platform',
435 'hinged',
436 'clamp',
437 'fanholder',
438 'alltogethernow'
439 ],
440 captions: [
441 'Effector platform',
442 'Hinged part',
443 'Clamp',
444 'Fan holder',
445 'All together now!'
446 ],
435 caption: 'Part', 447 caption: 'Part',
436 initial: 'alltogethernow' 448 initial: 'alltogethernow'
437 }]; 449 }];
438} 450}
439 451
440function main(params) { 452function main(params) {
441 var e = EFFECTOR.effector(); 453 var e = EFFECTOR.effector();
442 var hs = E3DV6.heatsink(); 454 var hs = E3DV6.heatsink();
443 hs = hs.connectTo(hs.properties.grove_connector,e.properties.grove_connector,false,0); 455 hs = hs.connectTo(hs.properties.grove_connector,e.properties.grove_connector,false,0);
444 var ms = microswitch(); 456 var ms = microswitch();
445 var hd = EFFECTOR.hinged({ 457 var hd = EFFECTOR.hinged({
446 microswitch:ms,effector:e 458 microswitch:ms,effector:e