From: Ian Jackson Date: Mon, 21 Apr 2025 18:36:23 +0000 (+0100) Subject: toolbox-inserts: plates intersection workaround X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b8c09a1bb813284c9f20dde84709557305bdc865;p=reprap-play.git toolbox-inserts: plates intersection workaround Signed-off-by: Ian Jackson --- 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();