-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrids.js
190 lines (140 loc) · 5.15 KB
/
grids.js
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
const lineMaterial = new THREE.LineBasicMaterial({
color: '#00008B',
linewidth: 10,
});
const sideLineGeometries = [
new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(1.15, 0.38, -1.15),
new THREE.Vector3(-1.15, 0.38, -1.15)
]),
new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(1.15, 0.38, 1.15),
new THREE.Vector3(-1.15, 0.38, 1.15)
]),
new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(1.15, 0.38, 1.15),
new THREE.Vector3(1.15, 0.38, -1.15)
]),
new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(-1.15, 0.38, 1.15),
new THREE.Vector3(-1.15, 0.38, -1.15)
]),
new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(1.15, -0.38, 1.15),
new THREE.Vector3(-1.15, -0.38, 1.15)
]),
new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(1.15, -0.38, -1.15),
new THREE.Vector3(1.15, -0.38, 1.15)
]),
// Line 7
new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(1.15, -0.38, -1.15),
new THREE.Vector3(-1.15, -0.38, -1.15)
]),
// Line 8
new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(-1.15, -0.38, 1.15),
new THREE.Vector3(-1.15, -0.38, -1.15)
])
];
sideLineGeometries.forEach((geometry) => {
const sideLine = new THREE.Line(geometry, lineMaterial);
scene.add(sideLine);
});
const lineGeometry9 = new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(-1.15, 1.15, -0.38),
new THREE.Vector3(-1.15, -1.15, -0.38)
]);
const line9 = new THREE.Line(lineGeometry9, lineMaterial);
scene.add(line9);
const lineGeometry10 = new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(-1.15, 1.15, 0.38),
new THREE.Vector3(-1.15, -1.15, 0.38)
]);
const line10 = new THREE.Line(lineGeometry10, lineMaterial);
scene.add(line10);
const lineGeometry11 = new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(-1.15, 1.15, 0.38),
new THREE.Vector3(1.15, 1.15, 0.38)
]);
const line11 = new THREE.Line(lineGeometry11, lineMaterial);
scene.add(line11);
const lineGeometry12 = new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(1.15, 1.15, 0.38),
new THREE.Vector3(1.15, -1.15, 0.38)
]);
const line12 = new THREE.Line(lineGeometry12, lineMaterial);
scene.add(line12);
const lineGeometry13 = new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(1.15, 1.15, -0.36),
new THREE.Vector3(1.15, -1.15, -0.36)
]);
const line13 = new THREE.Line(lineGeometry13, lineMaterial);
scene.add(line13);
const lineGeometry14 = new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(1.15, 1.15, -0.38),
new THREE.Vector3(-1.15, 1.15, -0.38)
]);
const line14 = new THREE.Line(lineGeometry14, lineMaterial);
scene.add(line14);
const lineGeometry15 = new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(1.15, -1.15, -0.38),
new THREE.Vector3(-1.15, -1.15, -0.38)
]);
const line15 = new THREE.Line(lineGeometry15, lineMaterial);
scene.add(line15);
const lineGeometry16 = new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(1.15, -1.15, 0.36),
new THREE.Vector3(-1.15, -1.15, 0.36)
]);
const line16 = new THREE.Line(lineGeometry16, lineMaterial);
scene.add(line16);
const lineGeometry17 = new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(0.36, 1.15, 1.15),
new THREE.Vector3(0.36, -1.15, 1.15)
]);
const line17 = new THREE.Line(lineGeometry17, lineMaterial);
scene.add(line17);
const lineGeometry18 = new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(-0.36, 1.15, 1.15),
new THREE.Vector3(-0.36, -1.15, 1.15)
]);
const line18 = new THREE.Line(lineGeometry18, lineMaterial);
scene.add(line18);
const lineGeometry19 = new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(-0.36, 1.15, -1.15),
new THREE.Vector3(-0.36, -1.15, -1.15)
]);
const line19 = new THREE.Line(lineGeometry19, lineMaterial);
scene.add(line19);
const lineGeometry20 = new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(0.36, 1.15, -1.15),
new THREE.Vector3(0.36, -1.15, -1.15)
]);
const line20 = new THREE.Line(lineGeometry20, lineMaterial);
scene.add(line20);
const lineGeometry21 = new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(0.36, -1.15, 1.15),
new THREE.Vector3(0.36, -1.15, -1.15)
]);
const line21 = new THREE.Line(lineGeometry21, lineMaterial);
scene.add(line21);
const lineGeometry22 = new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(-0.36, -1.15, 1.15),
new THREE.Vector3(-0.36, -1.15, -1.15)
]);
const line22 = new THREE.Line(lineGeometry22, lineMaterial);
scene.add(line22);
const lineGeometry23 = new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(0.36, 1.15, 1.15),
new THREE.Vector3(0.36, 1.15, -1.15)
]);
const line23 = new THREE.Line(lineGeometry23, lineMaterial);
scene.add(line23);
const lineGeometry24 = new THREE.BufferGeometry().setFromPoints([
new THREE.Vector3(-0.36, 1.15, 1.15),
new THREE.Vector3(-0.36, 1.15, -1.15)
]);
const line24 = new THREE.Line(lineGeometry24, lineMaterial);
scene.add(line24);