author | Michael Krelin <hacker@klever.net> | 2016-01-13 09:50:19 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2016-01-13 09:50:19 (UTC) |
commit | b1ff07b6fa7c70633ee564cefb3c0325b9da60ab (patch) (side-by-side diff) | |
tree | bb28ce98c0aef591f6dce003b3610cb734af8054 /delta.jscad | |
parent | 2dbb3965806819fc380118f30e6642759206579b (diff) | |
download | redelta-b1ff07b6fa7c70633ee564cefb3c0325b9da60ab.zip redelta-b1ff07b6fa7c70633ee564cefb3c0325b9da60ab.tar.gz redelta-b1ff07b6fa7c70633ee564cefb3c0325b9da60ab.tar.bz2 |
log config and calculated cd
-rw-r--r-- | delta.jscad | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/delta.jscad b/delta.jscad index 85cf254..9061c28 100644 --- a/delta.jscad +++ b/delta.jscad @@ -108,48 +108,49 @@ var CD = { rv.circumscription_r = CONFIG.base.sl/2/Math.cos(Math.PI/6); rv.outer_inscription_r = Math.sqrt(Math.pow(rv.circumscription_r,2)- Math.pow(CONFIG.base.sl/2,2)); rv.mid_inscription_r = rv.outer_inscription_r-CONFIG.extrusion.w/2; rv.inner_inscription_r = rv.outer_inscription_r-CONFIG.extrusion.w; // TODO: properly calculate rv.column_r = rv.circumscription_r - 48.29; return rv; })(), duetholder: (function() { var rv = {}; var s = CONFIG.base.sl; var l = CONFIG.duet.hole_spacing.x; var w = CONFIG.duet.hole_spacing.y; var h = s*Math.cos(Math.PI/6); var h1 = h*(1-l/s); rv.distance = (h1-w)/3; // hole to side return rv; })() }; +console.log(CONFIG); console.log(CD); var U = { hypotenuse: function(a,b) { return Math.sqrt(Math.pow(a,2)+Math.pow(b,2)); }, peek: function(x,m) { console.log(x,m); return x; } }; /* {h:,w:} */ function nut(o) { var rv = CSG.cylinder({ start:[0,0,0],end:[0,0,o.h], radius: o.w/2/Math.cos(Math.PI/6), resolution: 6 }); rv.properties.axis_connector = new CSG.Connector([0,0,0],[0,0,1],[0,1,0]); return rv; } var E3DV6 = { dimensions: { |