fixed other standoff opening issue and set color in vent_panel_hex.
This commit is contained in:
@@ -1784,7 +1784,7 @@ module case_top(case_design) {
|
|||||||
}
|
}
|
||||||
// create openings for additive
|
// create openings for additive
|
||||||
if (class == "add2" && face == "top" && type == "standoff") {
|
if (class == "add2" && face == "top" && type == "standoff") {
|
||||||
parametric_move_sub("round",loc_x,loc_y,case_z-floorthick-adjust,face,rotation,parametric,
|
parametric_move_sub("round",loc_x,loc_y,loc_z,face,rotation,parametric,
|
||||||
6.5,size_y,floorthick+1,data_1,data_2,data_3,data_4);
|
6.5,size_y,floorthick+1,data_1,data_2,data_3,data_4);
|
||||||
}
|
}
|
||||||
if ((class == "add1" || class == "add2") && face == "bottom" && type == "uart_holder") {
|
if ((class == "add1" || class == "add2") && face == "bottom" && type == "uart_holder") {
|
||||||
|
|||||||
@@ -750,6 +750,7 @@ module fan_cover(size, thick) {
|
|||||||
// x - specified size along x axis
|
// x - specified size along x axis
|
||||||
// none - both borders the size of cell_spacing, no mounting holes
|
// none - both borders the size of cell_spacing, no mounting holes
|
||||||
// anything else ("default") - all borders of specified size
|
// 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") {
|
module vent_panel_hex(x, y, thick, cell_size=8, cell_spacing=3, border=3, borders="default") {
|
||||||
hole = 3.2;
|
hole = 3.2;
|
||||||
xb = (borders == "y" || borders == "none") ? cell_spacing : border;
|
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() {
|
difference() {
|
||||||
color("grey",1) slab([x,y,thick],2);
|
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");
|
vent_hex(cells_x, cells_y, thick+3, cell_size, cell_spacing, "horizontal");
|
||||||
if (borders != "none") {
|
if (borders != "none") {
|
||||||
translate([ hxb, hyb, -1]) cylinder(d=hole, h=thick+3);
|
color("grey",1) translate([ hxb, hyb, -1]) cylinder(d=hole, h=thick+3);
|
||||||
translate([x - hxb, hyb, -1]) cylinder(d=hole, h=thick+3);
|
color("grey",1) translate([x - hxb, hyb, -1]) cylinder(d=hole, h=thick+3);
|
||||||
translate([ hxb, y - hyb, -1]) cylinder(d=hole, h=thick+3);
|
color("grey",1) 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([x - hxb, y - hyb, -1]) cylinder(d=hole, h=thick+3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user