From: daniel watson Date: Wed, 11 Apr 2018 00:44:13 +0000 (-0700) Subject: make sure corner rounding radius is big enough X-Git-Url: http://challenge-bot.com/repos/?p=ozzloy%40gmail.com%2F3d-printables;a=commitdiff_plain;h=0cb1eaa0826645e51ef80ee4680a1825b409ae58 make sure corner rounding radius is big enough --- 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]) {