-rw-r--r-- | delta.jscad | 16 |
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 | |||
@@ -417,34 +417,46 @@ function microswitch() { | |||
417 | }) | 417 | }) |
418 | }) | 418 | }) |
419 | ); | 419 | ); |
420 | rv.properties.switch_connector = new CSG.Connector([2.5,0.5,6+5/2],[0,0,1],[0,-1,0]); | 420 | rv.properties.switch_connector = new CSG.Connector([2.5,0.5,6+5/2],[0,0,1],[0,-1,0]); |
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 | ||
429 | function getParameterDefinitions() { | 429 | function 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 | ||
440 | function main(params) { | 452 | function 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 |
447 | }); | 459 | }); |
448 | ms = ms.connectTo( | 460 | ms = ms.connectTo( |
449 | ms.properties.screw_connector[0], | 461 | ms.properties.screw_connector[0], |
450 | hd.properties.microswitch_screw_connector[0], | 462 | hd.properties.microswitch_screw_connector[0], |