-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteatro.scad
278 lines (225 loc) · 6.01 KB
/
teatro.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
upright_dim=36;
crossbar=13*12;
teatro_width=8*12;
teatro_angle=30;
floor1=1*12;
floor2=9*12;
floor3=17*12;
include_tarp = 0; // rebecca doesn't like the tarps
module helios()
{
for (i=[0:11])
{
color("red") translate([i*6,0,0]) cylinder(r=2,h=15*12);
}
}
module upright(len1,len2)
{
color("purple")
{
translate([-3,-3,0]) cube([6,6,len1]);
translate([upright_dim-3,-3,0]) cube([6,6,len2]);
for(i=[1:(len2/36)])
{
translate([0,-3,35*i-6]) cube([upright_dim,6,6]);
}
}
}
module ladder(len,width)
{
translate([-1,-1,0]) cube([2,2,len]);
translate([width-1,-1,0]) cube([2,2,len]);
for(i=[1:(len/12)])
{
translate([0,-1,12*i-6]) cube([width,2,2]);
}
}
// home depot stringers are 10' run and 6' rise.
// in steep mode they would be 6' run and 10' rise
rise=10;
run=6;
module stairs(len,width,sides)
{
for(i=[1:(len/rise)])
{
translate([0,i*run-1,rise*i]) cube([width,run,2]);
}
if (sides)
{
rotate([-atan2(run,rise),0,0])
translate([width,0,run])
cube([2,8, len*(atan2(rise,run)*3.14/180)]);
rotate([-atan2(run,rise),0,0])
translate([0,0,run])
cube([2,8, len*(atan2(rise,run)*3.14/180)]);
}
}
module crossbar(x,y,z)
{
//color("purple")
translate([x,y+3,z-3]) cube([6,crossbar-6,6]);
}
module crossbar_pair(x,y,z)
{
crossbar(x,y,z);
crossbar(x+upright_dim,y,z);
}
module floor(x,y,z,w)
{
color("green", 0.5)
translate([x,y,z+1.1]) cube([w,crossbar,2]);
}
module teatro()
{
// back uprights are only partial
translate([0,0*crossbar,0]) upright(17*12,14*12);
translate([teatro_width,0*crossbar,0]) rotate([0,0,180]) upright(17*12,14*12);
// two front uprights are full
translate([0,1*crossbar,0]) upright(21*12,21*12);
translate([teatro_width,1*crossbar,0]) rotate([0,0,180]) upright(21*12,21*12);
translate([0,2*crossbar,0]) upright(21*12,21*12);
translate([teatro_width,2*crossbar,0]) rotate([0,0,180]) upright(21*12,21*12);
// first floor
for (box=[0,1])
{
crossbar_pair(0,box*crossbar,floor1);
crossbar_pair(1*teatro_width-upright_dim,box*crossbar,floor1);
floor(0,box*crossbar,floor1, teatro_width);
}
// second floor had rail up the backside of the top box
// but now just a safety rail front and back
for (box=[0,1])
{
crossbar_pair(0,box*crossbar,floor2);
crossbar_pair(1*teatro_width-upright_dim,box*crossbar,floor2);
crossbar(0,box*crossbar,floor2+40);
crossbar(teatro_width,box*crossbar,floor2+40);
floor(0,box*crossbar,floor2, teatro_width);
}
// the third floor only has the front half
for (box=[1])
{
crossbar_pair(0,box*crossbar,floor3);
crossbar_pair(1*teatro_width-upright_dim,box*crossbar,floor3);
// railings to keep us from falling off
crossbar(0,box*crossbar,21*12);
crossbar(teatro_width,box*crossbar,21*12);
floor(0,box*crossbar,floor3, teatro_width);
}
// cross bars on the other half are just for support
// and are not danceable
crossbar(0,0,floor3);
crossbar(teatro_width,0,floor3);
// tarp at an angle
if (include_tarp)
{
color("red") polyhedron(
points=[
[0,0,21*12],
[0,crossbar,21*12],
[teatro_width,crossbar,21*12],
[teatro_width,0,floor3],
],
faces=[
[0,1,2],
[2,0,3],
]
);
}
// stairs to the first level
rotate([0,0,teatro_angle*2])
translate([-22,-120,0])
{
// 8' stairs from the ground
translate([0,-20,0]) stairs(86,36,1);
// mezanine for the stairs
color("green")
translate([-teatro_width/3,teatro_width/2-12,86-6])
render() difference()
{
cube([teatro_width,teatro_width,2]);
rotate(-teatro_angle) translate([-teatro_width,0,-10]) cube([100,200,20]);
rotate(+teatro_angle) translate([teatro_width,-100,-10]) cube([100,200,20]);
}
}
// ladder to the second level
translate([teatro_width-12,135,floor2])
rotate([8,0,180])
ladder(12*12,24);
translate([16,2*crossbar+6,(21-15)*12])
helios();
// guy lines at the front
%translate([0,2*crossbar,21*12]) rotate([0,-170,0]) cube([1,1,260]);
%translate([teatro_width,2*crossbar,21*12]) rotate([0,170,0]) cube([1,1,260]);
// flags
translate([0,2*crossbar,21*12]) {
for(i=[0,teatro_width])
{
translate([i,0,0]) cube([1,1,72]);
color("pink") translate([i,0,72-24]) cube([36,1,24]);
}
}
}
module sign()
{
translate([0,0*crossbar,0]) upright(21*12,21*12);
translate([0,1*crossbar,0]) upright(21*12,21*12);
translate([0,2*crossbar,0]) upright(21*12,21*12);
translate([0,3*crossbar,0]) upright(21*12,21*12);
translate([teatro_width,0*crossbar,0]) rotate([0,0,180]) upright(17*12,14*12);
translate([teatro_width,1*crossbar,0]) rotate([0,0,180]) upright(17*12,14*12);
translate([teatro_width,2*crossbar,0]) rotate([0,0,180]) upright(17*12,14*12);
translate([teatro_width,3*crossbar,0]) rotate([0,0,180]) upright(17*12,14*12);
// solid floor across the mid level
for (box=[0,1,2])
{
crossbar_pair(0,box*crossbar,floor2);
crossbar_pair(1*teatro_width-upright_dim,box*crossbar,floor2);
// safety rails
crossbar(0,box*crossbar,floor2+36);
crossbar(teatro_width,box*crossbar,floor2+36);
// sign and tarp support
crossbar(0,box*crossbar,floor3);
crossbar(upright_dim,box*crossbar,floor3);
crossbar(teatro_width,box*crossbar,floor3);
// sign work platform is only half deep
floor(0,box*crossbar, floor3, upright_dim);
// the sign top mount
crossbar(0,box*crossbar,21*12);
floor(0,box*crossbar,floor2, teatro_width);
}
// sign itself
color("DeepPink", 0.9)
translate([0,39*12,floor3-20])
scale(0.6)
rotate([90,0,-90])
linear_extrude(height=5)
import("disorient.dxf");
// half tarp, half floor
if(include_tarp)
{
color("red")
translate([upright_dim+6,0,floor3])
cube([teatro_width-upright_dim-6,3*crossbar,6]);
}
}
// put it all together...
rotate([0,0,180]) scale(.1)
{
translate([+3*crossbar/2+6,0,0])
rotate([0,0,-teatro_angle])
teatro();
translate([-3*crossbar/2+6,0,0])
rotate([0,0,+teatro_angle])
scale([-1,1,1])
teatro();
rotate([0,0,-90]) translate([0,-3*crossbar/2,0]) sign();
%translate([0,0*12,0]) cube([100*12,100*12,1], center=true);
// put the dome in the background, cut in half by the ground
color("green") translate([0,-20*12,0]) render() difference() {
sphere(r=12*18);
sphere(r=11.5*18);
translate([0,0,-12*50/2]) cube([12*50,12*50,12*50], center=true);
translate([0,18*12,0]) sphere(r=12*18);
}
}