summaryrefslogtreecommitdiffabout
Side-by-side diff
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
@@ -114,12 +114,22 @@ var CD = {
rv.outer_inscription_r-CONFIG.extrusion.w/2;
rv.inner_inscription_r =
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 = {
hypotenuse: function(a,b) {
return Math.sqrt(Math.pow(a,2)+Math.pow(b,2));