From 709fae487f0f6b29e6a249bbdf87c76063a65ebb Mon Sep 17 00:00:00 2001 From: Remi Rampin Date: Fri, 2 Feb 2024 16:39:55 -0500 Subject: [PATCH] Fillet the keychain a bit --- phone-stand-keychain.scad | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/phone-stand-keychain.scad b/phone-stand-keychain.scad index c6a9de3..a1a282e 100644 --- a/phone-stand-keychain.scad +++ b/phone-stand-keychain.scad @@ -1,3 +1,5 @@ +use + /* [Keychain] */ // overall height @@ -12,6 +14,8 @@ thickness = 4.3; // diameter of the hole for the key ring hole_diameter = 4; +fillet = 1; + /* [Phone] */ // angle between the phone and the horizontal, 90=vertical @@ -31,8 +35,15 @@ support1_thickness = 7; // the thickness of the second support, behind the phone support2_thickness = 4.5; +$fs = 0.1; + +// Polyfill for https://github.com/openscad/MCAD/pull/66 +module roundedCube_(size, radius, sidesonly) { + translate(size/2) roundedBox(size, radius, sidesonly); +} + module long_piece() { - translate([-thickness, 0, 0]) cube([thickness, length, height]); + translate([-thickness, 0, 0]) roundedCube_([thickness, length, height], fillet, false); } module phone() { @@ -46,7 +57,7 @@ module supports() { cube_length = cube_length_transverse / sin(angle); difference() { - cube([supports_length, cube_length, height]); + translate([-thickness/2, 0, 0]) roundedCube_([thickness/2 + supports_length, cube_length, height], fillet, false); // cut out phone slot phone(); // cut out back of support2