-
Notifications
You must be signed in to change notification settings - Fork 0
/
side-yz.scad
110 lines (99 loc) · 2.6 KB
/
side-yz.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
include <config.scad>;
use <snap-joint/snap-joint.scad>;
module side_yz()
{
snap_cutout_size_y = snap_joint_height - snap_joint_feather_hook_height;
difference()
{
// Plate
translate([0, material_z, 0])
cube([
material_z,
box_y - 2*material_z,
box_z
]);
// Edge nose cutouts
for (y = [
nose_y_inset,
box_y - nose_y_width - nose_y_inset
])
{
for (z = [
support_margin,
box_z - material_z - support_margin
])
{
translate([-nothing, y, z])
cube([
material_z + 2*nothing,
nose_y_width,
material_z
]);
}
}
// Front edge snap-joint cutout
translate([
-nothing,
-nothing,
box_z/2 - snap_joint_cutout_width/2
])
cube([
material_z + 2*nothing,
snap_cutout_size_y,
snap_joint_cutout_width
]);
// Back edge snap-joint cutout
translate([
-nothing,
box_y - snap_cutout_size_y + nothing,
box_z/2 - snap_joint_cutout_width/2
])
cube([
material_z + 2*nothing,
snap_cutout_size_y,
snap_joint_cutout_width
]);
// Middle diminution
for (z = [
-nothing,
box_z - material_z + nothing
])
{
translate([
-nothing,
box_y/2 - diminution_y_width/2,
z
])
cube([
material_z + 2*nothing,
diminution_y_width,
material_z
]);
}
}
// Front edge snap-joint
translate([
material_z/2,
snap_joint_height - snap_joint_feather_hook_height + nothing,
box_z/2
])
rotate([180, 90, 0])
snap_joint(
width = snap_joint_width,
height = snap_joint_height + 2*nothing,
stick_width = snap_joint_stick_width
);
// Back edge snap-joint
translate([
material_z/2,
box_y - snap_joint_height + snap_joint_feather_hook_height - nothing,
box_z/2
])
rotate([0, 90, 0])
snap_joint(
width = snap_joint_width,
height = snap_joint_height + 2*nothing,
stick_width = snap_joint_stick_width
);
}
side_yz();