chiark / gitweb /
digispark-with-cable: wip progress
[reprap-play.git] / digispark-with-cable.scad
index c29b2fafa8711c9bf19e9a77759b578d686f0a1c..e6d3d7014966f32aa765b476ce1f1cda0dd01874 100644 (file)
@@ -60,7 +60,7 @@ cover_strap_sz_x = side_wall_th * 3.5;
 // calculated
 
 strap_w = strain_w;
-strap_cutout_z = side_wall_th;
+cover_strap_cutout_z = side_wall_th;
 
 top_top_z = usb_wall_h;
 top_base_z = -board_th;
@@ -90,21 +90,25 @@ module BothSides(){
     }
   }
 }
-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([ top_sz_x*2,
-              strap_w,
-              strap_cutout_z*2 ],
-            center=true);
-      }
-    }
+
+module BottomStrapCutouts(y_c){
+  BothSides(){
+    translate([ -total_side_wall_x, y_c, bottom_base_z ])
+      rotate([0, -45, 0])
+      cube([ side_wall_th,
+            strap_w,
+            10 ],
+          center=true);
   }
 }
-
 module CoverStrapCutouts(){
-  StrapCutouts( -cover_strap_c_d_y, cover_top_z, cover_strap_sz_x );
+  BothSides(){
+    translate([ -total_side_wall_x, -cover_strap_c_d_y, cover_top_z ])
+      cube([ cover_strap_sz_x*2,
+            strap_w,
+            cover_strap_cutout_z*2 ],
+          center=true);
+  }
 }
 
 module FrontWallsPlan(slop) {
@@ -228,6 +232,7 @@ module Bottom(){ ////toplevel
       CoverRegistrations();
       cube([ 1, fit_gap_y*2, fit_gap_z*2 ], center=true);
     }
+    BottomStrapCutouts(-cover_strap_c_d_y);
   }
 }