From 0bccaeb1c3f23536d5710c0234c5b09518e98438 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 22 Apr 2025 18:55:42 +0100 Subject: [PATCH] toolbox-inserts: new way to avoid bugs, tidying Signed-off-by: Ian Jackson --- toolbox-inserts.scad | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/toolbox-inserts.scad b/toolbox-inserts.scad index 00613bf..6499c93 100644 --- a/toolbox-inserts.scad +++ b/toolbox-inserts.scad @@ -201,13 +201,11 @@ module AtFixings() { } } -module SomePlates(right) { ////toplevel +module FullPlate(right) { ////toplevel render() difference(){ intersection(){ BoxCavityModel(); linextr(-20, 0) square(1000, center=true); - - children(0); } union(){ @@ -229,7 +227,10 @@ module PlateSelect(right) { square(1000, center=true); } module OnePlate(right) { - SomePlates() PlateSelect(right); + intersection(){ + FullPlate(); + PlateSelect(right); + } } module LeftPlate() { ////toplevel render() OnePlate(false); @@ -238,20 +239,6 @@ module RightPlate() { ////toplevel render() OnePlate(true); } -module TestPlates() { ////toplevel - render() intersection() { - SomePlates() union(){ - PlateSelect(false); - PlateSelect(true); - } - - linextr(-100,100) - rectfromto([ -100, -100 ], - [ 100, -40 ]); - } - -// %OdAt(-5.5, -6) DriverHandleHolder(); -} module LeftPlatePrint() { ////toplevel rotate([180,0,0]) LeftPlate(); } @@ -259,7 +246,16 @@ module RightPlatePrint() { ////toplevel rotate([180,0,0]) RightPlate(); } module TestPlatesPrint() { ////toplevel - rotate([180,0,0]) TestPlates(); + rotate([180,0,0]) intersection() { + union(){ + LeftPlate(); + RightPlate(); + } + + linextr(-100,100) + rectfromto([ -100, -100 ], + [ 100, -40 ]); + } } module OdAt(x,y) { -- 2.30.2