chiark / gitweb /
toolbox-inserts: plates intersection workaround
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 21 Apr 2025 18:36:23 +0000 (19:36 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 21 Apr 2025 18:36:23 +0000 (19:36 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index a3519196ebdc77b848860252f4f7b36aa2b192b3..31c263aa0af326c9c3501fcff3f814c28162c333 100644 (file)
@@ -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();