added basic lid shape

This commit is contained in:
Zeos-ctrl 2023-04-16 12:47:17 +01:00
parent 115f7ba6cb
commit 3abf4ab609

View File

@ -134,7 +134,12 @@ module expansion_card_lid() {
gap = 0.25;
difference() {
union() {
// makes lower lid
translate([side_wall+gap, side_wall+gap, base[2]-side_wall]) cube([base[0]-side_wall*2-gap*2, base[1]-side_wall*2-gap*2, side_wall]);
// makes upper lid
translate([base[0]-base_ext[0]+side_wall+gap, -base_ext[1]+2*(side_wall+gap), base_ext[2]-side_wall]) cube([base_ext[0]-side_wall*2-gap*2, base_ext[1]-side_wall*2-gap*2, side_wall]);
// joins them together
translate([side_wall+gap,0,base_ext[2]-(base_ext[2]-base[2])-side_wall]) cube([base[0]-side_wall*2-gap*2, side_wall+gap, base_ext[2]-base[2]+side_wall]);
difference() {
translate([base[0]/2-usb_c_w/2+gap, base[1]-side_wall-gap, usb_c_r+usb_c_h]) cube([usb_c_w-gap*2, side_wall+gap, base[2]-(usb_c_r+usb_c_h)]);
translate([base[0]/2, base[1], usb_c_r+usb_c_h]) usb_c_cutout(false);
@ -252,8 +257,8 @@ translate([0, -base[1], 0]) expansion_card_base(open_end = false, make_printable
translate([-base_ext[0]+base[0], -base_ext[1]-base[1], 0]) expansion_card_ext();
/*expansion_card_lid();
translate([0, 1, 0]) expansion_card_lid();
translate([3, 20, 6]) linear_extrude(height=1, center=true) {
offset(0.01) import("LES.svg"); // the offset fixes a weird error about the svg's mesh being incomplete
}*/
}