-
Notifications
You must be signed in to change notification settings - Fork 0
/
agb.scad
140 lines (124 loc) · 2.61 KB
/
agb.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
module ground() {
color("lightgreen", 0.7) square([46*12,36*12]);
translate([9*12+6,0,1]) {
color("lightgrey", 0.7) square([13*12+6,24*12]);
}
translate([23*12,0,1]) {
color("lightgrey", 0.7) square([17*12+6,27*12+6]);
}
}
module hall_ota() {
cube([9*12+6, 4*12, 7]);
translate([0, 4*12, 0]) {
cube([2*12, 2*12, 7]);
}
}
module side_ota() {
translate([0, 0, 0]) {
cube([2*12, 22*12, 2*7]);
}
}
module gate_level() {
translate([-12*12, 22*12, 0]) {
color("Salmon") cube([14*12, 14*12, 7]);
}
}
module main_ota() {
translate([2*12, 21*12, 0]) {
cube([7*12+6, 15*12, 2*7]);
}
//step
translate([2*12, 20*12, 0]) {
cube([7*12+6, 14*12, 7]);
}
//side step
translate([2*12, 24*12, 0]) {
cube([8*12+6, 12*12, 7]);
}
}
module compound_wall() {
//left
translate([46*12-10,0,0]) {
cube([10, 36*12, 5*12]);
}
//front
translate([0,36*12-10,0]) {
cube([46*12,10,5*12]);
}
//front right
translate([-24*12,36*12-10,0]) {
cube([12*12,10,5*12]);
}
}
module coconut_grove() {
translate([24, 19*12, 0]) {
difference() {
cylinder(h=7, r=2*12, center=false);
cylinder(h=8, r=1.25*12, center=false);
}
}
}
module left_room() {
translate([-6*12, 6*12, 0]) {
color("grey", 0.9) cube([6*12, 16*12, 10*12]);
}
}
module right_room() {
translate([9*12+6, 0, 0]) {
color("grey", 0.9) cube([13*12+6, 24*12, 10*12]);
}
}
module other_room() {
translate([23*12, 0, 0]) {
color("grey", 0.9) cube([17*12+6, 27*12+6, 10*12]);
}
}
module rooms() {
//left room
left_room();
//right_room
right_room();
//other room
other_room();
}
//motor chamber
module motor_chamber() {
translate([34*12, 32*12,0]) {
difference() {
color("green", 0.9) cube([6*12, 4*12, 7]);
translate([6,6,0]) {
color("green", 0.9) cube([5*12, 3*12, 8]);
}
}
}
}
//lawn
module lawn() {
translate([46*12,36*12,2]) {
rotate ([0,0,180]) {
intersection(){
color("green", 0.9) square(12*8);
color("green", 0.9) circle(12*8);
}
} // square and circle
}
}
module ortho() {
ground();
hall_ota();
side_ota();
main_ota();
gate_level();
coconut_grove();
compound_wall();
rooms();
motor_chamber();
lawn();
}
module center() {
translate([10*15, -10*12,0]) {
//translate(){
ortho();
}
}
center();