summaryrefslogtreecommitdiffabout
path: root/delta.jscad
authorMichael Krelin <hacker@klever.net>2016-01-13 09:50:05 (UTC)
committer Michael Krelin <hacker@klever.net>2016-01-13 09:50:05 (UTC)
commit2dbb3965806819fc380118f30e6642759206579b (patch) (unidiff)
treed021f56b970b1652eb53a8cfe3ee57ac683e053c /delta.jscad
parent64a6bb173fd448fd0b8557f3ae79625380127a7e (diff)
downloadredelta-2dbb3965806819fc380118f30e6642759206579b.zip
redelta-2dbb3965806819fc380118f30e6642759206579b.tar.gz
redelta-2dbb3965806819fc380118f30e6642759206579b.tar.bz2
corrected outer inscription radius
Diffstat (limited to 'delta.jscad') (more/less context) (ignore whitespace changes)
-rw-r--r--delta.jscad2
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
105var CD = { 105var 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