[project_box] Clean up model

This commit is contained in:
Correl Roush 2022-12-06 15:10:11 -05:00
parent 60bac0c35b
commit 66cb2f6c19

View file

@ -40,25 +40,12 @@ 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]);
CubePoints = [
[ 0, 0, 0 ], //0
[ 10, 0, 0 ], //1
[ 10, 7, 0 ], //2
[ 0, 7, 0 ], //3
[ 0, 0, 5 ], //4
[ 10, 0, 5 ], //5
[ 10, 7, 5 ], //6
[ 0, 7, 5 ]]; //7
*/
color("red")
polyhedron([// bottom
[0, 0, 0], [0, 0, 0],
[x, 0, 0], [x, 0, 0],
[x, y, 0], [x, y, 0],
[0, y, 0], [0, y, 0],
// top // top face
[slot_depth, 0, z], [slot_depth, 0, z],
[x - slot_depth, 0, z], [x - slot_depth, 0, z],
[x - slot_depth, y, z], [x - slot_depth, y, z],