rename front/back pieces for clarity, part 1

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
2024-12-04 12:47:10 -06:00
parent 8b4cc0b182
commit ca928932ba
16 changed files with 54 additions and 57 deletions

View File

@@ -5,11 +5,11 @@
include <parameters.scad>
include <components.scad>
use <front-or-back-clean-for-extended-side.scad>
use <front-or-back.scad>
module front_or_back_aux_and_neutrik_box_frame_piece_for_extended_side() {
module front_or_back_aux_and_neutrik_frame_piece() {
difference() {
front_or_back_box_frame_piece_for_extended_side();
front_or_back_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 front_or_back_aux_and_neutrik_box_frame_piece_for_extended_side() {
}
}
front_or_back_aux_and_neutrik_box_frame_piece_for_extended_side();
front_or_back_aux_and_neutrik_frame_piece();

View File

@@ -1,18 +0,0 @@
/*
* SPDX-FileCopyrightText: © 2024 Brian S. Stephan <bss@incorporeal.org>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
include <parameters.scad>
include <components.scad>
use <frames/pieces/box/front-or-back.scad>
module front_or_back_box_frame_piece_for_extended_side() {
difference() {
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);
}
}
front_or_back_box_frame_piece_for_extended_side();

View File

@@ -0,0 +1,37 @@
/*
* SPDX-FileCopyrightText: © 2024 Brian S. Stephan <bss@incorporeal.org>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
include <parameters.scad>
include <components.scad>
use <front-or-back.scad>
module clean_front_or_back() {
difference() {
front_or_back_frame_piece();
// 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);
};
}
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_front_or_back();
}
module bottom_piece_extension() {
// combine the original with a shrunken piece to "pull" the wall out
hull() {
linear_extrude(height=frame_extension_y) scale([1, 0.5, 1]) bottom_piece_wall();
linear_extrude(height=(frame_wall-frame_bevel_height)) bottom_piece_wall();
}
}
module front_or_back_trapezoid_frame_piece() {
clean_front_or_back();
translate([0, -frame_y/2+frame_wall, 0]) rotate([90, 0, 0]) bottom_piece_extension();
}
front_or_back_trapezoid_frame_piece();

View File

@@ -5,33 +5,14 @@
include <parameters.scad>
include <components.scad>
use <front-or-back-clean-for-extended-side.scad>
use <frames/pieces/box/front-or-back.scad>
module clean_front_or_back() {
module front_or_back_frame_piece() {
difference() {
front_or_back_box_frame_piece_for_extended_side();
// chop off the lip we left on the basic 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);
};
}
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_front_or_back();
}
module bottom_piece_extension() {
// combine the original with a shrunken piece to "pull" the wall out
hull() {
linear_extrude(height=frame_extension_y) scale([1, 0.5, 1]) bottom_piece_wall();
linear_extrude(height=(frame_wall-frame_bevel_height)) bottom_piece_wall();
}
}
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_front_or_back_frame_piece();
front_or_back_frame_piece();

View File

@@ -7,7 +7,6 @@ include <parameters.scad>
include <components.scad>
use <frames/complete/left-frame.scad>
use <frames/pieces/box/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

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 <front-or-back.scad>
use <front-or-back-trapezoid.scad>
module side_and_bottom_frame_piece_wall() {
// get a slice of the pieces, to use it in extruding

View File

@@ -7,7 +7,6 @@ include <parameters.scad>
include <components.scad>
use <frames/complete/left-frame.scad>
use <frames/pieces/box/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