dedupe top left and right frame pieces, they're the same shape
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
parent
45439cbf6d
commit
e7543dceb0
|
@ -7,7 +7,7 @@ include <parameters.scad>
|
||||||
include <components.scad>
|
include <components.scad>
|
||||||
use <frame-left.scad>
|
use <frame-left.scad>
|
||||||
|
|
||||||
module top_left_frame_piece() {
|
module top_left_or_right_frame_piece() {
|
||||||
piece_width = panel_support_width+frame_wall+frame_mount_column_width;
|
piece_width = panel_support_width+frame_wall+frame_mount_column_width;
|
||||||
intersection() {
|
intersection() {
|
||||||
left_frame();
|
left_frame();
|
||||||
|
@ -23,4 +23,4 @@ module top_left_frame_piece() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
top_left_frame_piece();
|
top_left_or_right_frame_piece();
|
|
@ -1,26 +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 <frame-right.scad>
|
|
||||||
|
|
||||||
module top_right_frame_piece() {
|
|
||||||
piece_width = panel_support_width+frame_wall+frame_mount_column_width;
|
|
||||||
intersection() {
|
|
||||||
right_frame();
|
|
||||||
difference() {
|
|
||||||
// include the whole top wall (including mount columns)
|
|
||||||
translate([0, (frame_y/2)-(piece_width/2), 0]) cube([frame_x, piece_width, frame_z], center=true);
|
|
||||||
// ...minus the frame wall and lip on the right
|
|
||||||
translate([frame_x/2-frame_wall/2, 0, 0])
|
|
||||||
cube([frame_wall, frame_y, frame_z], center=true);
|
|
||||||
// ...minus a slot for the combining piece to go into
|
|
||||||
cube([frame_x, frame_y-(panel_support_width+frame_wall)*2, frame_z/4], center=true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
top_right_frame_piece();
|
|
Loading…
Reference in New Issue