author | Michael Krelin <hacker@klever.net> | 2016-01-06 23:45:43 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2016-01-06 23:45:43 (UTC) |
commit | 70e08848566d909a76fa3f611d35570c57f8e048 (patch) (unidiff) | |
tree | 721d2ab3c42a5bf515286963b316ad7cdcd13048 | |
parent | f669f3d2881597cc0d86e4b55332b541883c8205 (diff) | |
download | redelta-70e08848566d909a76fa3f611d35570c57f8e048.zip redelta-70e08848566d909a76fa3f611d35570c57f8e048.tar.gz redelta-70e08848566d909a76fa3f611d35570c57f8e048.tar.bz2 |
move parameters around
-rw-r--r-- | delta.jscad | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/delta.jscad b/delta.jscad index ef0d4ec..9941125 100644 --- a/delta.jscad +++ b/delta.jscad | |||
@@ -448,47 +448,24 @@ function microswitch() { | |||
448 | }) | 448 | }) |
449 | }) | 449 | }) |
450 | ); | 450 | ); |
451 | rv.properties.switch_connector = new CSG.Connector([2.5,0.5,6+5/2],[0,0,1],[0,-1,0]); | 451 | rv.properties.switch_connector = new CSG.Connector([2.5,0.5,6+5/2],[0,0,1],[0,-1,0]); |
452 | rv.properties.screw_connector = screw_connector; | 452 | rv.properties.screw_connector = screw_connector; |
453 | rv.properties.microswitch = new CSG.Properties(); | 453 | rv.properties.microswitch = new CSG.Properties(); |
454 | rv.properties.microswitch.size = new CSG.Vector3D( | 454 | rv.properties.microswitch.size = new CSG.Vector3D( |
455 | 19.8,6,10 | 455 | 19.8,6,10 |
456 | ); | 456 | ); |
457 | return rv; | 457 | return rv; |
458 | } | 458 | } |
459 | 459 | ||
460 | function getParameterDefinitions() { | ||
461 | return [{ | ||
462 | name: 'part', | ||
463 | type: 'choice', | ||
464 | values: [ | ||
465 | 'platform', | ||
466 | 'hinged', | ||
467 | 'clamp', | ||
468 | 'fanholder', | ||
469 | 'alltogethernow' | ||
470 | ], | ||
471 | captions: [ | ||
472 | 'Effector platform', | ||
473 | 'Hinged part', | ||
474 | 'Clamp', | ||
475 | 'Fan holder', | ||
476 | 'All together now!' | ||
477 | ], | ||
478 | caption: 'Part', | ||
479 | initial: 'alltogethernow' | ||
480 | }]; | ||
481 | } | ||
482 | |||
483 | var FOURWINDS = [0,90,180,270]; | 460 | var FOURWINDS = [0,90,180,270]; |
484 | 461 | ||
485 | var E2020 = { | 462 | var E2020 = { |
486 | outer: 20, thickness: 1.8, | 463 | outer: 20, thickness: 1.8, |
487 | roundius: 1, centerhole: 5, | 464 | roundius: 1, centerhole: 5, |
488 | slot_width: 6, | 465 | slot_width: 6, |
489 | T: { width: 10, thickness: 1.5, depth: 6.5 }, | 466 | T: { width: 10, thickness: 1.5, depth: 6.5 }, |
490 | 467 | ||
491 | extrusion: function(o) { | 468 | extrusion: function(o) { |
492 | if(!o) o = {}; | 469 | if(!o) o = {}; |
493 | var e = o.extrusion || this; | 470 | var e = o.extrusion || this; |
494 | var l = o.l||5; | 471 | var l = o.l||5; |
@@ -611,14 +588,39 @@ function _main(params) { | |||
611 | fanholder: fh, | 588 | fanholder: fh, |
612 | alltogethernow: [e,hdhd[0],hdhd[1], columns(),hs,ms,fh] | 589 | alltogethernow: [e,hdhd[0],hdhd[1], columns(),hs,ms,fh] |
613 | }[params.part||'alltogethernow']) | 590 | }[params.part||'alltogethernow']) |
614 | var rv = union( | 591 | var rv = union( |
615 | e, | 592 | e, |
616 | hs, | 593 | hs, |
617 | columns(), | 594 | columns(), |
618 | ///hd, | 595 | ///hd, |
619 | hdhd[0], hdhd[1], | 596 | hdhd[0], hdhd[1], |
620 | ms); | 597 | ms); |
621 | return rv; | 598 | return rv; |
622 | } | 599 | } |
623 | /* vim:set ft=javascript ai: */ | ||
624 | 600 | ||
601 | function getParameterDefinitions() { | ||
602 | return [{ | ||
603 | name: 'part', | ||
604 | type: 'choice', | ||
605 | values: [ | ||
606 | 'platform', | ||
607 | 'hinged', | ||
608 | 'clamp', | ||
609 | 'fanholder', | ||
610 | 'alltogethernow', | ||
611 | 'wip' | ||
612 | ], | ||
613 | captions: [ | ||
614 | 'Effector platform', | ||
615 | 'Hinged part', | ||
616 | 'Clamp', | ||
617 | 'Fan holder', | ||
618 | 'All together now!', | ||
619 | 'Work in progress' | ||
620 | ], | ||
621 | caption: 'Part', | ||
622 | initial: 'wip' | ||
623 | }]; | ||
624 | } | ||
625 | |||
626 | /* vim:set ft=javascript ai: */ | ||