case update: power switch hole
This commit is contained in:
@@ -24,6 +24,8 @@ rim_extra_height = 3.0;
|
|||||||
|
|
||||||
pillar_dia = 5;
|
pillar_dia = 5;
|
||||||
|
|
||||||
|
back_hole_dia = 15.5;
|
||||||
|
|
||||||
case_w = plate_w + (wall_thickness * 2) + (clearance * 2) - 2;
|
case_w = plate_w + (wall_thickness * 2) + (clearance * 2) - 2;
|
||||||
case_h = (plate_h * cos(case_angle)) + (wall_thickness * 2) + (clearance * 2) - 2 * cos(case_angle);
|
case_h = (plate_h * cos(case_angle)) + (wall_thickness * 2) + (clearance * 2) - 2 * cos(case_angle);
|
||||||
|
|
||||||
@@ -45,6 +47,20 @@ clip_width = 10.0;
|
|||||||
clip_depth = 1.5;
|
clip_depth = 1.5;
|
||||||
clip_height = 1.5;
|
clip_height = 1.5;
|
||||||
|
|
||||||
|
module back_wall_hole() {
|
||||||
|
// X position: between holder and right wall
|
||||||
|
holder_right_edge = (case_w / 2) + (holder_x / 2) + holder_wall;
|
||||||
|
inner_right_wall = case_w - wall_thickness;
|
||||||
|
x_pos = (holder_right_edge + inner_right_wall) / 2;
|
||||||
|
|
||||||
|
// Z position: bottom of the hole touching the bottom of the case
|
||||||
|
z_pos = floor_thickness + (back_hole_dia / 2);
|
||||||
|
|
||||||
|
translate([x_pos, case_h - wall_thickness - 1, z_pos])
|
||||||
|
rotate([-90, 0, 0])
|
||||||
|
cylinder(d = back_hole_dia, h = wall_thickness + 2, $fn = 64);
|
||||||
|
}
|
||||||
|
|
||||||
module controller_holder() {
|
module controller_holder() {
|
||||||
x_pos = (case_w / 2) - (holder_x / 2) - holder_wall;
|
x_pos = (case_w / 2) - (holder_x / 2) - holder_wall;
|
||||||
y_inner_wall = case_h - wall_thickness;
|
y_inner_wall = case_h - wall_thickness;
|
||||||
@@ -145,5 +161,6 @@ module case_full_geometry() {
|
|||||||
difference() {
|
difference() {
|
||||||
case_full_geometry();
|
case_full_geometry();
|
||||||
usb_cutout();
|
usb_cutout();
|
||||||
|
back_wall_hole();
|
||||||
}
|
}
|
||||||
controller_holder();
|
controller_holder();
|
||||||
Reference in New Issue
Block a user