From 5210797ef998e5c44d2a6c8f148b4fe7f226788e Mon Sep 17 00:00:00 2001 From: Norbert Harrer Date: Mon, 29 Jan 2024 17:31:06 +0100 Subject: [PATCH] Fixed: A positive inset (recessed stem) was also shortening the whole key. --- src/key.scad | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/key.scad b/src/key.scad index d1278b0..34b971d 100644 --- a/src/key.scad +++ b/src/key.scad @@ -66,7 +66,8 @@ module dished(depth_difference = 0, inverted = false) { difference(){ union() { // envelope is needed to "fill in" the rest of the keycap. intersections with small objects are much faster than differences with large objects - envelope(depth_difference, $stem_inset); + // note: enlarge envelope only for negative stems which stick out + envelope(depth_difference, $stem_inset < 0 ? $stem_inset : 0); if (inverted) top_placement(depth_difference) color($secondary_color) _dish(inverted); } if (!inverted) top_placement(depth_difference) color($secondary_color) _dish(inverted);