From 59a7256a88fecb14ee79f47d49abdc34df665b81 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Fri, 08 Jan 2016 22:11:51 +0000 Subject: duetholder math --- diff --git a/delta.jscad b/delta.jscad index 4716875..a1be156 100644 --- a/delta.jscad +++ b/delta.jscad @@ -117,6 +117,16 @@ var CD = { // 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; })() }; -- cgit v0.9.0.2