fixed other standoff opening issue and set color in vent_panel_hex.

This commit is contained in:
Edward Kisiel
2023-01-15 16:46:07 -05:00
parent 489e953d09
commit 8b11dea464
2 changed files with 7 additions and 6 deletions

View File

@@ -750,6 +750,7 @@ module fan_cover(size, thick) {
// x - specified size along x axis
// none - both borders the size of cell_spacing, no mounting holes
// anything else ("default") - all borders of specified size
//
module vent_panel_hex(x, y, thick, cell_size=8, cell_spacing=3, border=3, borders="default") {
hole = 3.2;
xb = (borders == "y" || borders == "none") ? cell_spacing : border;
@@ -764,13 +765,13 @@ module vent_panel_hex(x, y, thick, cell_size=8, cell_spacing=3, border=3, border
difference() {
color("grey",1) slab([x,y,thick],2);
translate([(x-csx)/2,(y-csy)/2,-1])
color("grey",1) translate([(x-csx)/2,(y-csy)/2,-1])
vent_hex(cells_x, cells_y, thick+3, cell_size, cell_spacing, "horizontal");
if (borders != "none") {
translate([ hxb, hyb, -1]) cylinder(d=hole, h=thick+3);
translate([x - hxb, hyb, -1]) cylinder(d=hole, h=thick+3);
translate([ hxb, y - hyb, -1]) cylinder(d=hole, h=thick+3);
translate([x - hxb, y - hyb, -1]) cylinder(d=hole, h=thick+3);
color("grey",1) translate([ hxb, hyb, -1]) cylinder(d=hole, h=thick+3);
color("grey",1) translate([x - hxb, hyb, -1]) cylinder(d=hole, h=thick+3);
color("grey",1) translate([ hxb, y - hyb, -1]) cylinder(d=hole, h=thick+3);
color("grey",1) translate([x - hxb, y - hyb, -1]) cylinder(d=hole, h=thick+3);
}
}
}