@@ -195,6 +195,10 @@ sd_card_in_leg_side = "left"; // [left, right]
195
195
sd_card_in_leg_side_side = "left" ; // [left, right]
196
196
sd_card_in_leg_y_percentage = 75.5 ;
197
197
198
+ sd_card_in_usb_cutout = false ;
199
+ sd_card_in_usb_cutout_side = "right" ; // [left, right]
200
+ sd_card_in_usb_cutout_y_percentage = 75.5 ;
201
+
198
202
/* [Rear cooling] */
199
203
rear_cooling = false ;
200
204
rear_cooling_x_start_percentage = 6.1 ;
@@ -281,6 +285,14 @@ hanging_hole_y = hanging_hole_edge == "top"
281
285
? frame_full_height - hanging_hole_offset - hanging_hole_box_height
282
286
: (frame_full_height - hanging_hole_box_width) / 2 ;
283
287
288
+ usb_cutout_x = (frame_full_width - usb_cutout_box_width - usb_cutout_box_wall_thickness * 2 ) * usb_cutout_offset_x_percentage / 100 ;
289
+ usb_cutout_y = (frame_full_height - usb_cutout_box_height - usb_cutout_box_wall_thickness * 2 ) * usb_cutout_offset_y_percentage / 100 ;
290
+
291
+ usb_sd_card_x_position = (sd_card_in_usb_cutout_side == "left" ? usb_cutout_x + 0.11 : usb_cutout_x - 0.11 ) +
292
+ (sd_card_in_usb_cutout_side == "left" ? 0 : usb_cutout_box_width);
293
+ usb_sd_card_y_position = usb_cutout_y + 12 + sd_card_in_usb_cutout_y_percentage / 100 * (usb_cutout_box_height - 24 );
294
+
295
+
284
296
/** ***************************************************************************/
285
297
/* Utility: Corner Screw Hole Positions */
286
298
/** ***************************************************************************/
@@ -638,18 +650,25 @@ module case() {
638
650
color (case_color)
639
651
cubeWithAngledTopBottom(
640
652
loc= [
641
- (frame_full_width - usb_cutout_box_width - usb_cutout_box_wall_thickness * 2 ) * usb_cutout_offset_x_percentage / 100 ,
642
- (frame_full_height - usb_cutout_box_height - usb_cutout_box_wall_thickness * 2 ) * usb_cutout_offset_y_percentage / 100 ,
653
+ usb_cutout_x ,
654
+ usb_cutout_y ,
643
655
back_depth + case_depth - (usb_cutout_box_depth + usb_cutout_back_wall_thickness),
644
656
],
645
- size = [
657
+ size= [
646
658
usb_cutout_box_width + usb_cutout_box_wall_thickness * 2 ,
647
659
usb_cutout_box_height + usb_cutout_box_wall_thickness * 2 ,
648
660
usb_cutout_box_depth + usb_cutout_back_wall_thickness
649
661
],
650
662
top= (view_mode== "print_vertical" && usb_cutout_hole_position != "top" ) || usb_cutout_hole_position == "back" ,
651
663
bottom= (view_mode== "print_vertical" && usb_cutout_hole_position != "bottom" ) || usb_cutout_hole_position == "back"
652
664
);
665
+
666
+ if (sd_card_in_usb_cutout) {
667
+ color (case_color)
668
+ translate ([usb_sd_card_x_position, usb_sd_card_y_position, 0 ])
669
+ rotate ([0 , 0 , sd_card_in_usb_cutout_side == "left" ? 90 : - 90 ])
670
+ sdCardAdapterBase();
671
+ }
653
672
}
654
673
if (hanging_hole) {
655
674
color (case_color)
@@ -729,8 +748,8 @@ module case() {
729
748
color (case_color)
730
749
cubeWithLeftRightGapBridge(
731
750
loc= [
732
- (frame_full_width - usb_cutout_box_width - usb_cutout_box_wall_thickness * 2 ) * usb_cutout_offset_x_percentage / 100 + usb_cutout_box_wall_thickness,
733
- (frame_full_height - usb_cutout_box_height - usb_cutout_box_wall_thickness * 2 ) * usb_cutout_offset_y_percentage / 100 + usb_cutout_box_wall_thickness,
751
+ usb_cutout_x + usb_cutout_box_wall_thickness,
752
+ usb_cutout_y + usb_cutout_box_wall_thickness,
734
753
back_depth + case_depth - usb_cutout_box_depth,
735
754
],
736
755
size= [
@@ -742,6 +761,13 @@ module case() {
742
761
bottom= (view_mode== "print_vertical" && usb_cutout_hole_position != "bottom" ) || usb_cutout_hole_position == "back"
743
762
);
744
763
764
+ if (sd_card_in_usb_cutout) {
765
+ color (case_color)
766
+ translate ([usb_sd_card_x_position + usb_cutout_box_wall_thickness, usb_sd_card_y_position, 0 ])
767
+ rotate ([0 , 0 , sd_card_in_usb_cutout_side == "left" ? 90 : - 90 ])
768
+ sdCardAdapterCutout();
769
+ }
770
+
745
771
// Hole into what's remaining
746
772
if (usb_cutout_hole_position == "left" || usb_cutout_hole_position == "right" ) {
747
773
color (case_color)
@@ -781,7 +807,6 @@ module case() {
781
807
usb_cutout_hole_height,
782
808
usb_cutout_back_wall_thickness + 0.22 ,
783
809
]);
784
-
785
810
}
786
811
}
787
812
0 commit comments