From 8866c15d35d63038e00ab0796c42ca713e801685 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 6 May 2025 20:20:59 +0100 Subject: [PATCH] toolbox-inserts: bevel edge wip Signed-off-by: Ian Jackson --- toolbox-inserts.scad | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/toolbox-inserts.scad b/toolbox-inserts.scad index 437c516..4ea9b51 100644 --- a/toolbox-inserts.scad +++ b/toolbox-inserts.scad @@ -185,22 +185,22 @@ module BoxCavityModelMainPlan() { } } -module BoxCavityEdgeModelPlan() { - difference(){ - BoxCavityModelMainPlan(); - offset(r = -box_edge_width) - BoxCavityModelMainPlan(); - } -} - module BoxCavityModel() { ////toplevel translate([ 0,0, -below_plane_z ]) { linextr(0, box_main_z) BoxCavityModelMainPlan(); - for (z = [-box_edge_z_hindent, box_main_z-10 + box_edge_z_hindent]) { - linextr(z, z+10) { - BoxCavityEdgeModelPlan(); + + difference(){ + hull(){ + linextr(0, 1) + BoxCavityModelMainPlan(); + linextr(-box_edge_z_hindent, 1) + offset(r = -box_edge_z_hindent) + BoxCavityModelMainPlan(); } + linextr(-1, 2) + offset(r = -box_edge_width) + BoxCavityModelMainPlan(); } } } @@ -426,7 +426,8 @@ module BoxModelTest(){ ////toplevel h = 0.5; difference(){ linextr(0, h + box_edge_z_hindent) { - BoxCavityEdgeModelPlan(); + // TODO this needs to be here but we deleted it! + // BoxCavityEdgeModelPlan(); } AtPlateFixings(){ linextr(-10, 10) -- 2.30.2