author | Michael Krelin <hacker@klever.net> | 2016-01-06 21:37:28 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2016-01-06 21:37:28 (UTC) |
commit | 098dfbac09fa3867e8b3d280abd2e3ef08dd616c (patch) (unidiff) | |
tree | 1f40bbf5ce491e077a2ce36a3da70480db70336d /delta.jscad | |
parent | 94802122c4888f77b4503c6e41d21406f03433c9 (diff) | |
download | redelta-098dfbac09fa3867e8b3d280abd2e3ef08dd616c.zip redelta-098dfbac09fa3867e8b3d280abd2e3ef08dd616c.tar.gz redelta-098dfbac09fa3867e8b3d280abd2e3ef08dd616c.tar.bz2 |
vim setup
-rw-r--r-- | delta.jscad | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/delta.jscad b/delta.jscad index 63eea6c..758824b 100644 --- a/delta.jscad +++ b/delta.jscad | |||
@@ -406,48 +406,50 @@ function microswitch() { | |||
406 | rv.properties.microswitch = new CSG.Properties(); | 406 | rv.properties.microswitch = new CSG.Properties(); |
407 | rv.properties.microswitch.size = new CSG.Vector3D( | 407 | rv.properties.microswitch.size = new CSG.Vector3D( |
408 | 19.8,6,10 | 408 | 19.8,6,10 |
409 | ); | 409 | ); |
410 | return rv; | 410 | return rv; |
411 | } | 411 | } |
412 | 412 | ||
413 | function getParameterDefinitions() { | 413 | function getParameterDefinitions() { |
414 | return [{ | 414 | return [{ |
415 | name: 'part', | 415 | name: 'part', |
416 | type: 'choice', | 416 | type: 'choice', |
417 | values: ['platform', 'hinged', 'clamp', 'fanholder', 'alltogethernow'], | 417 | values: ['platform', 'hinged', 'clamp', 'fanholder', 'alltogethernow'], |
418 | captions: ['Effector platform','Hinged part', 'Clamp', 'Fan holder', 'All together now!'], | 418 | captions: ['Effector platform','Hinged part', 'Clamp', 'Fan holder', 'All together now!'], |
419 | caption: 'Part', | 419 | caption: 'Part', |
420 | initial: 'alltogethernow' | 420 | initial: 'alltogethernow' |
421 | }]; | 421 | }]; |
422 | } | 422 | } |
423 | 423 | ||
424 | function main(params) { | 424 | function main(params) { |
425 | var e = EFFECTOR.effector(); | 425 | var e = EFFECTOR.effector(); |
426 | var hs = E3DV6.heatsink(); | 426 | var hs = E3DV6.heatsink(); |
427 | hs = hs.connectTo(hs.properties.grove_connector,e.properties.grove_connector,false,0); | 427 | hs = hs.connectTo(hs.properties.grove_connector,e.properties.grove_connector,false,0); |
428 | var ms = microswitch(); | 428 | var ms = microswitch(); |
429 | var hd = EFFECTOR.hinged({ | 429 | var hd = EFFECTOR.hinged({ |
430 | microswitch:ms,effector:e | 430 | microswitch:ms,effector:e |
431 | }); | 431 | }); |
432 | ms = ms.connectTo( | 432 | ms = ms.connectTo( |
433 | ms.properties.screw_connector[0], | 433 | ms.properties.screw_connector[0], |
434 | hd.properties.microswitch_screw_connector[0], | 434 | hd.properties.microswitch_screw_connector[0], |
435 | false, 0); | 435 | false, 0); |
436 | var hdhd = EFFECTOR.split_hinged(hd); | 436 | var hdhd = EFFECTOR.split_hinged(hd); |
437 | var fh = EFFECTOR.fanholder(); | 437 | var fh = EFFECTOR.fanholder(); |
438 | return union({ | 438 | return union({ |
439 | platform: e, | 439 | platform: e, |
440 | hinged: hdhd[1], | 440 | hinged: hdhd[1], |
441 | clamp: hdhd[0], | 441 | clamp: hdhd[0], |
442 | fanholder: fh, | 442 | fanholder: fh, |
443 | alltogethernow: [e,hdhd[0],hdhd[1], columns(),hs,ms,fh] | 443 | alltogethernow: [e,hdhd[0],hdhd[1], columns(),hs,ms,fh] |
444 | }[params.part||'alltogethernow']) | 444 | }[params.part||'alltogethernow']) |
445 | var rv = union( | 445 | var rv = union( |
446 | e, | 446 | e, |
447 | hs, | 447 | hs, |
448 | columns(), | 448 | columns(), |
449 | ///hd, | 449 | ///hd, |
450 | hdhd[0], hdhd[1], | 450 | hdhd[0], hdhd[1], |
451 | ms); | 451 | ms); |
452 | return rv; | 452 | return rv; |
453 | } | 453 | } |
454 | /* vim:set ft=javascript ai: */ | ||
455 | |||