author | Michael Krelin <hacker@klever.net> | 2016-01-06 22:34:25 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2016-01-06 22:34:25 (UTC) |
commit | a7f7cd089e5a0e29b6c6e25120a6e9ce83d830f3 (patch) (unidiff) | |
tree | 080143c825ad2efcb59460aa3d7324d30abf688b | |
parent | 506bc3db8f3c1abdc97b9331ad4f038c7f851b51 (diff) | |
download | redelta-a7f7cd089e5a0e29b6c6e25120a6e9ce83d830f3.zip redelta-a7f7cd089e5a0e29b6c6e25120a6e9ce83d830f3.tar.gz redelta-a7f7cd089e5a0e29b6c6e25120a6e9ce83d830f3.tar.bz2 |
extrusion: midway connector and vitamin designation
-rw-r--r-- | delta.jscad | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/delta.jscad b/delta.jscad index 547b51e..c134c29 100644 --- a/delta.jscad +++ b/delta.jscad | |||
@@ -503,25 +503,27 @@ var E2020 = { | |||
503 | [ -e.T.width/2,e.outer/2-e.thickness], | 503 | [ -e.T.width/2,e.outer/2-e.thickness], |
504 | [ -e.slot_width/2,e.outer/2-e.thickness], | 504 | [ -e.slot_width/2,e.outer/2-e.thickness], |
505 | [ -e.slot_width/2,e.outer/2+1], | 505 | [ -e.slot_width/2,e.outer/2+1], |
506 | ]).rotateZ(w); | 506 | ]).rotateZ(w); |
507 | }) | 507 | }) |
508 | ).subtract(CAG.circle({ | 508 | ).subtract(CAG.circle({ |
509 | center: [0,0], radius: e.centerhole/2 | 509 | center: [0,0], radius: e.centerhole/2 |
510 | })).extrude({offset:[0,0,l]}); | 510 | })).extrude({offset:[0,0,l]}); |
511 | rv.properties.c_top=rv.properties.c_left | 511 | rv.properties.c_top=rv.properties.c_left |
512 | = new CSG.Connector([0,0,l],[0,0,-1],[1,0,0]); | 512 | = new CSG.Connector([0,0,l],[0,0,-1],[1,0,0]); |
513 | rv.properties.c_bottom=rv.properties.c_right | 513 | rv.properties.c_bottom=rv.properties.c_right |
514 | = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]); | 514 | = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]); |
515 | rv.properties.c_midway = new CSG.Connector([0,0,l/2],[0,0,1],[1,0,0]); | ||
515 | rv.properties.P = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]); | 516 | rv.properties.P = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]); |
517 | rv.properties.vitamin = true; | ||
516 | return rv; | 518 | return rv; |
517 | }, | 519 | }, |
518 | 520 | ||
519 | cap: function extrusion_cap(o) { | 521 | cap: function extrusion_cap(o) { |
520 | if(!o) o = {}; | 522 | if(!o) o = {}; |
521 | var e = o.extrusion || this; | 523 | var e = o.extrusion || this; |
522 | var thickness = o.thickness||2, l = o.l||5; | 524 | var thickness = o.thickness||2, l = o.l||5; |
523 | var rv = CSG.roundedCube({ | 525 | var rv = CSG.roundedCube({ |
524 | corner1: [-e.outer/2,-e.outer/2,thickness], | 526 | corner1: [-e.outer/2,-e.outer/2,thickness], |
525 | corner2: [e.outer/2,e.outer/2,0], | 527 | corner2: [e.outer/2,e.outer/2,0], |
526 | roundradius: [e.roundius,e.roundius,0] | 528 | roundradius: [e.roundius,e.roundius,0] |
527 | }); | 529 | }); |