- if (bump_strip) {
- translate ([6, carriage_y_offset, plate_depth - carriage_nut_depth/2]) {
- for (y = [0, carriage_hole_spacing]) {
- translate ([0, y, 0]) linear_extrude (height = carriage_nut_depth/2 + 0.01) nutHole (size = carriage_bolt, proj = 1);
+ // upper shelf mount
+ translate ([0, plate_cut_y_offset, 0]) {
+ for (x = [-0.01, plate_cut_width + plate_cut_distance, plate_cut_width*2 + plate_cut_distance + plate_cut_center, plate_cut_width*3 + plate_cut_distance*2 + plate_cut_center + 0.01])
+ translate ([x, 0, 0]) square ([plate_cut_width, plate_cut_height]);
+
+ // looks like the bolt is at the midpoint between the cut outs
+ for (x = [plate_cut_x_bolt_offset, plate_width - plate_cut_x_bolt_offset])
+ translate ([x, plate_cut_height / 2, 0]) circle (d = plate_cut_bolt + hole_tolerance, $fn = 16);
+ }
+
+ // lower shelf mount
+ translate ([0, lower_cut_y_offset, 0]) {
+ for (x = [-0.01, plate_width - plate_cut_width + 0.01]) {
+ // lower cut out is closer to 6mm than 6.5mm in cad drawings
+ translate ([x, -0.01, 0]) square ([plate_cut_width, plate_cut_height - 0.5]);
+ }
+ // I think the intention is for the screw holes to be centered over the cut out
+ for (x = [lower_bolt_x_offset, plate_width - lower_bolt_x_offset])
+ translate ([x, plate_cut_height + lower_bolt_y_offset, 0]) circle (d = plate_cut_bolt + hole_tolerance, $fn = 16);