From: Ian Jackson Date: Tue, 17 Oct 2023 21:42:28 +0000 (+0100) Subject: digispark-with-cable: wip progress X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=694b732e8ad49de6403500341b4555b4218f95d3 digispark-with-cable: wip progress Signed-off-by: Ian Jackson --- diff --git a/digispark-with-cable.scad b/digispark-with-cable.scad index 3eefdea..3c9169d 100644 --- a/digispark-with-cable.scad +++ b/digispark-with-cable.scad @@ -58,6 +58,8 @@ cover_ceil_th = 0.9; // calculated strap_w = strain_w; +strap_cutout_x = side_wall_th * 2; +strap_cutout_z = side_wall_th; top_top_z = usb_wall_h; top_base_z = -board_th; @@ -87,6 +89,23 @@ module BothSides(){ } } } +module StrapCutouts(y_c, z_top){ + for (z = [ bottom_base_z, z_top ]) { + BothSides(){ + translate([ -total_side_wall_x, y_c, z_top ]) { + cube([ strap_cutout_x*2, + strap_w, + strap_cutout_z*2 ], + center=true); + } + } + } +} + +module CoverStrapCutouts(){ + StrapCutouts( -cover_strap_c_d_y, cover_top_z ); +} + module FrontWallsPlan(slop) { BothSides(){ rectfromto([ -board_w/2 - side_wall_th, 0 ], @@ -220,9 +239,14 @@ module CoverMainElevation(){ } } module Cover(){ ////toplevel - linextr_y_xz(main_y_min, front_y_max) - CoverMainElevation(); - CoverRegistrations(); + difference(){ + union(){ + linextr_y_xz(main_y_min, front_y_max) + CoverMainElevation(); + CoverRegistrations(); + } + CoverStrapCutouts(); + } } module BottomDemo(){ ////toplevel