@@ -148,7 +148,7 @@ usb_cutout_box_width = 20;
148148usb_cutout_box_height = 50 ;
149149usb_cutout_box_depth = 7 ;
150150usb_cutout_box_wall_thickness = 0.8 ;
151- usb_cutout_hole_postition = "top" ; // [top, bottom]
151+ usb_cutout_hole_position = "top" ; // [top, bottom, left, right ]
152152usb_cutout_hole_width = 14 ;
153153usb_cutout_hole_height = 6.0 ;
154154
@@ -544,8 +544,8 @@ module case() {
544544 usb_cutout_box_height + usb_cutout_box_wall_thickness * 2 ,
545545 usb_cutout_box_depth + usb_cutout_box_wall_thickness
546546 ],
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" )
549549 );
550550 }
551551 if (hanging_hole) {
@@ -599,15 +599,15 @@ module case() {
599599 usb_cutout_box_height,
600600 usb_cutout_box_depth + 0.11
601601 ],
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" )
604604 );
605605
606606 // 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" ) {
608608 translate ([
609609 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 ),
611611 frame_full_height * usb_cutout_offset_y_percentage / 100 + usb_cutout_box_wall_thickness + (usb_cutout_box_height - usb_cutout_hole_width) / 2 ,
612612 back_depth + case_depth - usb_cutout_box_depth + (usb_cutout_box_depth - usb_cutout_hole_height) / 2 ,
613613 ])
@@ -620,7 +620,7 @@ module case() {
620620 translate ([
621621 frame_full_width * usb_cutout_offset_x_percentage / 100 + usb_cutout_box_wall_thickness + (usb_cutout_box_width - usb_cutout_hole_width) / 2 ,
622622 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 ),
624624 back_depth + case_depth - usb_cutout_box_depth + (usb_cutout_box_depth - usb_cutout_hole_height) / 2 ,
625625 ])
626626 cube ([
0 commit comments