-rw-r--r-- | delta.jscad | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/delta.jscad b/delta.jscad index c134c29..9883003 100644 --- a/delta.jscad +++ b/delta.jscad | |||
@@ -540,24 +540,25 @@ var E2020 = { | |||
540 | [ -ix, iy ], | 540 | [ -ix, iy ], |
541 | [ -e.T.width/2,e.outer/2-e.thickness-e.T.thickness], | 541 | [ -e.T.width/2,e.outer/2-e.thickness-e.T.thickness], |
542 | [ -e.T.width/2,e.outer/2-e.thickness], | 542 | [ -e.T.width/2,e.outer/2-e.thickness], |
543 | [ -e.slot_width/2,e.outer/2-e.thickness], | 543 | [ -e.slot_width/2,e.outer/2-e.thickness], |
544 | [ -e.slot_width/2,e.outer/2], | 544 | [ -e.slot_width/2,e.outer/2], |
545 | ]).extrude({offset:[0,0,l+thickness]}).rotateZ(w); | 545 | ]).extrude({offset:[0,0,l+thickness]}).rotateZ(w); |
546 | })); | 546 | })); |
547 | rv.properties.P = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]); | 547 | rv.properties.P = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]); |
548 | return rv; | 548 | return rv; |
549 | } | 549 | } |
550 | }; | 550 | }; |
551 | 551 | ||
552 | var THREEWINDS = [0,120,240]; | ||
552 | 553 | ||
553 | function refaxes(o) { | 554 | function refaxes(o) { |
554 | if(!o) o = {}; | 555 | if(!o) o = {}; |
555 | var l = o.l||20, g = o.g||0.7; | 556 | var l = o.l||20, g = o.g||0.7; |
556 | return union([ | 557 | return union([ |
557 | CSG.cylinder({start:[0,0,0],end:[l,0,0]}).setColor([1,0,0,g]), | 558 | CSG.cylinder({start:[0,0,0],end:[l,0,0]}).setColor([1,0,0,g]), |
558 | CSG.cylinder({start:[0,0,0],end:[0,l,0]}).setColor([0,1,0,g]), | 559 | CSG.cylinder({start:[0,0,0],end:[0,l,0]}).setColor([0,1,0,g]), |
559 | CSG.cylinder({start:[0,0,0],end:[0,0,l]}).setColor([0,0,1,g]) | 560 | CSG.cylinder({start:[0,0,0],end:[0,0,l]}).setColor([0,0,1,g]) |
560 | ]); | 561 | ]); |
561 | } | 562 | } |
562 | function P(x) { | 563 | function P(x) { |
563 | return x.connectTo(x.properties.P,new CSG.Connector([0,0,0],[0,0,1],[1,0,0]), false, 0); | 564 | return x.connectTo(x.properties.P,new CSG.Connector([0,0,0],[0,0,1],[1,0,0]), false, 0); |