chiark / gitweb /
digispark-with-cable: wip progress
[reprap-play.git] / digispark-with-cable.scad
index 3c9169de672eaf396ddef929c37e3c387ba629fd..1f7034dc03ca096199af1e469503e1b9f548995e 100644 (file)
@@ -55,10 +55,11 @@ side_x_gap = 0.5;
 
 cover_ceil_th = 0.9;
 
+cover_strap_sz_x = side_wall_th * 3.5;
+
 // calculated
 
 strap_w = strain_w;
-strap_cutout_x = side_wall_th * 2;
 strap_cutout_z = side_wall_th;
 
 top_top_z = usb_wall_h;
@@ -89,21 +90,25 @@ module BothSides(){
     }
   }
 }
-module StrapCutouts(y_c, z_top){
+module StrapCutouts(y_c, z_top, top_sz_x){
   for (z = [ bottom_base_z, z_top ]) {
     BothSides(){
-      translate([ -total_side_wall_x, y_c, z_top ]) {
-       cube([ strap_cutout_x*2,
+      translate([ -total_side_wall_x, y_c, z_top ])
+       cube([ top_sz_x*2,
+              strap_w,
+              strap_cutout_z*2 ],
+            center=true);
+      translate([ -total_side_wall_x, y_c, bottom_base_z ])
+       cube([ side_wall_th * 0.75,
               strap_w,
               strap_cutout_z*2 ],
             center=true);
-      }
     }
   }
 }
 
 module CoverStrapCutouts(){
-  StrapCutouts( -cover_strap_c_d_y, cover_top_z );
+  StrapCutouts( -cover_strap_c_d_y, cover_top_z, cover_strap_sz_x );
 }
 
 module FrontWallsPlan(slop) {
@@ -227,6 +232,7 @@ module Bottom(){ ////toplevel
       CoverRegistrations();
       cube([ 1, fit_gap_y*2, fit_gap_z*2 ], center=true);
     }
+    CoverStrapCutouts();
   }
 }