@@ -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
0 commit comments