From: Ian Jackson Date: Mon, 21 Apr 2025 18:40:10 +0000 (+0100) Subject: toolbox-inserts: flail around openscad bugs X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=959be9d04876050b38aa119a8373d665fbbeacb8;p=reprap-play.git toolbox-inserts: flail around openscad bugs Signed-off-by: Ian Jackson --- 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)