1.1 --- a/cartridge.scad Sat Jan 11 01:12:34 2014 +0100
1.2 +++ b/cartridge.scad Sat Jan 11 02:00:47 2014 +0100
1.3 @@ -38,6 +38,14 @@
1.4
1.5 groove_depth = 1.0;
1.6
1.7 + back_cavity_width = 68.0;
1.8 + back_cavity_inner_width = 65.0;
1.9 + back_cavity_offset_from_left = 10.5;
1.10 + back_cavity_inner_offset_from_left = 12.0;
1.11 + back_cavity_height = 13.5;
1.12 + back_cavity_inner_height = 12.0;
1.13 + back_cavity_depth = 1.5;
1.14 +
1.15 /* Side thicknesses. */
1.16
1.17 front = 2;
1.18 @@ -90,17 +98,54 @@
1.19 /* Left groove. */
1.20
1.21 translate([-width / 2 + groove_depth / 2, 0, 0])
1.22 - cube([groove_depth, groove_depth, height], center = true);
1.23 + cube([groove_depth, groove_depth, height],
1.24 + center = true);
1.25
1.26 /* Right groove. */
1.27
1.28 translate([width / 2 - groove_depth / 2, 0, 0])
1.29 - cube([groove_depth, groove_depth, height], center = true);
1.30 + cube([groove_depth, groove_depth, height],
1.31 + center = true);
1.32
1.33 /* Top groove. */
1.34
1.35 translate([0, 0, height / 2 - groove_depth / 2])
1.36 - cube([width, groove_depth, groove_depth], center = true);
1.37 + cube([width, groove_depth, groove_depth],
1.38 + center = true);
1.39 + }
1.40 +
1.41 + /* Back cavity. */
1.42 +
1.43 + intersection() {
1.44 +
1.45 + /* From the bottom upwards. */
1.46 +
1.47 + translate([0, depth / 2, -height / 2])
1.48 + linear_extrude(height = back_cavity_height)
1.49 + translate([-width / 2, 0, 0])
1.50 + polygon([
1.51 + [back_cavity_offset_from_left, 0],
1.52 + [back_cavity_inner_offset_from_left,
1.53 + -back_cavity_depth],
1.54 + [back_cavity_inner_offset_from_left +
1.55 + back_cavity_inner_width,
1.56 + -back_cavity_depth],
1.57 + [back_cavity_offset_from_left +
1.58 + back_cavity_width, 0]
1.59 + ]);
1.60 +
1.61 + /* From left to right. */
1.62 +
1.63 + translate([back_cavity_width / 2, depth / 2, -height / 2])
1.64 + rotate([0, -90, 0])
1.65 + linear_extrude(height = back_cavity_width)
1.66 + polygon([
1.67 + [-extra, -back_cavity_depth],
1.68 + [back_cavity_inner_height,
1.69 + -back_cavity_depth],
1.70 + [back_cavity_height, 0],
1.71 + [-extra, 0]
1.72 + ]);
1.73 }
1.74
1.75 /* Fillets to round off the edges. */