@@ -148,7 +148,7 @@ usb_cutout_box_width = 20;
148
148
usb_cutout_box_height = 50 ;
149
149
usb_cutout_box_depth = 7 ;
150
150
usb_cutout_box_wall_thickness = 0.8 ;
151
- usb_cutout_hole_postition = "top" ; // [top, bottom]
151
+ usb_cutout_hole_position = "top" ; // [top, bottom, left, right ]
152
152
usb_cutout_hole_width = 14 ;
153
153
usb_cutout_hole_height = 6.0 ;
154
154
@@ -544,8 +544,8 @@ module case() {
544
544
usb_cutout_box_height + usb_cutout_box_wall_thickness * 2 ,
545
545
usb_cutout_box_depth + usb_cutout_box_wall_thickness
546
546
],
547
- top= (view_mode== "print_vertical" && usb_cutout_hole_postition != "top" ),
548
- bottom= (usb_cutout_hole_postition != "bottom" )
547
+ top= (view_mode== "print_vertical" && usb_cutout_hole_position != "top" ),
548
+ bottom= (usb_cutout_hole_position != "bottom" )
549
549
);
550
550
}
551
551
if (hanging_hole) {
@@ -599,15 +599,15 @@ module case() {
599
599
usb_cutout_box_height,
600
600
usb_cutout_box_depth + 0.11
601
601
],
602
- top= (view_mode== "print_vertical" && usb_cutout_hole_postition != "top" ),
603
- bottom= (usb_cutout_hole_postition != "bottom" )
602
+ top= (view_mode== "print_vertical" && usb_cutout_hole_position != "top" ),
603
+ bottom= (usb_cutout_hole_position != "bottom" )
604
604
);
605
605
606
606
// Hole into what's remaining
607
- if (usb_cutout_hole_postition == "left" || usb_cutout_hole_postition == "right" ) {
607
+ if (usb_cutout_hole_position == "left" || usb_cutout_hole_position == "right" ) {
608
608
translate ([
609
609
frame_full_width * usb_cutout_offset_x_percentage / 100 + usb_cutout_box_wall_thickness - usb_cutout_box_wall_thickness - 0.11
610
- + (usb_cutout_hole_postition == "right" ? usb_cutout_box_width + usb_cutout_box_wall_thickness : 0 ),
610
+ + (usb_cutout_hole_position == "right" ? usb_cutout_box_width + usb_cutout_box_wall_thickness : 0 ),
611
611
frame_full_height * usb_cutout_offset_y_percentage / 100 + usb_cutout_box_wall_thickness + (usb_cutout_box_height - usb_cutout_hole_width) / 2 ,
612
612
back_depth + case_depth - usb_cutout_box_depth + (usb_cutout_box_depth - usb_cutout_hole_height) / 2 ,
613
613
])
@@ -620,7 +620,7 @@ module case() {
620
620
translate ([
621
621
frame_full_width * usb_cutout_offset_x_percentage / 100 + usb_cutout_box_wall_thickness + (usb_cutout_box_width - usb_cutout_hole_width) / 2 ,
622
622
frame_full_height * usb_cutout_offset_y_percentage / 100 + usb_cutout_box_wall_thickness - usb_cutout_box_wall_thickness - 0.11
623
- + (usb_cutout_hole_postition == "bottom" ? usb_cutout_box_height + usb_cutout_box_wall_thickness : 0 ),
623
+ + (usb_cutout_hole_position == "bottom" ? usb_cutout_box_height + usb_cutout_box_wall_thickness : 0 ),
624
624
back_depth + case_depth - usb_cutout_box_depth + (usb_cutout_box_depth - usb_cutout_hole_height) / 2 ,
625
625
])
626
626
cube ([
0 commit comments