diff --git a/printed/box.scad b/printed/box.scad index d3b329f..2b2661f 100644 --- a/printed/box.scad +++ b/printed/box.scad @@ -453,8 +453,6 @@ module box_screw_hole_positions(type) { } module box_base_blank(type) { //! Generates a 2D template for the base sheet - dxf(str(box_name(type), "_base")); - difference() { sheet_2D(box_base_sheet(type), box_width(type), box_depth(type), box_sheet_r(type)); @@ -464,8 +462,6 @@ module box_base_blank(type) { //! Generates a 2D template for the base sheet } module box_top_blank(type) { //! Generates a 2D template for the top sheet - dxf(str(box_name(type), "_top")); - difference() { sheet_2D(box_top_sheet(type), box_width(type), box_depth(type), box_sheet_r(type)); @@ -479,8 +475,6 @@ function subst_sheet(type, sheet) = sheet ? assert(sheet_thickness(sheet) == sheet_thickness(s)) sheet : s; module box_shelf_blank(type, sheet = false) { //! Generates a 2D template for a shelf sheet - dxf(str(box_name(type), "_shelf")); - difference() { sheet_2D(subst_sheet(type, sheet), box_width(type) - bezel_clearance, box_depth(type) - bezel_clearance, 1); @@ -579,50 +573,44 @@ module box_shelf_bracket_section(type, rows, cols, x, y) { //! Generates section children(); } -module box_left_blank(type, sheet = false) { //! Generates a 2D template for the left sheet, `sheet` can be set to override the type - dxf(str(box_name(type), "_left")); - +module box_left_blank(type, sheet = false) //! Generates a 2D template for the left sheet, `sheet` can be set to override the type sheet_2D(subst_sheet(type, sheet), box_depth(type) - sheet_reduction(type), box_height(type) - sheet_reduction(type), 1); -} - -module box_right_blank(type, sheet = false) { //! Generates a 2D template for the right sheet, `sheet` can be set to override the type - dxf(str(box_name(type), "_right")); +module box_right_blank(type, sheet = false) //! Generates a 2D template for the right sheet, `sheet` can be set to override the type sheet_2D(subst_sheet(type, sheet), box_depth(type) - sheet_reduction(type), box_height(type) - sheet_reduction(type), 1); -} - -module box_front_blank(type, sheet = false) { //! Generates a 2D template for the front sheet, `sheet` can be set to override the type - dxf(str(box_name(type), "_front")); +module box_front_blank(type, sheet = false) //! Generates a 2D template for the front sheet, `sheet` can be set to override the type sheet_2D(subst_sheet(type, sheet), box_width(type) - sheet_reduction(type), box_height(type) - sheet_reduction(type), 1); -} - -module box_back_blank(type, sheet = false) { //! Generates a 2D template for the back sheet, `sheet` can be set to override the type - dxf(str(box_name(type), "_back")); +module box_back_blank(type, sheet = false) //! Generates a 2D template for the back sheet, `sheet` can be set to override the type sheet_2D(subst_sheet(type, sheet), box_width(type) - sheet_reduction(type), box_height(type) - sheet_reduction(type), 1); -} module box_base(type) //! Default base, can be overridden to customise render_2D_sheet(box_base_sheet(type)) - box_base_blank(type); + dxf(str(box_name(type), "_base")) + box_base_blank(type); module box_top(type) //! Default top, can be overridden to customise render_2D_sheet(box_top_sheet(type)) - box_top_blank(type); + dxf(str(box_name(type), "_top")) + box_top_blank(type); module box_back(type) //! Default back, can be overridden to customise render_2D_sheet(box_sheets(type)) - box_back_blank(type); + dxf(str(box_name(type), "_back")) + box_back_blank(type); module box_front(type) //! Default front, can be overridden to customise render_2D_sheet(box_sheets(type)) - box_front_blank(type); + dxf(str(box_name(type), "_front")) + box_front_blank(type); module box_left(type) //! Default left side, can be overridden to customise render_2D_sheet(box_sheets(type)) - box_left_blank(type); + dxf(str(box_name(type), "_left")) + box_left_blank(type); module box_right(type) //! Default right side, can be overridden to customise render_2D_sheet(box_sheets(type)) - box_right_blank(type); + dxf(str(box_name(type), "_right")) + box_right_blank(type); diff --git a/printed/butt_box.scad b/printed/butt_box.scad index 7d324cc..a2d5acf 100644 --- a/printed/butt_box.scad +++ b/printed/butt_box.scad @@ -120,8 +120,6 @@ module bbox_drill_holes(type, t) drill(screw_clearance_radius(bbox_screw(type)), 0); module bbox_base_blank(type) { //! 2D template for the base - dxf(str(bbox_name(type), "_base")); - difference() { sheet_2D(bbox_base_sheet(type), bbox_width(type), bbox_depth(type), 1); @@ -130,8 +128,6 @@ module bbox_base_blank(type) { //! 2D template for the base } module bbox_top_blank(type) { //! 2D template for the top - dxf(str(bbox_name(type), "_top")); - t = sheet_thickness(bbox_sheets(type)); difference() { @@ -147,8 +143,6 @@ function subst_sheet(type, sheet) = sheet ? assert(sheet_thickness(sheet) == sheet_thickness(s)) sheet : s; module bbox_left_blank(type, sheet = false) { //! 2D template for the left side - dxf(str(bbox_name(type), "_left")); - t = sheet_thickness(bbox_sheets(type)); bb = sheet_thickness(bbox_base_sheet(type)); @@ -161,8 +155,6 @@ module bbox_left_blank(type, sheet = false) { //! 2D template for the left side } module bbox_right_blank(type, sheet = false) { //! 2D template for the right side - dxf(str(bbox_name(type), "_right")); - t = sheet_thickness(bbox_sheets(type)); bb = sheet_thickness(bbox_base_sheet(type)); @@ -175,8 +167,6 @@ module bbox_right_blank(type, sheet = false) { //! 2D template for the right sid } module bbox_front_blank(type, sheet = false, width = 0) { //! 2D template for the front - dxf(str(bbox_name(type), "_front")); - t = sheet_thickness(bbox_sheets(type)); bb = sheet_thickness(bbox_base_sheet(type)); bt = sheet_thickness(bbox_top_sheet(type)); @@ -190,8 +180,6 @@ module bbox_front_blank(type, sheet = false, width = 0) { //! 2D template for th } module bbox_back_blank(type, sheet = false) { //! 2D template for the back - dxf(str(bbox_name(type), "_back")); - bb = sheet_thickness(bbox_base_sheet(type)); t = sheet_thickness(bbox_sheets(type)); @@ -205,27 +193,33 @@ module bbox_back_blank(type, sheet = false) { //! 2D template for the back module bbox_base(type) //! Default base, can be overridden to customise render_2D_sheet(bbox_base_sheet(type)) - bbox_base_blank(type); + dxf(str(bbox_name(type), "_base")) + bbox_base_blank(type); module bbox_top(type) //! Default top, can be overridden to customise render_2D_sheet(bbox_top_sheet(type)) - bbox_top_blank(type); + dxf(str(bbox_name(type), "_top")) + bbox_top_blank(type); module bbox_back(type) //! Default back, can be overridden to customise render_2D_sheet(bbox_sheets(type)) - bbox_back_blank(type); + dxf(str(bbox_name(type), "_back")) + bbox_back_blank(type); module bbox_front(type) //! Default front, can be overridden to customise render_2D_sheet(bbox_sheets(type)) - bbox_front_blank(type); + dxf(str(bbox_name(type), "_front")) + bbox_front_blank(type); module bbox_left(type) //! Default left side, can be overridden to customise render_2D_sheet(bbox_sheets(type)) - bbox_left_blank(type); + dxf(str(bbox_name(type), "_left")) + bbox_left_blank(type); module bbox_right(type) //! Default right side, can be overridden to customise render_2D_sheet(bbox_sheets(type)) - bbox_right_blank(type); + dxf(str(bbox_name(type), "_right")) + bbox_right_blank(type); module _bbox_assembly(type, top = true, base = true, left = true, right = true, back = true, front = true) { //! The box assembly, wrap with a local copy without parameters width = bbox_width(type);