author | Michael Krelin <hacker@klever.net> | 2016-01-13 20:44:23 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2016-01-13 20:44:23 (UTC) |
commit | ba0d2b52cac7c0ff12fcefb41211177e31963cdc (patch) (unidiff) | |
tree | 959db70d5c0e00488c3e9d96d6737b6f0674b65f | |
parent | 4463cba1eed4a59d4eba588389a169481798a73c (diff) | |
download | redelta-ba0d2b52cac7c0ff12fcefb41211177e31963cdc.zip redelta-ba0d2b52cac7c0ff12fcefb41211177e31963cdc.tar.gz redelta-ba0d2b52cac7c0ff12fcefb41211177e31963cdc.tar.bz2 |
comments
-rw-r--r-- | delta.jscad | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/delta.jscad b/delta.jscad index 0e8fd62..326d172 100644 --- a/delta.jscad +++ b/delta.jscad | |||
@@ -780,53 +780,53 @@ function bedholder(params) { | |||
780 | corner2: [ CONFIG.extrusion.w/2,-CONFIG.heatbed.sr-3/2-CONFIG.bedholder.margin,h0+CONFIG.bedholder.h], | 780 | corner2: [ CONFIG.extrusion.w/2,-CONFIG.heatbed.sr-3/2-CONFIG.bedholder.margin,h0+CONFIG.bedholder.h], |
781 | roundradius: CONFIG.bedholder.margin | 781 | roundradius: CONFIG.bedholder.margin |
782 | }); | 782 | }); |
783 | rv = rv.subtract([ | 783 | rv = rv.subtract([ |
784 | CSG.cylinder({ // base screw | 784 | CSG.cylinder({ // base screw |
785 | start: [0,-CD.base.mid_inscription_r,h0-1], | 785 | start: [0,-CD.base.mid_inscription_r,h0-1], |
786 | end: [0,-CD.base.mid_inscription_r,h0+CONFIG.bedholder.h+1], | 786 | end: [0,-CD.base.mid_inscription_r,h0+CONFIG.bedholder.h+1], |
787 | radius: CONFIG.bedholder.bolt.d/2+PRINT.screw_tolerance/2 | 787 | radius: CONFIG.bedholder.bolt.d/2+PRINT.screw_tolerance/2 |
788 | }), | 788 | }), |
789 | CSG.cylinder({ // bed screw | 789 | CSG.cylinder({ // bed screw |
790 | start: [0,-CONFIG.heatbed.sr,h0-1], | 790 | start: [0,-CONFIG.heatbed.sr,h0-1], |
791 | end: [0,-CONFIG.heatbed.sr,h0+CONFIG.bedholder.h+1], | 791 | end: [0,-CONFIG.heatbed.sr,h0+CONFIG.bedholder.h+1], |
792 | radius: CONFIG.bedholder.bolt.d/2+PRINT.screw_tolerance/2 | 792 | radius: CONFIG.bedholder.bolt.d/2+PRINT.screw_tolerance/2 |
793 | }), | 793 | }), |
794 | CSG.cube({ // nut pocket | 794 | CSG.cube({ // nut pocket |
795 | center: [0,-CONFIG.heatbed.sr,nuth], | 795 | center: [0,-CONFIG.heatbed.sr,nuth], |
796 | radius: [CONFIG.extrusion.w/2+1,(CONFIG.bedholder.nut.w+PRINT.slide_tolerance)/2,(CONFIG.bedholder.nut.h+PRINT.slide_tolerance)/2] | 796 | radius: [CONFIG.extrusion.w/2+1,(CONFIG.bedholder.nut.w+PRINT.slide_tolerance)/2,(CONFIG.bedholder.nut.h+PRINT.slide_tolerance)/2] |
797 | }), | 797 | }), |
798 | CSG.cylinder({ // sink base screw | 798 | CSG.cylinder({ // sink base screw |
799 | start: [0,-CD.base.mid_inscription_r,h0+bolt_s], | 799 | start: [0,-CD.base.mid_inscription_r,h0+bolt_s], |
800 | end: [0,-CD.base.mid_inscription_r,h0+CONFIG.bedholder.h+1], | 800 | end: [0,-CD.base.mid_inscription_r,h0+CONFIG.bedholder.h+1], |
801 | radius: CONFIG.bedholder.bolt.head.d/2+PRINT.play_tolerance | 801 | radius: CONFIG.bedholder.bolt.head.d/2+PRINT.play_tolerance |
802 | }) | 802 | }) |
803 | ]); | 803 | ]); |
804 | rv = rv.union(CSG.cylinder({ | 804 | rv = rv.union(CSG.cylinder({ // patch up for bridging |
805 | start: [0,-CONFIG.heatbed.sr,nutth], end: [0,-CONFIG.heatbed.sr,nutth+PRINT.layer_height], | 805 | start: [0,-CONFIG.heatbed.sr,nutth], end: [0,-CONFIG.heatbed.sr,nutth+PRINT.layer_height], |
806 | radius: (CONFIG.bedholder.nut.w+PRINT.slide_tolerance)/2+PRINT.extrusion_width | 806 | radius: (CONFIG.bedholder.nut.w+PRINT.slide_tolerance)/2+PRINT.extrusion_width |
807 | })); | 807 | })); |
808 | rv = rv.intersect(CSG.cylinder({ | 808 | rv = rv.intersect(CSG.cylinder({ // cut off excess |
809 | start: [0,0,h0-1], end: [0,0,h0+CONFIG.bedholder.h+1], | 809 | start: [0,0,h0-1], end: [0,0,h0+CONFIG.bedholder.h+1], |
810 | radius: CONFIG.heatbed.r, resolution: 270 | 810 | radius: CONFIG.heatbed.r, resolution: 270 |
811 | })); | 811 | })); |
812 | rv.properties.P = new CSG.Connector([0,-CD.base.mid_inscription_r,h0],[0,0,1],[1,0,0]); | 812 | rv.properties.P = new CSG.Connector([0,-CD.base.mid_inscription_r,h0],[0,0,1],[1,0,0]); |
813 | return rv.setColor(CONFIG.color.parts); | 813 | return rv.setColor(CONFIG.color.parts); |
814 | } | 814 | } |
815 | 815 | ||
816 | var PARTS = { | 816 | var PARTS = { |
817 | wip: function(params) { | 817 | wip: function(params) { |
818 | return duetholder(params); | 818 | return duetholder(params); |
819 | return PARTS.alltogethernow(params); | 819 | return PARTS.alltogethernow(params); |
820 | return base_extrusions(); | 820 | return base_extrusions(); |
821 | return foot(); | 821 | return foot(); |
822 | return union(base_extrusions(),column_extrusions(),duet().translate([0,-20,0])); | 822 | return union(base_extrusions(),column_extrusions(),duet().translate([0,-20,0])); |
823 | }, | 823 | }, |
824 | alltogethernow: function(params) { | 824 | alltogethernow: function(params) { |
825 | var cols = columns(); | 825 | var cols = columns(); |
826 | var sides = base_sides(); | 826 | var sides = base_sides(); |
827 | var feet = THREEWINDS.map(function(w,i) { | 827 | var feet = THREEWINDS.map(function(w,i) { |
828 | var rv = foot(); | 828 | var rv = foot(); |
829 | rv = rv.connectTo(rv.properties.c_column,cols[i].properties.c_bottom,false,0); | 829 | rv = rv.connectTo(rv.properties.c_column,cols[i].properties.c_bottom,false,0); |
830 | var s = shoe(); | 830 | var s = shoe(); |
831 | s = s.connectTo(s.properties.c_foot,rv.properties.c_shoe,false,0); | 831 | s = s.connectTo(s.properties.c_foot,rv.properties.c_shoe,false,0); |
832 | return rv.union(s); | 832 | return rv.union(s); |