Skip to content

Commit fa31484

Browse files
committed
tweaks
1 parent db03617 commit fa31484

3 files changed

Lines changed: 15 additions & 17 deletions

File tree

cases/case1.scad

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,8 @@ module case() {
546546
usb_cutout_box_height + usb_cutout_box_wall_thickness * 2,
547547
usb_cutout_box_depth + usb_cutout_box_wall_thickness
548548
],
549-
top=(view_mode=="print_vertical" && usb_cutout_hole_position != "top"),
550-
bottom=(view_mode=="print_vertical" && usb_cutout_hole_position != "bottom")
549+
top=(view_mode=="print_vertical" && usb_cutout_hole_position != "top") || usb_cutout_hole_position == "back",
550+
bottom=(view_mode=="print_vertical" && usb_cutout_hole_position != "bottom") || usb_cutout_hole_position == "back"
551551
);
552552
}
553553
if (hanging_hole) {
@@ -575,17 +575,17 @@ module case() {
575575
// Screw thread hole that goes all the way
576576
translate([c[0], c[1], - 0.11])
577577
cylinder(d = case_screw_hole_thread_diameter,
578-
h = case_depth + back_depth + 0.11);
578+
h = case_depth + back_depth + 0.11);
579579

580580
// Cylinder hole from back to insert
581581
translate([c[0], c[1], case_screw_hole_insert_depth + case_screw_hole_floor_depth]) // Solid border around the screw hole
582582
cylinder(d = case_screw_hole_diameter,
583-
h = case_depth + back_depth - case_screw_hole_insert_depth - case_screw_hole_floor_depth + 0.11); // Hole for the screw thread
583+
h = case_depth + back_depth - case_screw_hole_insert_depth - case_screw_hole_floor_depth + 0.11); // Hole for the screw thread
584584

585585
// Cylinder hole from front to insert
586586
translate([c[0], c[1], - 0.11]) // Solid border around the screw hole
587587
cylinder(d = case_screw_hole_diameter,
588-
h = case_screw_hole_insert_depth + 0.11); // Hole for the screw thread
588+
h = case_screw_hole_insert_depth + 0.11); // Hole for the screw thread
589589
}
590590

591591
if (usb_cutout) {
@@ -596,13 +596,13 @@ module case() {
596596
(frame_full_height - usb_cutout_box_height - usb_cutout_box_wall_thickness * 2) * usb_cutout_offset_y_percentage / 100 + usb_cutout_box_wall_thickness,
597597
back_depth + case_depth - usb_cutout_box_depth,
598598
],
599-
size =[
599+
size=[
600600
usb_cutout_box_width,
601601
usb_cutout_box_height,
602602
usb_cutout_box_depth + 0.11
603603
],
604-
top=(view_mode=="print_vertical" && usb_cutout_hole_position != "top"),
605-
bottom=(view_mode=="print_vertical" && usb_cutout_hole_position != "bottom")
604+
top=(view_mode=="print_vertical" && usb_cutout_hole_position != "top") || usb_cutout_hole_position == "back",
605+
bottom=(view_mode=="print_vertical" && usb_cutout_hole_position != "bottom") || usb_cutout_hole_position == "back"
606606
);
607607

608608
// Hole into what's remaining

cases/waveshare.4in01f.desk.scad

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ view_mode="print_horizontal"; // [print_vertical, print_horizontal, stacked]
66

77
/* [Panel dimensions] */
88
panel_width = 69.7;
9-
panel_height = 98.5;
9+
panel_height = 98.3;
1010
panel_depth = 6.8;
1111

1212
panel_bezel_left = 10.5;
@@ -20,15 +20,11 @@ panel_border_left = 3.0;
2020
panel_border_top = 6.0;
2121
panel_border_bottom = 6.0;
2222

23-
case_inner_padding_left = 2.0;
23+
case_inner_padding_left = 3.2;
2424
case_inner_padding_right = 2.0;
2525
case_inner_padding_top = 2.0;
2626
case_inner_padding_bottom = 1.0;
2727

28-
/* [Cable gap] */
29-
panel_cable_gap_right = 30;
30-
panel_cable_gap_size = 0.8; // How into the border to cut
31-
3228
/* [Case depth] */
3329
case_depth = 6.0;
3430

@@ -59,10 +55,11 @@ kickstand_depth = 6.7;
5955
usb_cutout = true;
6056
usb_cutout_hole_position = "back"; // [top, bottom, left, right, back]
6157
usb_cutout_offset_x_percentage = 50;
62-
usb_cutout_offset_y_percentage = 82;
58+
usb_cutout_offset_y_percentage = 80;
6359
usb_cutout_box_width = 17;
6460
usb_cutout_box_height = 11;
6561
usb_cutout_box_depth = 2.2;
62+
usb_cutout_box_wall_thickness = 1.2;
6663
usb_cutout_hole_height = 5.8;
6764

6865
/* [Hanging hole] */

cases/waveshare.4in0e.desk.scad

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ view_mode="print_horizontal"; // [print_vertical, print_horizontal, stacked]
66

77
/* [Panel dimensions] */
88
panel_width = 67.8;
9-
panel_height = 101.1;
9+
panel_height = 101.0;
1010
panel_depth = 6.8;
1111

1212
panel_bezel_left = 6.2;
@@ -55,10 +55,11 @@ kickstand_depth = 6.7;
5555
usb_cutout = true;
5656
usb_cutout_hole_position = "back"; // [top, bottom, left, right, back]
5757
usb_cutout_offset_x_percentage = 50;
58-
usb_cutout_offset_y_percentage = 82;
58+
usb_cutout_offset_y_percentage = 80;
5959
usb_cutout_box_width = 17;
6060
usb_cutout_box_height = 11;
6161
usb_cutout_box_depth = 2.2;
62+
usb_cutout_box_wall_thickness = 1.2;
6263
usb_cutout_hole_height = 5.8;
6364

6465
/* [Hanging hole] */

0 commit comments

Comments
 (0)