From b8c09a1bb813284c9f20dde84709557305bdc865 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 21 Apr 2025 19:36:23 +0100 Subject: [PATCH] toolbox-inserts: plates intersection workaround Signed-off-by: Ian Jackson --- toolbox-inserts.scad | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/toolbox-inserts.scad b/toolbox-inserts.scad index a351919..31c263a 100644 --- a/toolbox-inserts.scad +++ b/toolbox-inserts.scad @@ -206,11 +206,14 @@ module FixingsHoledPlan() { BoxCavityModelMainPlan(); } -module FullPlate() { ////toplevel +module OnePlate(right) { ////toplevel render() difference(){ intersection(){ BoxCavityModel(); linextr(-20, 0) square(1000, center=true); + mirror([ right? 0 : 1, 0,0 ]) + linextr_x_yz(plate_mid_gap/2, box_x) + square(1000, center=true); } union(){ @@ -228,23 +231,15 @@ module FullPlate() { ////toplevel } } -module OnePlate(mx) { - intersection(){ - FullPlate(); - mirror([ mx, 0,0 ]) - linextr_x_yz(plate_mid_gap/2, box_x) - square(1000, center=true); - } -} module LeftPlate() { ////toplevel - OnePlate(1); + render() OnePlate(false); } module RightPlate() { ////toplevel - OnePlate(0); + render() OnePlate(true); } module TestPlates() { ////toplevel - intersection(){ + render() intersection(){ union(){ LeftPlate(); RightPlate(); @@ -255,7 +250,7 @@ module TestPlates() { ////toplevel [ 100, -40 ]); } - %OdAt(-5.5, -6) DriverHandleHolder(); +// %OdAt(-5.5, -6) DriverHandleHolder(); } module LeftPlatePrint() { ////toplevel rotate([180,0,0]) LeftPlate(); -- 2.30.2