author | Michael Krelin <hacker@klever.net> | 2016-01-06 21:37:49 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2016-01-06 21:37:49 (UTC) |
commit | 269a2b89e1e42c5f0578d27ff373c009eae972aa (patch) (unidiff) | |
tree | 46ccfb6ec64fb409e9e8f102a2fb92cebfc9438b /delta.jscad | |
parent | 098dfbac09fa3867e8b3d280abd2e3ef08dd616c (diff) | |
download | redelta-269a2b89e1e42c5f0578d27ff373c009eae972aa.zip redelta-269a2b89e1e42c5f0578d27ff373c009eae972aa.tar.gz redelta-269a2b89e1e42c5f0578d27ff373c009eae972aa.tar.bz2 |
tolerances update
-rw-r--r-- | delta.jscad | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/delta.jscad b/delta.jscad index 758824b..5be6715 100644 --- a/delta.jscad +++ b/delta.jscad | |||
@@ -1,102 +1,101 @@ | |||
1 | var PRINT = { | 1 | var PRINT = { |
2 | layer_height: 0.2, | 2 | layer_height: 0.2, |
3 | extrusion_width: 0.4, | 3 | extrusion_width: 0.4, |
4 | 4 | ||
5 | fit_tolerance: 0.4, | 5 | fit_tolerance: .2, slide_tolerance: .4, play_tolerance: .6 |
6 | slide_tolerance: 0.2 | ||
7 | }; | 6 | }; |
8 | 7 | ||
9 | var CONFIG = { | 8 | var CONFIG = { |
10 | hotend: { | 9 | hotend: { |
11 | h: 62.4, // full assembly height | 10 | h: 62.4, // full assembly height |
12 | groove: { d:12, h:6 }, // grove diameter and height | 11 | groove: { d:12, h:6 }, // grove diameter and height |
13 | ungroove: { d:16, above:3.7, below: 3+4 } | 12 | ungroove: { d:16, above:3.7, below: 3+4 } |
14 | }, | 13 | }, |
15 | effector: { | 14 | effector: { |
16 | h: 6, | 15 | h: 6, |
17 | o: 20,// offset to the rod mounts line | 16 | o: 20,// offset to the rod mounts line |
18 | rods_apart: 40, | 17 | rods_apart: 40, |
19 | cone: { shell: 1, angle: Math.PI/6 }, | 18 | cone: { shell: 1, angle: Math.PI/6 }, |
20 | rodend: { | 19 | rodend: { |
21 | joint_w: 7,// thickness of the joint | 20 | joint_w: 7,// thickness of the joint |
22 | screw_l: 20-1, // 20 with the head | 21 | screw_l: 20-1, // 20 with the head |
23 | screw_d: 3 | 22 | screw_d: 3 |
24 | }, | 23 | }, |
25 | hotend: { margin: 2 }, | 24 | hotend: { margin: 2 }, |
26 | hinge: { | 25 | hinge: { |
27 | d: 3, w: 5, margin: 2.5, | 26 | d: 3, w: 5, margin: 2.5, |
28 | h: 1+(6+3.7)/2, // elevation + grove + top | 27 | h: 1+(6+3.7)/2, // elevation + grove + top |
29 | e: 1 // elevation | 28 | e: 1 // elevation |
30 | }, | 29 | }, |
31 | clamp: { | 30 | clamp: { |
32 | shell: 4.6, | 31 | shell: 4.6, |
33 | d: 3, | 32 | d: 3, |
34 | margin: 2.5, | 33 | margin: 2.5, |
35 | split: 0.6 | 34 | split: 0.6 |
36 | }, | 35 | }, |
37 | mswitch: { | 36 | mswitch: { |
38 | size: [ 19.8, 6, 10 ], | 37 | size: [ 19.8, 6, 10 ], |
39 | screw: { | 38 | screw: { |
40 | d: 2, h: 10/2-2, | 39 | d: 2, h: 10/2-2, |
41 | s: 1.3, // screw shell | 40 | s: 1.3, // screw shell |
42 | o: [-9.5/2,9.5/2].map(function(x) { | 41 | o: [-9.5/2,9.5/2].map(function(x) { |
43 | return -19.8/2+x; | 42 | return -19.8/2+x; |
44 | }) | 43 | }) |
45 | }, | 44 | }, |
46 | switch_x: 2.5 | 45 | switch_x: 2.5 |
47 | }, | 46 | }, |
48 | guide: { | 47 | guide: { |
49 | width: 3, height: 5+1, length: 6 | 48 | width: 3, height: 5+1, length: 6 |
50 | }, | 49 | }, |
51 | fanholder: { | 50 | fanholder: { |
52 | r: 30, | 51 | r: 30, |
53 | screw: { d: 3, m: 2.5/*margin*/ }, | 52 | screw: { d: 3, m: 2.5/*margin*/ }, |
54 | w: 3 | 53 | w: 3 |
55 | } | 54 | } |
56 | }, | 55 | }, |
57 | nut: { h: 2.3, w: 5.5 } | 56 | nut: { h: 2.3, w: 5.5 } |
58 | }; | 57 | }; |
59 | 58 | ||
60 | var U = { | 59 | var U = { |
61 | hypotenuse: function(a,b) { | 60 | hypotenuse: function(a,b) { |
62 | return Math.sqrt(Math.pow(a,2)+Math.pow(b,2)); | 61 | return Math.sqrt(Math.pow(a,2)+Math.pow(b,2)); |
63 | }, | 62 | }, |
64 | peek: function(x,m) { | 63 | peek: function(x,m) { |
65 | console.log(x,m); | 64 | console.log(x,m); |
66 | return x; | 65 | return x; |
67 | } | 66 | } |
68 | }; | 67 | }; |
69 | 68 | ||
70 | /* {h:,w:} */ | 69 | /* {h:,w:} */ |
71 | function nut(o) { | 70 | function nut(o) { |
72 | var rv = CSG.cylinder({ | 71 | var rv = CSG.cylinder({ |
73 | start:[0,0,0],end:[0,0,o.h], | 72 | start:[0,0,0],end:[0,0,o.h], |
74 | radius: o.w/2/Math.cos(Math.PI/6), | 73 | radius: o.w/2/Math.cos(Math.PI/6), |
75 | resolution: 6 | 74 | resolution: 6 |
76 | }); | 75 | }); |
77 | rv.properties.axis_connector = new CSG.Connector([0,0,0],[0,0,1],[0,1,0]); | 76 | rv.properties.axis_connector = new CSG.Connector([0,0,0],[0,0,1],[0,1,0]); |
78 | return rv; | 77 | return rv; |
79 | } | 78 | } |
80 | 79 | ||
81 | var E3DV6 = { | 80 | var E3DV6 = { |
82 | dimensions: { | 81 | dimensions: { |
83 | big_d: 22.3, | 82 | big_d: 22.3, |
84 | 83 | ||
85 | }, | 84 | }, |
86 | heatsink: function() { | 85 | heatsink: function() { |
87 | var fn = 16; | 86 | var fn = 16; |
88 | var z=0; | 87 | var z=0; |
89 | var unite = [ {d:16,h:3.7},{d:12,h:6},{d:16,h:3} ].map(function(x) { | 88 | var unite = [ {d:16,h:3.7},{d:12,h:6},{d:16,h:3} ].map(function(x) { |
90 | return CSG.cylinder({ | 89 | return CSG.cylinder({ |
91 | start: [0,0,z], end: [0,0,z-=x.h], | 90 | start: [0,0,z], end: [0,0,z-=x.h], |
92 | radius: x.d/2, resolution: fn | 91 | radius: x.d/2, resolution: fn |
93 | }); | 92 | }); |
94 | }); | 93 | }); |
95 | unite.push(CSG.cylinder({ | 94 | unite.push(CSG.cylinder({ |
96 | start:[0,0,z-=1.5], end:[0,0,z-=1], | 95 | start:[0,0,z-=1.5], end:[0,0,z-=1], |
97 | radius: 16/2, resolution: fn | 96 | radius: 16/2, resolution: fn |
98 | })); | 97 | })); |
99 | for(var i=0;i<11;++i) unite.push(CSG.cylinder({ | 98 | for(var i=0;i<11;++i) unite.push(CSG.cylinder({ |
100 | start:[0,0,z-=1.5], end:[0,0,z-=1], | 99 | start:[0,0,z-=1.5], end:[0,0,z-=1], |
101 | radius: this.dimensions.big_d/2, resolution: fn | 100 | radius: this.dimensions.big_d/2, resolution: fn |
102 | })); | 101 | })); |