chiark / gitweb /
digispark-with-cable: wip progress
[reprap-play.git] / digispark-with-cable.scad
index d3cf05fa4affa8b2bdc3134f9dad940c661803f8..a2b32998347e3be6cda2461516847243b9849f4f 100644 (file)
@@ -90,28 +90,28 @@ module BothSides(){
     }
   }
 }
-module StrapCutouts(y_c, z_top, top_sz_x){
-    BothSides(){
-      translate([ -total_side_wall_x, y_c, z_top ])
-       cube([ top_sz_x*2,
-              strap_w,
-              cover_strap_cutout_z*2 ],
-            center=true);
-    }
-}
-module BottomStrapCutouts(y_c){
+
+module NormalStrapCutouts(y_c, z, rot){
   BothSides(){
-    translate([ -total_side_wall_x, y_c, bottom_base_z ])
-      rotate([0, -45, 0])
+    translate([ -total_side_wall_x, y_c, z ])
+      rotate([0, rot, 0])
       cube([ side_wall_th,
             strap_w,
             10 ],
           center=true);
   }
 }
-
+module BottomStrapCutouts(y_c){
+  NormalStrapCutouts(y_c, bottom_base_z, -45);
+}
 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) {