1.1 --- a/cartridge.scad Sat Jan 11 00:25:23 2014 +0100
1.2 +++ b/cartridge.scad Sat Jan 11 00:43:42 2014 +0100
1.3 @@ -16,6 +16,17 @@
1.4 height = 68.5;
1.5 depth = 16.5;
1.6
1.7 + /* Details. */
1.8 +
1.9 + front_label_width = 83.0;
1.10 + front_label_height = 46.0;
1.11 + front_label_depth = 1.0;
1.12 + front_label_offset_from_bottom = 19.5;
1.13 + top_label_width = front_label_width;
1.14 + top_label_height = 11.5;
1.15 + top_label_depth = front_label_depth;
1.16 + top_label_offset_from_front = 2.5;
1.17 +
1.18 /* Side thicknesses. */
1.19
1.20 front = 2;
1.21 @@ -33,6 +44,9 @@
1.22 extra = 0;
1.23
1.24 difference() {
1.25 +
1.26 + /* The cartridge surfaces. */
1.27 +
1.28 union() {
1.29 translate([0, -depth / 2 + front / 2, 0])
1.30 cube([width, front, height], center = true);
1.31 @@ -46,6 +60,28 @@
1.32 cube([width, depth, top], center = true);
1.33 }
1.34
1.35 + /* Label insets. */
1.36 +
1.37 + union() {
1.38 +
1.39 + /* Front label. */
1.40 +
1.41 + translate([-front_label_width / 2, -depth / 2,
1.42 + front_label_offset_from_bottom - height / 2])
1.43 + cube([front_label_width, front_label_depth,
1.44 + front_label_height]);
1.45 +
1.46 + /* Top label. */
1.47 +
1.48 + translate([-top_label_width / 2,
1.49 + -depth / 2 + top_label_offset_from_front,
1.50 + height / 2 - top_label_depth])
1.51 + cube([top_label_width, top_label_height,
1.52 + top_label_depth]);
1.53 + }
1.54 +
1.55 + /* Fillets to round off the edges. */
1.56 +
1.57 union() {
1.58
1.59 /* Top left and right rounding. */