X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=digispark-with-cable.scad;h=3c9169de672eaf396ddef929c37e3c387ba629fd;hb=694b732e8ad49de6403500341b4555b4218f95d3;hp=3eefdeab30062df5b2aeef5788b845051737eddb;hpb=07ba8af42d0765dcabfa7ed1ca5b391423df2da2;p=reprap-play.git 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