I was taking a hull of the whole button negative shape in many places, rather than a hull of the sliced shape, which meant the amount of decorative plate beyond the button holes varied depending on the exact positioning of how it was sliced. this was brittle in general, but more importantly made many plates too big when I cleaned up some code to remove an override that I thought was irrelevant --- it was actually affecting the overall geometry outside of the slice Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
25 lines
710 B
OpenSCAD
25 lines
710 B
OpenSCAD
/* Decorative plate for directional buttons.
|
|
*
|
|
* SPDX-FileCopyrightText: © 2024 Brian S. Stephan <bss@incorporeal.org>
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
include <parameters.scad>
|
|
decorative_radius_scale = 1.5;
|
|
include <components.scad>
|
|
|
|
module sega_2p_eleven_plate_decorative_plate() {
|
|
difference() {
|
|
hull() difference() {
|
|
// get a 2mm slice of the decorative button cylinders
|
|
translate([panel_x/2, 0, -50]) sega_2p_eleven();
|
|
translate([0, 0, -100]) cube([500, 500, 198], center=true);
|
|
translate([0, 0, 100]) cube([500, 500, 198], center=true);
|
|
}
|
|
// cut out the normal holes
|
|
translate([panel_x/2, 0, -1]) sega_2p_eleven();
|
|
}
|
|
}
|
|
|
|
sega_2p_eleven_plate_decorative_plate();
|