chiark / gitweb /
digispark-with-cable: wip progress
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 17 Oct 2023 21:54:18 +0000 (22:54 +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 151963a79959ede517c08f81e706c3ed6d2e4a13..d3cf05fa4affa8b2bdc3134f9dad940c661803f8 100644 (file)
@@ -91,20 +91,22 @@ 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,
               cover_strap_cutout_z*2 ],
             center=true);
-      translate([ -total_side_wall_x, y_c, bottom_base_z ])
-       rotate([0, -45, 0])
-       cube([ side_wall_th,
-              strap_w,
-              10 ],
-            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);
   }
 }
 
@@ -233,7 +235,7 @@ module Bottom(){ ////toplevel
       CoverRegistrations();
       cube([ 1, fit_gap_y*2, fit_gap_z*2 ], center=true);
     }
-    CoverStrapCutouts();
+    BottomStrapCutouts(-cover_strap_c_d_y);
   }
 }