From 0cb1eaa0826645e51ef80ee4680a1825b409ae58 Mon Sep 17 00:00:00 2001 From: daniel watson Date: Tue, 10 Apr 2018 17:44:13 -0700 Subject: [PATCH] make sure corner rounding radius is big enough --- 3030-dampener-feet.scad | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/3030-dampener-feet.scad b/3030-dampener-feet.scad index 0a578f0..89070c2 100644 --- a/3030-dampener-feet.scad +++ b/3030-dampener-feet.scad @@ -12,6 +12,16 @@ foot_height = 18; foot_length = 20; wall_width = 2; nub_depth = 4; +desired_corner_rounding_radius = 2/2.1; + +// rounding radius needs to be just under half the size of the wall_width +maximum_corner_rounding_radius = wall_width / 2 - 0.1; +corner_rounding_radius = + (desired_corner_rounding_radius < maximum_corner_rounding_radius) + ? + desired_corner_rounding_radius + : + maximum_corner_rounding_radius; fudge = 0.1; //fudge = 0.0; @@ -65,7 +75,7 @@ module half_foot_2d() { square([nub_depth, side_nub_length - fudge]); } } module foot_2d() { - round_corners(wall_width / 2.1) { + round_corners(corner_rounding_radius) { translate([-x / 2, 0, 0]) { half_foot_2d(); } translate([x / 2, 0, 0]) { -- 2.30.2