From dc12d7f6a1e7e47112799932a1287835749c2d61 Mon Sep 17 00:00:00 2001 From: Edward Kisiel Date: Sun, 7 Apr 2024 16:31:30 -0400 Subject: [PATCH] added linear top and bottom vents and removed unused exhaust vent variable --- mod/case_bottom.scad | 13 +++++++++++++ mod/case_top.scad | 6 ++++++ sbc_case_builder.scad | 6 ++---- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/mod/case_bottom.scad b/mod/case_bottom.scad index 1cb18f3..ed6f059 100644 --- a/mod/case_bottom.scad +++ b/mod/case_bottom.scad @@ -442,6 +442,19 @@ module case_bottom(case_design) { if(bottom_cover_pattern == "hex_8mm") { translate([1,2,-2]) vent_hex((width)/5.5,(depth)/9.5,floorthick+4,8,1.5,"horizontal"); } + if(bottom_cover_pattern == "linear_vertical") { + translate([0,-gap,-2]) vent(wallthick,depth-2*wallthick-gap,floorthick+4,1,1,(width-2*wallthick-gap)/4,"horizontal"); + } + if(bottom_cover_pattern == "linear_horizontal") { + translate([-gap,-gap,-2]) vent(width-2*wallthick-gap,wallthick,floorthick+4,1,(depth-2*wallthick-gap)/3,1,"horizontal"); + } + if(bottom_cover_pattern == "astroid") { + for(c=[3:12:depth-8]) { + for(r=[4:12:width-8]) { + translate([r,c,-4]) linear_extrude(floorthick+5) import("./dxf/astroid_8mm.dxf"); + } + } + } } } // pcb standoffs diff --git a/mod/case_top.scad b/mod/case_top.scad index 9517c31..a41f09f 100644 --- a/mod/case_top.scad +++ b/mod/case_top.scad @@ -364,6 +364,12 @@ module case_top(case_design) { if(top_cover_pattern == "hex_8mm") { translate([1,2,case_z-2]) vent_hex((width)/5.5,(depth)/9.5,floorthick+4,8,1.5,"horizontal"); } + if(top_cover_pattern == "linear_vertical") { + translate([0,-gap,case_z-2]) vent(wallthick,depth-2*wallthick-gap,floorthick+4,1,1,(width-2*wallthick-gap)/4,"horizontal"); + } + if(top_cover_pattern == "linear_horizontal") { + translate([-gap,-gap,case_z-2]) vent(width-2*wallthick-gap,wallthick,floorthick+4,1,(depth-2*wallthick-gap)/3,1,"horizontal"); + } if(top_cover_pattern == "astroid") { for(c=[3:12:depth-8]) { for(r=[4:12:width-8]) { diff --git a/sbc_case_builder.scad b/sbc_case_builder.scad index c81098a..dd1a211 100644 --- a/sbc_case_builder.scad +++ b/sbc_case_builder.scad @@ -165,14 +165,12 @@ bottom_front_right_support = "front"; //[none,left,rear,front,right] /* [Fan and Vent Openings] */ // top cover pattern -top_cover_pattern = "solid"; //[solid,hex_5mm,hex_8mm,deltoid,astroid,apollonian] +top_cover_pattern = "solid"; //[solid,hex_5mm,hex_8mm,linear_vertical,linear_horizontal,astroid] // bottom cover pattern -bottom_cover_pattern = "solid"; //[solid,hex_5mm,hex_8mm,deltoid,astroid,apollonian] +bottom_cover_pattern = "solid"; //[solid,hex_5mm,hex_8mm,linear_vertical,linear_horizontal,astroid] // heatsink opening cooling = "default"; // [default,none,open,fan_open,fan_1,fan_2,fan_hex,vent,vent_hex_5mm,vent_hex_8mm,custom] fan_size = 0; // [0,30,40,50,60,70,80,92] -// exhaust vent -exhaust_vent = "none"; // [none,rear,front,right,left] /* [Bottom Access Panel] */ bottom_access_panel_enable = false;