-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathirishvernacular.scad
262 lines (215 loc) · 8.99 KB
/
irishvernacular.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
/*Attempt at rendering of the 25000€ DIY timber frame house plans by Dominic Stevens at http://irishvernacular.com
*/
include </home/mark/git/openscad/ISOThread.scad>
//common size of most of the wood used
wood_width=44;
wood_height=225;
column_height=175;
batten_width=44;
batten_height=44;
//specific frame parts
column_base_length=300;
column_base_width=wood_width;
column_base_height=wood_height;
column_center_length=3846;
column_center_width=wood_width;
column_center_height=column_height;
column_center_batten_length=3321;
column_center_batten_width=batten_width;
column_center_batten_height=batten_height;
column_middle_length=2470;
column_middle_width=wood_width;
column_middle_height=column_height;
column_top_length=626;
column_top_width=wood_width;
column_top_height=column_height;
cross_piece_height=wood_height;
cross_piece_length=3950;
floor_joist_length=2860;
floor_joist_width=wood_width;
floor_joist_height=wood_height;
frames_core_distance=3000;
floor_joist_perimeter_length=frames_core_distance;
nogging_length=556;
nogging_width=wood_width;
nogging_height=wood_height;
roof_joist_length=2837;
roof_joist_width=wood_width;
roof_joist_height=wood_height;
roof_rim_plate_length=12132;
roof_rim_plate_width=wood_width;
roof_rim_plate_height=wood_height;
wall_plate_length=frames_core_distance;
wall_plate_width=wood_width;
wall_plate_height=wood_height;
wall_strut_side_length=3321;
wall_strut_width=wood_width;
wall_strut_height=wood_height;
wall_strut_short_length=2470;
/*-----------------------------------------------------------------
Individual parts
------------------------------------------------------------------*/
module column_base(){
cube([wood_width, column_base_height, column_base_length]);
}
module column_center(){
cube([wood_width, column_center_height, column_center_length]);
}
module column_center_batten(){
cube([column_center_batten_width, column_center_batten_height, column_center_batten_length]);
}
module column_middle(){
cube([wood_width, column_middle_height, column_middle_length]);
}
module column_top(){
cube([wood_width, column_top_height, column_top_length]);
}
module cross_piece(){
cube([wood_width, cross_piece_length, cross_piece_height]);
}
module floor_joist(){
cube([floor_joist_length,wood_width,wood_height]);
}
module floor_joist_perimeter(){
cube([floor_joist_perimeter_length,wood_width,wood_height]);
}
module nogging(){
cube([nogging_length, nogging_height, nogging_width]);
}
module roof_joist_left(){
render(convexity = 2)
difference(){
rotate([0,45,0]){
difference(){
cube([roof_joist_height, roof_joist_width, roof_joist_length]);
translate([0,0,roof_joist_length]) rotate([0,45,0]) cube([2*wood_height, wood_width, wood_height]);
}
}
translate([0,0,-wood_height]) cube([wood_height,wood_width,wood_height]);
}
}
module roof_joist_right(){
mirror([1,0,0]) roof_joist_left();
}
module roof_rim_plate(){
cube([roof_rim_plate_length, roof_rim_plate_width, roof_rim_plate_height]);
}
module wall_plate(){
cube([wall_plate_length,wall_plate_height,wall_plate_width]);
}
module wall_strut_side(){
cube([wall_strut_width,wall_strut_height,wall_strut_side_length]);
}
module wall_strut_short(){
cube([wall_strut_height,wall_strut_width,wall_strut_short_length]);
}
/*-----------------------------------------------------------------
Assemblies of individual parts
------------------------------------------------------------------*/
module column_threaded_rod(){
translate([-wood_width-(200-3*wood_width)/2,column_center_height/2,0]) rotate([0,90,0]){
//thread_out(12,200);
thread_out_centre(12,200);
translate([0,0,(200-3*wood_width)/2+3*wood_width]) hex_nut(12);
translate([0,0,(200-3*wood_width)/2-rolson_hex_nut_hi(12)]) hex_nut(12);
}
}
module column(){
column_center();
color("green") translate([0,column_center_height,column_base_length+cross_piece_height]) column_center_batten();
color("red") translate([-wood_width,0,0]) column_base();
color("red") translate([-wood_width,0,column_center_length-column_top_length]) column_top();
color("red") translate([-wood_width,0,column_base_length+cross_piece_height]) column_middle();
color("red") translate([wood_width,0,0]) column_base();
color("red") translate([wood_width,0,column_center_length-column_top_length]) column_top();
color("red") translate([wood_width,0,column_base_length+cross_piece_height]) column_middle();
translate([0,0,column_base_length/3]) column_threaded_rod();
translate([0,0,column_base_length*2/3]) column_threaded_rod();
translate([0,0,column_base_length+cross_piece_height+column_middle_length/10]) column_threaded_rod();
translate([0,0,column_base_length+cross_piece_height+column_middle_length/2]) column_threaded_rod();
translate([0,0,column_base_length+cross_piece_height+column_middle_length*9/10]) column_threaded_rod();
translate([0,0,column_base_length+2*cross_piece_height+column_middle_length+column_top_length/4]) column_threaded_rod();
translate([0,0,column_base_length+2*cross_piece_height+column_middle_length+column_top_length*3/4]) column_threaded_rod();
}
module frame(){
translate([0,column_height,0]) mirror([0,1,0]) column();
translate([-wood_width,0,column_base_length]) cross_piece();
translate([wood_width,0,column_base_length]) cross_piece();
translate([-wood_width,0,column_center_length-column_top_length-cross_piece_height]) cross_piece();
translate([wood_width,0,column_center_length-column_top_length-cross_piece_height]) cross_piece();
translate([0,cross_piece_length-column_height,0]) column();
}
module frames(){
for (i=[0:4]) translate([frames_core_distance*i,0,0]) frame();
}
module floor_joists(){
for (i=[0:3]){
//inner perimeter ground floor joists
color("blue") translate([wood_width/2+(frames_core_distance-floor_joist_length)/2+frames_core_distance*i,column_height-wood_width,column_base_length]) floor_joist();
color("blue") translate([wood_width/2+(frames_core_distance-floor_joist_length)/2+frames_core_distance*i,cross_piece_length-column_height,column_base_length]) floor_joist();
//60 cm spaced ground floor joists
for (j=[-2:2]){
color("blue") translate([wood_width/2+(frames_core_distance-floor_joist_length)/2+frames_core_distance*i,cross_piece_length/2+j*600,column_base_length]) floor_joist();
}
}
for (i=[0:1]){
//inner perimeter mezzanine floor joists
color("blue") translate([wood_width/2+(frames_core_distance-floor_joist_length)/2+frames_core_distance*i,column_height,column_center_length-column_top_length-wood_height]) floor_joist();
color("blue") translate([wood_width/2+(frames_core_distance-floor_joist_length)/2+frames_core_distance*i,cross_piece_length-column_height-wood_width,column_center_length-column_top_length-wood_height]) floor_joist();
//60 cm spaced mezzanine floor joists
for (j=[-2:2]){
color("blue") translate([wood_width/2+(frames_core_distance-floor_joist_length)/2+frames_core_distance*i,cross_piece_length/2+j*600,column_center_length-column_top_length-wood_height]) floor_joist();
}
}
}
module floor_joists_perimeter(){
for (i=[0:3]){
color("blue") translate([wood_width/2+frames_core_distance*i,-wood_width,column_base_length])floor_joist_perimeter();
color("blue") translate([wood_width/2+frames_core_distance*i,cross_piece_length,column_base_length])floor_joist_perimeter();
}
}
module noggings_long_side(){
nogging();
}
module roof_joists(){
for(i=[0:20]){
translate([i*600+wood_width,-50,column_center_length+wall_plate_width]) rotate([0,0,90]){
roof_joist_left();
translate([4050,0,0]) roof_joist_right();
}
}
translate([-wood_width,(cross_piece_length-wood_width)/2,column_center_length+wall_plate_width-roof_rim_plate_height+2000]) roof_rim_plate();
}
module wall_plates(){
for (i=[0:3]){
for (j=[0:1]){
color("orange") translate([wood_width/2+frames_core_distance*i,j*(cross_piece_length-wood_height+2*wood_width)-wood_width,column_center_length]) wall_plate();
}
}
}
module wall_struts_side(){
color("green") for (i=[0:1]){
translate([0,(cross_piece_length-3*wood_width)*i,0]) for (j=[0:3]){
translate([frames_core_distance*j,0,0]){
for (k=[1:4]) translate([frames_core_distance*k/5,-wood_width,column_base_length+cross_piece_height]) wall_strut_side();
}
}
}
}
module wall_struts_short(){
color("orange") for (i=[0:1]){
translate([frames_core_distance*4*i,0,0]){
for (i=[-2:2]){
translate([-2*wood_width,cross_piece_length/2+600*i,column_base_length+cross_piece_height]) wall_strut_short();
}
}
}
}
frames();
floor_joists();
floor_joists_perimeter();
wall_plates();
wall_struts_side();
wall_struts_short();
noggings_long_side();
roof_joists();