-
Notifications
You must be signed in to change notification settings - Fork 171
/
Copy pathspool_holder_parts.scad
139 lines (116 loc) · 3.18 KB
/
spool_holder_parts.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
include <config.scad>
use <GDMUtils.scad>
use <joiners.scad>
$fa = 2;
$fs = 2;
spool_w = 80 + joiner_width;
spool_notch = 3;
module spool_holder()
{
joiner_length=10;
color("YellowGreen")
prerender(convexity=10)
union() {
difference() {
union() {
// Side walls
yspread(spool_w) {
up(spool_holder_length/2+3) {
yrot(90) {
zrot(90) {
if (wall_style == "crossbeams")
sparse_strut(h=rail_height, l=spool_holder_length-6, thick=joiner_width, strut=joiner_width);
if (wall_style == "thinwall")
thinning_wall(h=rail_height, l=spool_holder_length-6, thick=joiner_width, strut=joiner_width);
if (wall_style == "corrugated")
corrugated_wall(h=rail_height, l=spool_holder_length-6, thick=joiner_width, strut=joiner_width);
}
}
}
}
// Back joiner
up(6+joiner_width/2) {
yrot(90) {
if (wall_style == "crossbeams")
sparse_strut(h=rail_height, l=spool_w+joiner_width/2-1, thick=joiner_width, strut=joiner_width);
if (wall_style == "thinwall")
thinning_wall(h=rail_height, l=spool_w+joiner_width/2-1, thick=joiner_width, strut=joiner_width);
if (wall_style == "corrugated")
corrugated_wall(h=rail_height, l=spool_w+joiner_width/2-1, thick=joiner_width, strut=joiner_width);
}
}
}
// Chamfer top corners.
xspread(rail_height) {
up(spool_holder_length) {
scale([1,1,0.75])
yrot(45) {
cube([sqrt(2)*15, spool_w+joiner_width+1, sqrt(2)*15], center=true);
}
}
}
// Clear space for joiners.
up(0.05) {
yrot(90) zrot(-90) {
joiner_pair_clear(spacing=z_joiner_spacing, h=rail_height, w=joiner_width, a=joiner_angle, clearance=1);
}
}
// Spool Dowel notch
yspread(spool_w) {
up(spool_holder_length) {
difference() {
xrot(90) cylinder(h=joiner_width+1, d=15, center=true, $fn=6);
cube(size=[20, spool_notch, 20], center=true);
}
xrot(90) cylinder(h=spool_notch+1, d=10, center=true, $fn=6);
}
}
}
// Joiner clip.
yspread(z_joiner_spacing) {
yrot(90) zrot(-90) {
joiner(h=rail_height, w=joiner_width, l=6+joiner_length/2, a=joiner_angle);
}
}
}
}
//!spool_holder();
module spool_axle()
{
color("YellowGreen")
prerender(convexity=10)
up(15/2*cos(30)) {
top_half(spool_w+joiner_width+1) xrot(90) cylinder(h=spool_w+joiner_width, d=15, center=true);
difference() {
xrot(90) cylinder(h=spool_w+joiner_width, d=15, center=true, $fn=6);
yspread(spool_w) cube(size=[20, spool_notch+printer_slop, 20], center=true);
}
xrot(90) cylinder(h=spool_w+joiner_width, d=10, center=true, $fn=6);
}
}
//!spool_axle();
module spool() {
color([0.5, 0.5, 0.5])
xrot(90) {
difference() {
union() {
zspread(72-5) cylinder(h=5, d=205, center=true);
cylinder(h=72, d=96, center=true);
}
cylinder(h=72+1, d=52.5, center=true);
down(72/2-17/2) cylinder(h=17.1, d=90, center=true);
}
}
}
module spool_holder_parts() { // make me
left(spool_holder_length/2) {
up(rail_height/2) {
yrot(90) {
spool_holder();
}
}
}
right(10) zrot(90) spool_axle();
}
spool_holder_parts();
// vim: noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap