# HG changeset patch # User Paul Boddie # Date 1389397422 -3600 # Node ID 6d6a89d6dddc427e23f57ec5e01cbd73a330242e # Parent 70e6508742f452b193194bd8697d0f6c28045f93 Added cartridge label inset regions. diff -r 70e6508742f4 -r 6d6a89d6dddc cartridge.scad --- a/cartridge.scad Sat Jan 11 00:25:23 2014 +0100 +++ b/cartridge.scad Sat Jan 11 00:43:42 2014 +0100 @@ -16,6 +16,17 @@ height = 68.5; depth = 16.5; + /* Details. */ + + front_label_width = 83.0; + front_label_height = 46.0; + front_label_depth = 1.0; + front_label_offset_from_bottom = 19.5; + top_label_width = front_label_width; + top_label_height = 11.5; + top_label_depth = front_label_depth; + top_label_offset_from_front = 2.5; + /* Side thicknesses. */ front = 2; @@ -33,6 +44,9 @@ extra = 0; difference() { + + /* The cartridge surfaces. */ + union() { translate([0, -depth / 2 + front / 2, 0]) cube([width, front, height], center = true); @@ -46,6 +60,28 @@ cube([width, depth, top], center = true); } + /* Label insets. */ + + union() { + + /* Front label. */ + + translate([-front_label_width / 2, -depth / 2, + front_label_offset_from_bottom - height / 2]) + cube([front_label_width, front_label_depth, + front_label_height]); + + /* Top label. */ + + translate([-top_label_width / 2, + -depth / 2 + top_label_offset_from_front, + height / 2 - top_label_depth]) + cube([top_label_width, top_label_height, + top_label_depth]); + } + + /* Fillets to round off the edges. */ + union() { /* Top left and right rounding. */