From 23bbb57bb3129d07a8eac71cc100d4c7f4373f52 Mon Sep 17 00:00:00 2001 From: daniel watson Date: Tue, 10 Apr 2018 17:43:35 -0700 Subject: [PATCH] make nub depth modifiable at top level --- 3030-dampener-feet.scad | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/3030-dampener-feet.scad b/3030-dampener-feet.scad index 28918ba..0a578f0 100644 --- a/3030-dampener-feet.scad +++ b/3030-dampener-feet.scad @@ -11,6 +11,10 @@ $fn = 100; // use this for generating STL foot_height = 18; foot_length = 20; wall_width = 2; +nub_depth = 4; + +fudge = 0.1; +//fudge = 0.0; // 3030 dimensions x = 30; // adding a little because printers aren't perfect @@ -51,15 +55,14 @@ module half_foot_2d() { -(sin(45) * foot_height + wall_width)]) { square([x / 2 - cos(45) * foot_height, wall_width]); } // bottom nub, goes into bottom 3030 opening - translate([(x - opening_width) / 2 + 0.2, 0]) { - square([opening_width / 2 - 0.2, wall_width * 2]); } + translate([(x - opening_width) / 2, 0]) { + square([opening_width / 2, nub_depth]); } // side nub, goes into side 3030 openings a = opening_width; b = foot_height + wall_width - (y - opening_width) / 2; side_nub_length = (a < b) ? a : b; - fudge = 0.3; translate([0, (y - opening_width) / 2 + fudge]) { - square([wall_width, side_nub_length - fudge]); } } + square([nub_depth, side_nub_length - fudge]); } } module foot_2d() { round_corners(wall_width / 2.1) { -- 2.30.2