Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions 10InchRackGenerator.scad
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ keystones = false; // [true: Place keystone jacks, false: Remove keystone jacks]
/* [Holes] */
// Adds small cutout a USB or Power cable could be routed through to the front
front_wire_holes = false; // [true:Show front wire holes, false:Hide front wire holes]
front_wire_hole_left = true; // [true:Show left wire hole, false:Hide left wire hole]
front_wire_hole_right = true; // [true:Show right wire hole, false:Hide right wire hole]
// Diameter of wire to route through front_wire_holes.
wire_diameter = 7; // Diameter of power wire holes
// Adds hexagon air cutouts to reduce material and improve cooling.
Expand Down Expand Up @@ -204,16 +206,18 @@ module switch_mount(switch_width, switch_height, switch_depth) {

// Power wire cutouts: configurable diameter holes at top and bottom rack hole positions
module power_wire_cutouts() {
mid_y = (height - switch_height) / 2 + switch_height / 2; // Midplane of switch opening
hole_spacing_x = switch_width; // match rack holes
hole_left_x = (rack_width - hole_spacing_x) / 2 - (wire_diameter /5);
hole_right_x = (rack_width + hole_spacing_x) / 2 + (wire_diameter /5);
// Midplane of switch opening
mid_y = (height - switch_height) / 2 + switch_height / 2;
for (side_x = [hole_left_x, hole_right_x]) {
translate([side_x, mid_y, 0]) {
linear_extrude(height = chassis_depth_main) {
circle(d=wire_diameter);
}
if (front_wire_hole_left){ //make left hole
hole_left_x = (rack_width - hole_spacing_x) / 2 - (wire_diameter /5);
translate([hole_left_x, mid_y, 0]) {
linear_extrude(height = chassis_depth_main) {circle(d=wire_diameter);}
}
}
if (front_wire_hole_right){ //make right hole
hole_right_x = (rack_width + hole_spacing_x) / 2 + (wire_diameter /5);
translate([hole_right_x, mid_y, 0]) {
linear_extrude(height = chassis_depth_main) {circle(d=wire_diameter);}
}
}
}
Expand Down