From 959be9d04876050b38aa119a8373d665fbbeacb8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 21 Apr 2025 19:40:10 +0100 Subject: [PATCH] toolbox-inserts: flail around openscad bugs Signed-off-by: Ian Jackson --- toolbox-inserts.scad | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/toolbox-inserts.scad b/toolbox-inserts.scad index 31c263a..4fb69bb 100644 --- a/toolbox-inserts.scad +++ b/toolbox-inserts.scad @@ -206,14 +206,13 @@ module FixingsHoledPlan() { BoxCavityModelMainPlan(); } -module OnePlate(right) { ////toplevel +module SomePlates(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); + + children(0); } union(){ @@ -231,6 +230,14 @@ module OnePlate(right) { ////toplevel } } +module PlateSelect(right) { + mirror([ right? 0 : 1, 0,0 ]) + linextr_x_yz(plate_mid_gap/2, box_x) + square(1000, center=true); +} +module OnePlate(right) { + SomePlates() PlateSelect(right); +} module LeftPlate() { ////toplevel render() OnePlate(false); } @@ -239,10 +246,10 @@ module RightPlate() { ////toplevel } module TestPlates() { ////toplevel - render() intersection(){ - union(){ - LeftPlate(); - RightPlate(); + render() intersection() { + SomePlates() union(){ + PlateSelect(false); + PlateSelect(true); } linextr(-100,100) -- 2.30.2