author | Michael Krelin <hacker@klever.net> | 2016-01-13 09:50:05 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2016-01-13 09:50:05 (UTC) |
commit | 2dbb3965806819fc380118f30e6642759206579b (patch) (unidiff) | |
tree | d021f56b970b1652eb53a8cfe3ee57ac683e053c /delta.jscad | |
parent | 64a6bb173fd448fd0b8557f3ae79625380127a7e (diff) | |
download | redelta-2dbb3965806819fc380118f30e6642759206579b.zip redelta-2dbb3965806819fc380118f30e6642759206579b.tar.gz redelta-2dbb3965806819fc380118f30e6642759206579b.tar.bz2 |
corrected outer inscription radius
-rw-r--r-- | delta.jscad | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/delta.jscad b/delta.jscad index 5621f0f..85cf254 100644 --- a/delta.jscad +++ b/delta.jscad | |||
@@ -104,25 +104,25 @@ var CONFIG = { | |||
104 | 104 | ||
105 | var CD = { | 105 | var CD = { |
106 | base: (function(){ | 106 | base: (function(){ |
107 | var rv = {}; | 107 | var rv = {}; |
108 | rv.circumscription_r = | 108 | rv.circumscription_r = |
109 | CONFIG.base.sl/2/Math.cos(Math.PI/6); | 109 | CONFIG.base.sl/2/Math.cos(Math.PI/6); |
110 | rv.outer_inscription_r = | 110 | rv.outer_inscription_r = |
111 | Math.sqrt(Math.pow(rv.circumscription_r,2)- | 111 | Math.sqrt(Math.pow(rv.circumscription_r,2)- |
112 | Math.pow(CONFIG.base.sl/2,2)); | 112 | Math.pow(CONFIG.base.sl/2,2)); |
113 | rv.mid_inscription_r = | 113 | rv.mid_inscription_r = |
114 | rv.outer_inscription_r-CONFIG.extrusion.w/2; | 114 | rv.outer_inscription_r-CONFIG.extrusion.w/2; |
115 | rv.inner_inscription_r = | 115 | rv.inner_inscription_r = |
116 | rv.outer_inscription_r-CONFIG.extrusion.w/2; | 116 | rv.outer_inscription_r-CONFIG.extrusion.w; |
117 | // TODO: properly calculate | 117 | // TODO: properly calculate |
118 | rv.column_r = rv.circumscription_r - 48.29; | 118 | rv.column_r = rv.circumscription_r - 48.29; |
119 | return rv; | 119 | return rv; |
120 | })(), | 120 | })(), |
121 | duetholder: (function() { | 121 | duetholder: (function() { |
122 | var rv = {}; | 122 | var rv = {}; |
123 | var s = CONFIG.base.sl; | 123 | var s = CONFIG.base.sl; |
124 | var l = CONFIG.duet.hole_spacing.x; | 124 | var l = CONFIG.duet.hole_spacing.x; |
125 | var w = CONFIG.duet.hole_spacing.y; | 125 | var w = CONFIG.duet.hole_spacing.y; |
126 | var h = s*Math.cos(Math.PI/6); | 126 | var h = s*Math.cos(Math.PI/6); |
127 | var h1 = h*(1-l/s); | 127 | var h1 = h*(1-l/s); |
128 | rv.distance = (h1-w)/3; // hole to side | 128 | rv.distance = (h1-w)/3; // hole to side |