[project_box] Clean up model
This commit is contained in:
parent
60bac0c35b
commit
66cb2f6c19
1 changed files with 22 additions and 35 deletions
|
@ -9,13 +9,13 @@ $fn=50;
|
||||||
|
|
||||||
board_x = 50;
|
board_x = 50;
|
||||||
board_y = 70;
|
board_y = 70;
|
||||||
board_thickness = 1; // [1:10]
|
board_thickness = 1; // [1:10]
|
||||||
clearance_above = 20; // [5:50]
|
clearance_above = 20; // [5:50]
|
||||||
clearance_below = 10; // [5:50]
|
clearance_below = 10; // [5:50]
|
||||||
fit_tolerance = 0.5;
|
fit_tolerance = 0.5;
|
||||||
corner_radius=3; // [1:10]
|
corner_radius=3; // [1:10]
|
||||||
support_radius=5; // [1:10]
|
support_radius=5; // [1:10]
|
||||||
wall_width=3; // [3:10]
|
wall_width=3; // [3:10]
|
||||||
|
|
||||||
module _rounded_box(h, w, d, r) {
|
module _rounded_box(h, w, d, r) {
|
||||||
hull() {
|
hull() {
|
||||||
|
@ -40,35 +40,22 @@ module corner_post(h, r) {
|
||||||
}
|
}
|
||||||
|
|
||||||
module lid_base(x, y, z, slot_depth=1.5) {
|
module lid_base(x, y, z, slot_depth=1.5) {
|
||||||
/*
|
polyhedron([// bottom face
|
||||||
cube([10,7,5]);
|
[0, 0, 0],
|
||||||
CubePoints = [
|
[x, 0, 0],
|
||||||
[ 0, 0, 0 ], //0
|
[x, y, 0],
|
||||||
[ 10, 0, 0 ], //1
|
[0, y, 0],
|
||||||
[ 10, 7, 0 ], //2
|
// top face
|
||||||
[ 0, 7, 0 ], //3
|
[slot_depth, 0, z],
|
||||||
[ 0, 0, 5 ], //4
|
[x - slot_depth, 0, z],
|
||||||
[ 10, 0, 5 ], //5
|
[x - slot_depth, y, z],
|
||||||
[ 10, 7, 5 ], //6
|
[slot_depth, y, z]],
|
||||||
[ 0, 7, 5 ]]; //7
|
[[0,1,2,3],
|
||||||
*/
|
[4,5,1,0],
|
||||||
color("red")
|
[7,6,5,4],
|
||||||
polyhedron([// bottom
|
[5,6,2,1],
|
||||||
[0, 0, 0],
|
[6,7,3,2],
|
||||||
[x, 0, 0],
|
[7,4,0,3]]);
|
||||||
[x, y, 0],
|
|
||||||
[0, y, 0],
|
|
||||||
// top
|
|
||||||
[slot_depth, 0, z],
|
|
||||||
[x - slot_depth, 0, z],
|
|
||||||
[x - slot_depth, y, z],
|
|
||||||
[slot_depth, y, z]],
|
|
||||||
[[0,1,2,3],
|
|
||||||
[4,5,1,0],
|
|
||||||
[7,6,5,4],
|
|
||||||
[5,6,2,1],
|
|
||||||
[6,7,3,2],
|
|
||||||
[7,4,0,3]]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module project_box(x, y,
|
module project_box(x, y,
|
||||||
|
|
Loading…
Reference in a new issue