chiark / gitweb /
digispark-with-cable: midbot_registration wrong
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 19 Oct 2023 11:36:12 +0000 (12:36 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 26 Oct 2023 17:10:37 +0000 (18:10 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
digispark-with-cable.scad

index 14e9bbda2e41520e60e52e4c2485dc9d7819a163..c294ec0772d14b43bf44057e6fbd0a7dc8456959 100644 (file)
@@ -229,11 +229,22 @@ module BottomMainElevation(){
     MiddleElevationForCutout();
   }
 }
+module BottomByRegistrationElevation(){
+  difference(){
+    rectfromto([ -total_side_wall_x, bottom_base_z ],
+              [ +total_side_wall_x, bottom_wall_top_z ]);
+    MiddleElevationForCutout();
+  }
+}
 module Bottom(){ ////toplevel
   difference(){
     union(){
       linextr_y_xz(total_y_min, front_y_max)
        BottomMainElevation();
+
+      linextr_y_xz(total_y_min,
+                  midbot_registration_y_around_max)
+       BottomByRegistrationElevation();
     }
 
     linextr_y_xz(total_y_min + side_wall_th,
@@ -251,6 +262,7 @@ module Bottom(){ ////toplevel
        }
       }
     }
+
     minkowski(){
       CoverRegistrations();
       cube([ 1, fit_gap_y*2, fit_gap_z*2 ], center=true);