-rw-r--r-- | delta.jscad | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/delta.jscad b/delta.jscad index 54f1f86..7384ecf 100644 --- a/delta.jscad +++ b/delta.jscad | |||
@@ -720,49 +720,51 @@ function duetholder() { | |||
720 | rv.properties.duet.c_sw = new CSG.Connector(cp,[0,0,1],[1,0,0]); | 720 | rv.properties.duet.c_sw = new CSG.Connector(cp,[0,0,1],[1,0,0]); |
721 | rv.properties.duet.c_se = new CSG.Connector(cp,[0,0,1],[1,0,0]); | 721 | rv.properties.duet.c_se = new CSG.Connector(cp,[0,0,1],[1,0,0]); |
722 | rv.properties.duet.c_ne = new CSG.Connector(cp,[0,0,1],[-Math.cos(Math.PI/3),-Math.sin(Math.PI/3),0]); | 722 | rv.properties.duet.c_ne = new CSG.Connector(cp,[0,0,1],[-Math.cos(Math.PI/3),-Math.sin(Math.PI/3),0]); |
723 | rv.properties.duet.c_nw = new CSG.Connector(cp,[0,0,1],[-Math.cos(Math.PI/3),Math.sin(Math.PI/3),0]); | 723 | rv.properties.duet.c_nw = new CSG.Connector(cp,[0,0,1],[-Math.cos(Math.PI/3),Math.sin(Math.PI/3),0]); |
724 | rv.properties.c_h = new CSG.Connector([0,-CONFIG.extrusion.w/2,0],[0,0,1],[1,0,0]); | 724 | rv.properties.c_h = new CSG.Connector([0,-CONFIG.extrusion.w/2,0],[0,0,1],[1,0,0]); |
725 | rv.properties.c_v = new CSG.Connector([0,0,CONFIG.extrusion.w/2],[0,-1,0],[0,0,1]); | 725 | rv.properties.c_v = new CSG.Connector([0,0,CONFIG.extrusion.w/2],[0,-1,0],[0,0,1]); |
726 | rv.properties.P = new CSG.Connector([-hw/2,0,0],[1,0,0],[0,1,0]); | 726 | rv.properties.P = new CSG.Connector([-hw/2,0,0],[1,0,0],[0,1,0]); |
727 | return rv.setColor(CONFIG.color.parts); | 727 | return rv.setColor(CONFIG.color.parts); |
728 | } | 728 | } |
729 | 729 | ||
730 | function heatbed() { | 730 | function heatbed() { |
731 | var rv = CSG.cylinder({ | 731 | var rv = CSG.cylinder({ |
732 | start: [0,0,0], end: [0,0,CONFIG.heatbed.h], | 732 | start: [0,0,0], end: [0,0,CONFIG.heatbed.h], |
733 | radius: CONFIG.heatbed.r, resolution: 72 | 733 | radius: CONFIG.heatbed.r, resolution: 72 |
734 | }); | 734 | }); |
735 | var screw = CSG.cylinder({ | 735 | var screw = CSG.cylinder({ |
736 | start: [0,-CONFIG.heatbed.sr,-1], | 736 | start: [0,-CONFIG.heatbed.sr,-1], |
737 | end: [0,-CONFIG.heatbed.sr,CONFIG.heatbed.h+1], | 737 | end: [0,-CONFIG.heatbed.sr,CONFIG.heatbed.h+1], |
738 | radius: 3/2 | 738 | radius: 3/2 |
739 | }); | 739 | }); |
740 | var screws = []; | 740 | var screws = []; |
741 | for(var a=0;a<360;a+=60) screws.push(screw.rotateZ(a)); // TODO: connectors | 741 | for(var a=0;a<360;a+=60) screws.push(screw.rotateZ(a)); // TODO: connectors |
742 | rv = rv.subtract(screws); | 742 | rv = rv.subtract(screws); |
743 | rv.properties.c_glass = new CSG.Connector([0,0,CONFIG.heatbed.h],[0,0,1],[1,0,0]); | 743 | rv.properties.c_glass = new CSG.Connector([0,0,CONFIG.heatbed.h],[0,0,1],[1,0,0]); |
744 | rv.properties.P = new CSG.Connector([0,0,-CONFIG.foot.h-CONFIG.extrusion.w*2-CONFIG.base.gap],[0,0,1],[1,0,0]); | 744 | rv.properties.P = new CSG.Connector( |
745 | [0,0,-CONFIG.foot.h-CONFIG.extrusion.w*2-CONFIG.base.gap-CONFIG.bedholder.h], | ||
746 | [0,0,1],[1,0,0]); | ||
745 | rv.properties.vitamin = true; | 747 | rv.properties.vitamin = true; |
746 | return rv.setColor(CONFIG.color.heatbed); | 748 | return rv.setColor(CONFIG.color.heatbed); |
747 | } | 749 | } |
748 | function glass() { | 750 | function glass() { |
749 | var rv = CSG.cylinder({ | 751 | var rv = CSG.cylinder({ |
750 | start: [0,0,0], end: [0,0,CONFIG.glass.h], | 752 | start: [0,0,0], end: [0,0,CONFIG.glass.h], |
751 | radius: CONFIG.glass.r, resolution: 72 | 753 | radius: CONFIG.glass.r, resolution: 72 |
752 | }); | 754 | }); |
753 | rv.properties.c_bed = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]); | 755 | rv.properties.c_bed = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]); |
754 | rv.properties.P = new CSG.Connector([0,0,-CONFIG.foot.h-CONFIG.heatbed.h],[0,0,1],[1,0,0]); | 756 | rv.properties.P = new CSG.Connector([0,0,-CONFIG.foot.h-CONFIG.heatbed.h],[0,0,1],[1,0,0]); |
755 | rv.properties.vitamin = true; | 757 | rv.properties.vitamin = true; |
756 | return rv.setColor(CONFIG.color.glass); | 758 | return rv.setColor(CONFIG.color.glass); |
757 | } | 759 | } |
758 | function platform() { | 760 | function platform() { |
759 | var b = heatbed(); | 761 | var b = heatbed(); |
760 | var g = glass(); | 762 | var g = glass(); |
761 | g = g.connectTo(g.properties.c_bed,b.properties.c_glass,false,0); | 763 | g = g.connectTo(g.properties.c_bed,b.properties.c_glass,false,0); |
762 | return b.union(g); | 764 | return b.union(g); |
763 | } | 765 | } |
764 | 766 | ||
765 | function refaxes(o) { | 767 | function refaxes(o) { |
766 | if(!o) o = {}; | 768 | if(!o) o = {}; |
767 | var l = o.l||20, g = o.g||0.7; | 769 | var l = o.l||20, g = o.g||0.7; |
768 | return union([ | 770 | return union([ |