From 026c0e1f6ace87e4525aaddd8c0fce7357f9b028 Mon Sep 17 00:00:00 2001 From: Daniele Verducci Date: Sun, 18 Jan 2026 09:35:19 +0100 Subject: [PATCH] Better chamfered insertion lip in the bottom part of the box --- enclosure/box.scad | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/enclosure/box.scad b/enclosure/box.scad index 2b66438..35bcddb 100644 --- a/enclosure/box.scad +++ b/enclosure/box.scad @@ -118,11 +118,11 @@ module lip() { difference() { union() { // Lip support - translate([0, 0, box_cut_height + 5]) { + translate([0, 0, box_cut_height + 7]) { intersection() { difference() { main_body(); - scale([0.95, 0.95, 0.95]) main_body(); + scale([0.90, 0.90, 0.90]) main_body(); } cube([width*2, height*2, box_cut_height], true); @@ -131,14 +131,14 @@ module lip() { // Chamfered lip for (i = [0:10]) { - translate([0, 0, box_cut_height - i * 0.5]) { + translate([0, 0, box_cut_height + 2 - i * 0.5]) { intersection() { difference() { - scale_ratio = 1 - i * 0.001; + scale_ratio = 0.98 - i * 0.002; scale([scale_ratio, scale_ratio, scale_ratio]) { main_body(); } - scale([0.95, 0.95, 0.95]) main_body(); + scale([0.92, 0.92, 0.92]) main_body(); } cube([width*2, height*2, 0.5], true); @@ -150,17 +150,17 @@ module lip() { // Leave space for screws standoffs near curved edges translate([width/2 - rounded_edge_diameter/2, -height/2, 0]) { - scale([1.2, 1.2, 1]) standoff(); + scale([1.5, 1.5, 1]) standoff(); } translate([-width/2 + rounded_edge_diameter/2, height/2, 0]) { - scale([1.2, 1.2, 1]) standoff(); + scale([1.5, 1.5, 1]) standoff(); } // Leave space for screws standoff near sharp edges translate([-width/2 + standoff_diameter/2, -height/2, 0]) { - scale([1.2, 1.2, 1]) standoff(); + scale([1.5, 1.5, 1]) standoff(); } translate([width/2 - standoff_diameter/2, height/2, 0]) { - scale([1.2, 1.2, 1]) standoff(); + scale([1.5, 1.5, 1]) standoff(); } } }