chiark / gitweb /
toolbox-inserts: cavity model, fix, z
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 21 Apr 2025 10:19:18 +0000 (11:19 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 21 Apr 2025 10:19:18 +0000 (11:19 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index 05cd0dd9e201a447bdcccdf4f9d482ed5225527c..a08e466b4fe107d831363b6c1d9de79a35d3c151 100644 (file)
@@ -9,6 +9,8 @@ box_main_z = 35.0 - 0.5;
 box_edge_z_hindent = 0.5;
 box_edge_width = 10;
 
+below_plane_z = 4.5;
+
 well_surround_wall = 2.5;
 well_stiffening_height = 5;
 
@@ -93,8 +95,8 @@ module BoxCavityModelMainPlan() {
   hull(){
     for (xsg=[-1,+1]) {
       for (ysg=[-1,+1]) {
-       translate([ xsg * (box_x/2 + box_cnr_r),
-                   ysg * (box_y/2 + box_cnr_r) ])
+       translate([ xsg * (box_x/2 - box_cnr_r),
+                   ysg * (box_y/2 - box_cnr_r) ])
          circle(box_cnr_r);
       }
     }
@@ -102,7 +104,7 @@ module BoxCavityModelMainPlan() {
 }
 
 module BoxCavityModel() { ////toplevel
-  translate([ 0,0, 0 ]) {
+  translate([ 0,0, -below_plane_z ]) {
     linextr(0, box_main_z)
       BoxCavityModelMainPlan();
     for (z = [-box_edge_z_hindent, box_main_z-10 + box_edge_z_hindent]) {