summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--delta.jscad10
1 files changed, 10 insertions, 0 deletions
diff --git a/delta.jscad b/delta.jscad
index 4716875..a1be156 100644
--- a/delta.jscad
+++ b/delta.jscad
@@ -112,16 +112,26 @@ var CD = {
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/2;
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 })(),
121 duetholder: (function() {
122 var rv = {};
123 var s = CONFIG.base.sl;
124 var l = CONFIG.duet.hole_spacing.x;
125 var w = CONFIG.duet.hole_spacing.y;
126 var h = s*Math.cos(Math.PI/6);
127 var h1 = h*(1-l/s);
128 rv.distance = (h1-w)/3; // hole to side
129 return rv;
120 })() 130 })()
121}; 131};
122 132
123var U = { 133var U = {
124 hypotenuse: function(a,b) { 134 hypotenuse: function(a,b) {
125 return Math.sqrt(Math.pow(a,2)+Math.pow(b,2)); 135 return Math.sqrt(Math.pow(a,2)+Math.pow(b,2));
126 }, 136 },
127 peek: function(x,m) { 137 peek: function(x,m) {