-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwledcase.scad
41 lines (37 loc) · 947 Bytes
/
wledcase.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
include <libs/round-anything/polyround.scad>
width = 100;
length = 100;
wall_thickness = 3;
floor_thickness = 3;
linear_extrude(floor_thickness) {
polygon([
//bottom
[0,0],
[width,0],
[width,length],
[0,length],
]);
}
translate([0,0,floor_thickness]) {
difference(){
linear_extrude(wall_thickness) {
polygon([
//outside ring
[0,0],
[width,0],
[width,length],
[0,length],
]);
}
translate([0, 0, -1]) {
linear_extrude(wall_thickness+2) {
polygon([
[wall_thickness,wall_thickness],
[width-wall_thickness,wall_thickness],
[width-wall_thickness,length-wall_thickness],
[wall_thickness,length-wall_thickness],
]);
}
}
}
}