improve the edge (and name) of the frame bevel
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
parent
390df34f2b
commit
d97f68a5cd
@ -245,10 +245,10 @@ module frame_box() {
|
|||||||
difference() {
|
difference() {
|
||||||
top_points = [
|
top_points = [
|
||||||
// top bevel
|
// 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_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_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_bottom_bevel_height/2],
|
[-(frame_x/2)+4, -(frame_y/2)+4, frame_z/2-frame_bevel_height/2],
|
||||||
];
|
];
|
||||||
base_points = [
|
base_points = [
|
||||||
// majority of shape
|
// majority of shape
|
||||||
@ -259,20 +259,20 @@ module frame_box() {
|
|||||||
];
|
];
|
||||||
bottom_points = [
|
bottom_points = [
|
||||||
// bottom bevel
|
// 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_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_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_bottom_bevel_height/2],
|
[-(frame_x/2)+4, -(frame_y/2)+4, -frame_z/2+frame_bevel_height/2],
|
||||||
];
|
];
|
||||||
hull() {
|
hull() {
|
||||||
for (p = top_points) {
|
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) {
|
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) {
|
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
|
// cut out the middle to make it a box
|
||||||
|
@ -37,9 +37,9 @@ frame_x = 233;
|
|||||||
frame_y = 208;
|
frame_y = 208;
|
||||||
frame_z = 57;
|
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
|
// when creating the frame box
|
||||||
frame_bottom_bevel_height = 6;
|
frame_bevel_height = 2;
|
||||||
|
|
||||||
frame_center_to_neutrik = 70;
|
frame_center_to_neutrik = 70;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user