improve the edge (and name) of the frame bevel

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
Brian S. Stephan 2024-03-01 13:30:58 -06:00
parent 390df34f2b
commit d97f68a5cd
Signed by: bss
GPG Key ID: 3DE06D3180895FCB
2 changed files with 13 additions and 13 deletions

View File

@ -245,10 +245,10 @@ module frame_box() {
difference() {
top_points = [
// top bevel
[(frame_x/2)-4, (frame_y/2)-4, frame_z/2-frame_bottom_bevel_height/2],
[-(frame_x/2)+4, (frame_y/2)-4, frame_z/2-frame_bottom_bevel_height/2],
[(frame_x/2)-4, -(frame_y/2)+4, frame_z/2-frame_bottom_bevel_height/2],
[-(frame_x/2)+4, -(frame_y/2)+4, frame_z/2-frame_bottom_bevel_height/2],
[(frame_x/2)-4, (frame_y/2)-4, frame_z/2-frame_bevel_height/2],
[-(frame_x/2)+4, (frame_y/2)-4, frame_z/2-frame_bevel_height/2],
[(frame_x/2)-4, -(frame_y/2)+4, frame_z/2-frame_bevel_height/2],
[-(frame_x/2)+4, -(frame_y/2)+4, frame_z/2-frame_bevel_height/2],
];
base_points = [
// majority of shape
@ -259,20 +259,20 @@ module frame_box() {
];
bottom_points = [
// bottom bevel
[(frame_x/2)-4, (frame_y/2)-4, -frame_z/2+frame_bottom_bevel_height/2],
[-(frame_x/2)+4, (frame_y/2)-4, -frame_z/2+frame_bottom_bevel_height/2],
[(frame_x/2)-4, -(frame_y/2)+4, -frame_z/2+frame_bottom_bevel_height/2],
[-(frame_x/2)+4, -(frame_y/2)+4, -frame_z/2+frame_bottom_bevel_height/2],
[(frame_x/2)-4, (frame_y/2)-4, -frame_z/2+frame_bevel_height/2],
[-(frame_x/2)+4, (frame_y/2)-4, -frame_z/2+frame_bevel_height/2],
[(frame_x/2)-4, -(frame_y/2)+4, -frame_z/2+frame_bevel_height/2],
[-(frame_x/2)+4, -(frame_y/2)+4, -frame_z/2+frame_bevel_height/2],
];
hull() {
for (p = top_points) {
translate(p) cylinder(r=2, h=frame_bottom_bevel_height, center=true);
translate(p) cylinder(r=2, h=frame_bevel_height, center=true);
}
for (p = base_points) {
translate(p) cylinder(r=2, h=frame_z-(frame_bottom_bevel_height*2), center=true);
translate(p) cylinder(r=2, h=frame_z-(frame_bevel_height*2), center=true);
}
for (p = bottom_points) {
translate(p) cylinder(r=2, h=frame_bottom_bevel_height, center=true);
translate(p) cylinder(r=2, h=frame_bevel_height, center=true);
}
}
// cut out the middle to make it a box

View File

@ -37,9 +37,9 @@ frame_x = 233;
frame_y = 208;
frame_z = 57;
// this sinks the bottom of the frame inward a bit, and is used to math out two shapes
// this sinks the bottom and top of the frame inward a bit, and is used to math out two shapes
// when creating the frame box
frame_bottom_bevel_height = 6;
frame_bevel_height = 2;
frame_center_to_neutrik = 70;