author | Michael Krelin <hacker@klever.net> | 2016-01-08 22:11:51 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2016-01-08 22:11:51 (UTC) |
commit | 59a7256a88fecb14ee79f47d49abdc34df665b81 (patch) (side-by-side diff) | |
tree | 2e1f25ddd7026d1970f8fa7064d6e6d7e5c7341b | |
parent | 9ef193aea9128ec113cfbec7f7eca7e6e51be5be (diff) | |
download | redelta-59a7256a88fecb14ee79f47d49abdc34df665b81.zip redelta-59a7256a88fecb14ee79f47d49abdc34df665b81.tar.gz redelta-59a7256a88fecb14ee79f47d49abdc34df665b81.tar.bz2 |
duetholder math
-rw-r--r-- | delta.jscad | 10 |
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 @@ -116,8 +116,18 @@ var CD = { rv.outer_inscription_r-CONFIG.extrusion.w/2; // 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; })() }; var U = { |