naming consistency: panels are top/bottom

vertical planes that make up the frame are either sides or front/back

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
2024-06-21 10:28:56 -05:00
parent de3914fa85
commit bc68f8b0dc
19 changed files with 97 additions and 97 deletions

View File

@@ -5,11 +5,11 @@
include <parameters.scad>
include <components.scad>
use <top-or-bottom.scad>
use <front-or-back.scad>
module top_or_bottom_aux_and_neutrik_box_frame_piece() {
module front_or_back_aux_and_neutrik_box_frame_piece() {
difference() {
top_or_bottom_box_frame_piece();
front_or_back_box_frame_piece();
// aux button holes
translate([-35.25, -101.5, 0]) rotate([90, 0, 0]) aux_control_three_button_cluster();
@@ -25,4 +25,4 @@ module top_or_bottom_aux_and_neutrik_box_frame_piece() {
}
}
top_or_bottom_aux_and_neutrik_box_frame_piece();
front_or_back_aux_and_neutrik_box_frame_piece();

View File

@@ -6,11 +6,11 @@
include <parameters.scad>
include <components.scad>
use <top-or-bottom.scad>
use <front-or-back.scad>
module top_or_bottom_inner_wall_frame_piece() {
module front_or_back_inner_wall_frame_piece() {
difference() {
top_or_bottom_box_frame_piece();
front_or_back_box_frame_piece();
// minus the outer wall
translate([0, -(frame_y-frame_wall)/2, 0]) cube([frame_x, frame_wall, frame_z], center=true);
// minus half of the mounting posts (the other half provided by the outer wall)
@@ -21,4 +21,4 @@ module top_or_bottom_inner_wall_frame_piece() {
}
}
top_or_bottom_inner_wall_frame_piece();
front_or_back_inner_wall_frame_piece();

View File

@@ -5,8 +5,8 @@
include <parameters.scad>
include <components.scad>
use <top-or-bottom.scad>
use <top-or-bottom-inner-wall.scad>
use <front-or-back.scad>
use <front-or-back-inner-wall.scad>
module backslash() {
polyhedron([[5, -frame_y/2, -(frame_z-panel_z*3)/2], [20, -frame_y/2, -(frame_z-panel_z*3)/2],
@@ -27,14 +27,14 @@ module backslashes() {
translate([60, 0, 0]) backslash();
}
module backslashes_windowed_top_or_bottom_box_frame_piece() {
module backslashes_windowed_front_or_back_box_frame_piece() {
difference() {
top_or_bottom_box_frame_piece();
front_or_back_box_frame_piece();
// subtract slashes from the frame wall
backslashes();
// subtract the inner wall area that will be provided by the other piece
top_or_bottom_inner_wall_frame_piece();
front_or_back_inner_wall_frame_piece();
}
}
backslashes_windowed_top_or_bottom_box_frame_piece();
backslashes_windowed_front_or_back_box_frame_piece();

View File

@@ -5,18 +5,18 @@
include <parameters.scad>
include <components.scad>
use <top-or-bottom.scad>
use <top-or-bottom-inner-wall.scad>
use <top-or-bottom-windowed-backslashes.scad>
use <front-or-back.scad>
use <front-or-back-inner-wall.scad>
use <front-or-back-windowed-backslashes.scad>
module forwardslashes_windowed_top_or_bottom_box_frame_piece() {
module forwardslashes_windowed_front_or_back_box_frame_piece() {
difference() {
top_or_bottom_box_frame_piece();
front_or_back_box_frame_piece();
// subtract slashes from the frame wall
mirror([0, 0, 1]) backslashes();
// subtract the inner wall area that will be provided by the other piece
top_or_bottom_inner_wall_frame_piece();
front_or_back_inner_wall_frame_piece();
}
}
forwardslashes_windowed_top_or_bottom_box_frame_piece();
forwardslashes_windowed_front_or_back_box_frame_piece();

View File

@@ -5,19 +5,19 @@
include <parameters.scad>
include <components.scad>
use <top-or-bottom.scad>
use <top-or-bottom-inner-wall.scad>
use <front-or-back.scad>
use <front-or-back-inner-wall.scad>
module windowed_top_or_bottom_box_frame_piece() {
module windowed_front_or_back_box_frame_piece() {
difference() {
top_or_bottom_box_frame_piece();
front_or_back_box_frame_piece();
// subtract frame wall window
translate([0, -frame_y/2, 0])
cube([frame_x-frame_mount_column_width*3.5, (frame_wall+panel_support_width)*2,
frame_z-panel_z*3], center=true);
// subtract the inner wall area that will be provided by the other piece
top_or_bottom_inner_wall_frame_piece();
front_or_back_inner_wall_frame_piece();
}
}
windowed_top_or_bottom_box_frame_piece();
windowed_front_or_back_box_frame_piece();

View File

@@ -7,7 +7,7 @@ include <parameters.scad>
include <components.scad>
use <frames/complete/left-frame.scad>
module top_or_bottom_box_frame_piece() {
module front_or_back_box_frame_piece() {
piece_width = panel_support_width+frame_wall+frame_mount_column_width;
intersection() {
left_frame();
@@ -27,4 +27,4 @@ module top_or_bottom_box_frame_piece() {
}
}
top_or_bottom_box_frame_piece();
front_or_back_box_frame_piece();

View File

@@ -5,7 +5,7 @@
include <parameters.scad>
include <components.scad>
use <top-or-bottom.scad>
use <front-or-back.scad>
module side_box_frame_piece() {
piece_width = panel_support_width+frame_wall+frame_mount_column_width;
@@ -13,8 +13,8 @@ module side_box_frame_piece() {
// side piece is left/right agnostic
frame();
// minus the top and bottom
top_or_bottom_box_frame_piece();
rotate([180, 0, 0]) top_or_bottom_box_frame_piece();
front_or_back_box_frame_piece();
rotate([180, 0, 0]) front_or_back_box_frame_piece();
// and just chop out the rest of the frame
translate([piece_width, 0, 0]) cube([frame_x, frame_y+1, frame_z+1], center=true);
}

View File

@@ -5,11 +5,11 @@
include <parameters.scad>
include <components.scad>
use <top-or-bottom-clean-for-extended-side.scad>
use <front-or-back-clean-for-extended-side.scad>
module top_or_bottom_aux_and_neutrik_box_frame_piece_for_extended_side() {
module front_or_back_aux_and_neutrik_box_frame_piece_for_extended_side() {
difference() {
top_or_bottom_box_frame_piece_for_extended_side();
front_or_back_box_frame_piece_for_extended_side();
// aux button holes
translate([-35.25, -101.5, 0]) rotate([90, 0, 0]) aux_control_three_button_cluster();
@@ -25,4 +25,4 @@ module top_or_bottom_aux_and_neutrik_box_frame_piece_for_extended_side() {
}
}
top_or_bottom_aux_and_neutrik_box_frame_piece_for_extended_side();
front_or_back_aux_and_neutrik_box_frame_piece_for_extended_side();

View File

@@ -5,14 +5,14 @@
include <parameters.scad>
include <components.scad>
use <frames/pieces/box/top-or-bottom.scad>
use <frames/pieces/box/front-or-back.scad>
module top_or_bottom_box_frame_piece_for_extended_side() {
module front_or_back_box_frame_piece_for_extended_side() {
difference() {
top_or_bottom_box_frame_piece();
front_or_back_box_frame_piece();
// ...minus the frame wall and lip on the left
translate([-frame_x/2+frame_wall/2, 0, 0]) cube([frame_wall, frame_y, frame_z], center=true);
}
}
top_or_bottom_box_frame_piece_for_extended_side();
front_or_back_box_frame_piece_for_extended_side();

View File

@@ -5,11 +5,11 @@
include <parameters.scad>
include <components.scad>
use <top-or-bottom-clean-for-extended-side.scad>
use <front-or-back-clean-for-extended-side.scad>
module clean_top_or_bottom() {
module clean_front_or_back() {
difference() {
top_or_bottom_box_frame_piece_for_extended_side();
front_or_back_box_frame_piece_for_extended_side();
// chop off the lip we left on the basic piece
translate([-frame_x/2+frame_wall/2, 0, 0]) cube([frame_wall, frame_y, frame_z], center=true);
};
@@ -18,7 +18,7 @@ module clean_top_or_bottom() {
module bottom_piece_wall() {
// get a slice of the piece (before the bevel), to use it in extruding
projection(cut=true) rotate([-90, 0, 0]) translate([0, frame_y/2-(frame_wall-frame_bevel_height)*3/2, 0])
clean_top_or_bottom();
clean_front_or_back();
}
module bottom_piece_extension() {
@@ -29,9 +29,9 @@ module bottom_piece_extension() {
}
}
module extended_top_or_bottom_frame_piece() {
clean_top_or_bottom();
module extended_front_or_back_frame_piece() {
clean_front_or_back();
translate([0, -frame_y/2+frame_wall, 0]) rotate([90, 0, 0]) bottom_piece_extension();
}
extended_top_or_bottom_frame_piece();
extended_front_or_back_frame_piece();

View File

@@ -7,7 +7,7 @@ include <parameters.scad>
include <components.scad>
use <frames/complete/left-frame.scad>
use <frames/pieces/box/side.scad>
use <top-or-bottom.scad>
use <front-or-back.scad>
module side_and_bottom_frame_piece_wall() {
// get a slice of the pieces, to use it in extruding

View File

@@ -7,7 +7,7 @@ include <parameters.scad>
include <components.scad>
use <frames/complete/left-frame.scad>
use <frames/pieces/box/side.scad>
use <top-or-bottom-clean-for-extended-side.scad>
use <front-or-back-clean-for-extended-side.scad>
module side_frame_piece_wall() {
// get a slice of the piece, to use it in extruding