chiark / gitweb /
toolbox-inserts: new way to avoid bugs, tidying
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 Apr 2025 17:55:42 +0000 (18:55 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 Apr 2025 17:55:42 +0000 (18:55 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index 00613bf63929a6937c3336d673d0d9ff7bd3c246..6499c934cec5a657213e54202b0a36fa12c8550f 100644 (file)
@@ -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) {