# HG changeset patch # User Paul Boddie # Date 1460307757 -7200 # Node ID d3b02249788c9d4045551445ea6d80b5a361a791 # Parent 178ff897d32fe3c16c323827adfa12377c0386d4 Cut out part of the front so that the floor is accommodated when the back connector is omitted. diff -r 178ff897d32f -r d3b02249788c cartridge.scad --- a/cartridge.scad Sun Apr 10 17:45:23 2016 +0200 +++ b/cartridge.scad Sun Apr 10 19:02:37 2016 +0200 @@ -765,22 +765,19 @@ -1, -1, 1, int_payload_left_extent, 0, int_payload_lower_extent); - if (BACK_CONNECTOR_SECTION) { - - /* Cutout to accept the back connector sides. */ + /* Cutout to accept the back connector sides (or the floor of the back piece). */ - cube_at(inner_connector_front_cutout_width, - inner_connector_front_cutout_depth, - inner_connector_front_cutout_height, - 1, -1, -1, - int_connector_width / 2, 0, int_payload_lower_extent); + cube_at(inner_connector_front_cutout_width, + inner_connector_front_cutout_depth, + BACK_CONNECTOR_SECTION ? inner_connector_front_cutout_height : bottom, + 1, -1, -1, + int_connector_width / 2, 0, int_payload_lower_extent); - cube_at(inner_connector_front_cutout_width, - inner_connector_front_cutout_depth, - inner_connector_front_cutout_height, - -1, -1, -1, - -int_connector_width / 2, 0, int_payload_lower_extent); - } + cube_at(inner_connector_front_cutout_width, + inner_connector_front_cutout_depth, + BACK_CONNECTOR_SECTION ? inner_connector_front_cutout_height : bottom, + -1, -1, -1, + -int_connector_width / 2, 0, int_payload_lower_extent); /* Fillets to round off the edges. */