-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcover-top.scad
34 lines (30 loc) · 896 Bytes
/
cover-top.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
use <cover.scad>;
include <parameters.scad>;
module led_mount_rib_clearance () {
t =led_mount_rib_t + fit;
w_fit = led_mount_rib_w + fit;
translate([base_d / 2- cover_t - t, -w_fit / 2]) {
square([t, w_fit]);
}
}
module cover_top () {
cube([base_d, base_d, cover_top_h]);
cover_t_fit = cover_t + tight_fit;
translate([cover_t_fit, cover_t_fit, cover_top_h]) {
linear_extrude (endstop_activator_h) {
od = base_d - 2 * cover_t - tight_fit;
id = od - 2 * endstop_w;
difference () {
square([od, od]);
translate([endstop_w, endstop_w]) square([id, id]);
translate([od / 2, od / 2]) {
led_mount_rib_clearance();
rotate([0, 0, 90]) led_mount_rib_clearance();
rotate([0, 0, 180]) led_mount_rib_clearance();
rotate([0, 0, 270]) led_mount_rib_clearance();
}
}
}
}
}
cover_top();