# HG changeset patch # User Paul Boddie # Date 1439486679 -7200 # Node ID 050422da2f7da35f20fe593e16731c97011ba4ba # Parent 5c038e9c2e0f78b4f55c98d0c7dcf72e72f61d36 Added a PCB feature and top surface configuration for testing purposes. diff -r 5c038e9c2e0f -r 050422da2f7d cartridge.scad --- a/cartridge.scad Thu Aug 13 19:04:50 2015 +0200 +++ b/cartridge.scad Thu Aug 13 19:24:39 2015 +0200 @@ -1,5 +1,5 @@ /* -Copyright (C) 2014 Paul Boddie +Copyright (C) 2014, 2015 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -45,6 +45,7 @@ BACK = 1; BACK_SURFACE = 1; FRONT = 1; FRONT_SURFACE = 1; + TOP_SURFACE = 1; /* For printing: APART = 1; PCB = 0; */ @@ -430,6 +431,11 @@ wide_pcb_lug_hole_radius = 4.0; + /* An example feature for use with PCB testing. */ + + feature_width = 15.0; feature_depth = 7.0; feature_height = 40.0; + feature_height_offset = 10.0; + /* Repeated constructs. */ module pcb_support(xdir, bump_height, bump_offset) { @@ -598,9 +604,10 @@ /* Top surface for the front piece. */ - cube_at(payload_width, front_depth, top, - 0, -1, 1, - payload_centre, 0, int_payload_upper_extent); + if (TOP_SURFACE) + cube_at(payload_width, front_depth, top, + 0, -1, 1, + payload_centre, 0, int_payload_upper_extent); } difference() { @@ -835,9 +842,10 @@ /* Top of back piece. */ - cube_at(payload_width, back_depth, top, - 0, 1, 1, - payload_centre, 0, int_payload_upper_extent); + if (TOP_SURFACE) + cube_at(payload_width, back_depth, top, + 0, 1, 1, + payload_centre, 0, int_payload_upper_extent); /* The extension of the back to connect with the front. Here, the inside @@ -1172,6 +1180,12 @@ edge_connector_height, 0, -1, -1, 0, edge_connector_cutout_back_depth, 0); + + /* Feature. */ + + cube_at(feature_width, feature_depth, feature_height, + 0, 1, 1, + 0, edge_connector_cutout_back_depth, feature_height_offset); } /* Holes for mounting. */ @@ -1239,6 +1253,12 @@ edge_connector_height, 0, -1, -1, 0, edge_connector_cutout_back_depth, 0); + + /* Feature. */ + + cube_at(feature_width, feature_depth, feature_height, + 0, 1, 1, + 0, edge_connector_cutout_back_depth, feature_height_offset); } /* Holes for lugs. */