-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfloor.scad
63 lines (56 loc) · 1.59 KB
/
floor.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
use <bed.scad>;
use <bed-mount.scad>;
use <base.scad>;
use <cover.scad>;
use <pcb-mount.scad>;
use <led-mount.scad>;
include <parameters.scad>;
module floor_led_mount () {
translate([
base_d / 2 - cover_base_offset,
led_mount_rib_w / 2,
0
]) {
rotate([0, 0, 180]) {
translate([
(led_mount_rib_t + led_mount_rib_bracket_l) / 2,
led_mount_rib_w / 2,
]) {
translate([0, 0, -floor_bolt_inset]) led_mount_rib_bolts();
translate([0, 0, -tight_fit]) led_mount_rib_mounts() nutcatch_parallel(led_mount_bolt);
}
}
}
}
module floor_ () {
difference () {
cube([base_d, base_d, floor_h]);
translate([base_d / 2, base_d / 2]) {
translate([0, 0, cover_bolt_offset]) cover_bolts();
cover_mounts() nutcatch_parallel(bolt);
translate([0, 0, floor_h]) {
floor_led_mount();
rotate([0, 0, 90]) floor_led_mount();
rotate([0, 0, 180]) floor_led_mount();
rotate([0, 0, 270]) floor_led_mount();
// Screw run-out only.
translate([0, 0, -floor_bolt_inset])
bed_mount_base_bolts();
// Nuts get `fit` only:
translate([0, 0, -tight_fit])
bed_mount_base_mounts() nutcatch_parallel(bolt);
}
}
translate([
cover_base_offset + standoff_d, 0
]) {
translate([pcb_mount_w / 2 + fit / 2, standoff_d / 2 - fit / 2, ]) {
translate([0, 0, floor_h - floor_bolt_inset])
pcb_mount_bolts();
translate([0, 0, floor_h - tight_fit])
pcb_mount_mounts() nutcatch_parallel(pcb_mount_bolt);
}
}
}
}
floor_();