Debian Codegraph @

tests/data/city_from_bugreport_38.x3dv

raw
1 #X3D V3.0 utf8
2
3 PROFILE Interchange
4
5 META "generator" "castle-model-viewer, https://castle-engine.io/castle-model-viewer"
6 META "source" "city.x3dv"
7
8 DEF Camera Viewpoint {
9 description "Flying camera"
10 position 0 1 0
11 orientation 1 0 0 -0.5
12 }
13 Viewpoint {
14 description "City plan"
15 position 0 20 0
16 orientation 0 1 1 3.1400001049041748
17 }
18 PROTO House [
19 initializeOnly SFVec3f position 0 0 0
20 initializeOnly SFFloat height 4
21 inputOnly SFFloat set_height
22 ]
23 {
24 DEF Trans Transform {
25 children [
26 DEF House Shape {
27 appearance Appearance {
28 material Material {
29 }
30 texture PixelTexture {
31 image 3 4 1
32 0x40 0x40 0x40 0x40 0xFF 0xFF 0x40 0xFF 0xFF 0x40 0x40 0x40
33 }
34 textureTransform DEF TexTrans TextureTransform {
35 scale 15 5
36 }
37 }
38 geometry IndexedFaceSet {
39 coord Coordinate {
40 point [
41 -1 0 -1,
42 -1 0 1,
43 1 0 -1,
44 1 0 1,
45 -1 1 -1,
46 -1 1 1,
47 1 1 -1,
48 1 1 1,
49 ]
50 }
51 coordIndex [
52 0, 1, 5, 4, -1,
53 1, 3, 7, 5, -1,
54 3, 2, 6, 7, -1,
55 2, 0, 4, 6, -1,
56 ]
57 texCoord TextureCoordinate {
58 point [
59 0 0,
60 1 0,
61 1 0,
62 0 0,
63 0 1,
64 1 1,
65 1 1,
66 0 1,
67 ]
68 }
69 }
70 }
71 DEF Switcher Switch {
72 whichChoice 0
73 children [
74 Group {
75 children [
76 Shape {
77 appearance Appearance {
78 material Material {
79 diffuseColor 0.5 0.5 0.5
80 }
81 }
82 geometry IndexedFaceSet {
83 coord Coordinate {
84 point [
85 -1 1 -1,
86 -1 1 1,
87 1 1 -1,
88 1 1 1,
89 ]
90 }
91 coordIndex [
92 0, 1, 3, 2,
93 ]
94 }
95 }
96 DEF AdvTimer TimeSensor {
97 cycleInterval 2.5
98 }
99 DEF AdvInt OrientationInterpolator {
100 key [
101 0, 1,
102 ]
103 keyValue [
104 0 1 0 -1.5700000524520874,
105 0 1 0 1.5700000524520874,
106 ]
107 }
108 Billboard {
109 children DEF Advertising Transform {
110 translation 0 1 0
111 children Shape {
112 appearance Appearance {
113 material DEF AdvMat Material {
114 diffuseColor 0 0 0
115 }
116 }
117 geometry DEF AdvText Text {
118 fontStyle FontStyle {
119 family "SANS"
120 justify [
121 "MIDDLE",
122 "END",
123 ]
124 }
125 }
126 }
127 }
128 }
129 ]
130 ROUTE AdvTimer.fraction_changed TO AdvInt.set_fraction
131 ROUTE AdvInt.value_changed TO Advertising.set_rotation
132 }
133 Shape {
134 appearance Appearance {
135 material Material {
136 }
137 texture PixelTexture {
138 image 2 8 3
139 0xFFFF00 0x000000 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080 0x808080
140 }
141 textureTransform TextureTransform {
142 scale 1 0.125
143 }
144 }
145 geometry IndexedFaceSet {
146 creaseAngle 1
147 coord Coordinate {
148 point [
149 -1 1 -1,
150 -1 1 1,
151 1 1 -1,
152 1 1 1,
153 -0.5 1 -0.20000000298023224,
154 -0.5 1 0.20000000298023224,
155 -0.20000000298023224 1 0.5,
156 0.20000000298023224 1 0.5,
157 0.5 1 0.20000000298023224,
158 0.5 1 -0.20000000298023224,
159 0.20000000298023224 1 -0.5,
160 -0.20000000298023224 1 -0.5,
161 -0.5 0.5 -0.20000000298023224,
162 -0.5 0.5 0.20000000298023224,
163 -0.20000000298023224 0.5 0.5,
164 0.20000000298023224 0.5 0.5,
165 0.5 0.5 0.20000000298023224,
166 0.5 0.5 -0.20000000298023224,
167 0.20000000298023224 0.5 -0.5,
168 -0.20000000298023224 0.5 -0.5,
169 -0.5 0 -0.20000000298023224,
170 -0.5 0 0.20000000298023224,
171 -0.20000000298023224 0 0.5,
172 0.20000000298023224 0 0.5,
173 0.5 0 0.20000000298023224,
174 0.5 0 -0.20000000298023224,
175 0.20000000298023224 0 -0.5,
176 -0.20000000298023224 0 -0.5,
177 ]
178 }
179 coordIndex [
180 0, 1, 5, 4, -1,
181 1, 3, 7, 6, -1,
182 3, 2, 9, 8, -1,
183 2, 0, 11, 10, -1,
184 0, 4, 11, -1,
185 1, 6, 5, -1,
186 3, 8, 7, -1,
187 2, 10, 9, -1,
188 4, 5, 13, 12, -1,
189 5, 6, 14, 13, -1,
190 6, 7, 15, 14, -1,
191 7, 8, 16, 15, -1,
192 8, 9, 17, 16, -1,
193 9, 10, 18, 17, -1,
194 10, 11, 19, 18, -1,
195 11, 4, 12, 19, -1,
196 12, 13, 21, 20, -1,
197 13, 14, 22, 21, -1,
198 14, 15, 23, 22, -1,
199 15, 16, 24, 23, -1,
200 16, 17, 25, 24, -1,
201 17, 18, 26, 25, -1,
202 18, 19, 27, 26, -1,
203 19, 12, 20, 27, -1,
204 ]
205 texCoord TextureCoordinate {
206 point [
207 -1 3,
208 3 3,
209 7 3,
210 11 3,
211 15 3,
212 0 0,
213 2 0,
214 4 0,
215 6 0,
216 8 0,
217 10 0,
218 12 0,
219 14 0,
220 16 0,
221 0 4.5,
222 2 4.5,
223 4 4.5,
224 6 4.5,
225 8 4.5,
226 10 4.5,
227 12 4.5,
228 14 4.5,
229 16 4.5,
230 0 9,
231 2 9,
232 4 9,
233 6 9,
234 8 9,
235 10 9,
236 12 9,
237 14 9,
238 16 9,
239 ]
240 }
241 texCoordIndex [
242 0, 1, 6, 5, -1,
243 1, 2, 8, 7, -1,
244 2, 3, 10, 9, -1,
245 3, 4, 12, 11, -1,
246 1, 7, 6, -1,
247 2, 9, 8, -1,
248 3, 11, 10, -1,
249 4, 13, 12, -1,
250 5, 6, 15, 14, -1,
251 6, 7, 16, 15, -1,
252 7, 8, 17, 16, -1,
253 8, 9, 18, 17, -1,
254 9, 10, 19, 18, -1,
255 10, 11, 20, 19, -1,
256 11, 12, 21, 20, -1,
257 12, 13, 22, 21, -1,
258 14, 15, 24, 23, -1,
259 15, 16, 25, 24, -1,
260 16, 17, 26, 25, -1,
261 17, 18, 27, 26, -1,
262 18, 19, 28, 27, -1,
263 19, 20, 29, 28, -1,
264 20, 21, 30, 29, -1,
265 21, 22, 31, 30, -1,
266 ]
267 }
268 }
269 ]
270 }
271 DEF FrontStreet Shape {
272 geometry IndexedFaceSet {
273 coord Coordinate {
274 point [
275 -1 0 1,
276 -2 0 2,
277 -1 0 3,
278 1 0 3,
279 2 0 2,
280 1 0 1,
281 ]
282 }
283 coordIndex [
284 0, 1, 2, -1,
285 0, 2, 3, 5, -1,
286 3, 4, 5, -1,
287 ]
288 texCoord DEF StrTex TextureCoordinate {
289 point [
290 0 0.25,
291 0.5 0,
292 1 0.25,
293 1 0.75,
294 0.5 1,
295 0 0.75,
296 ]
297 }
298 }
299 }
300 DEF RightStreet Shape {
301 geometry IndexedFaceSet {
302 coord Coordinate {
303 point [
304 1 0 1,
305 2 0 2,
306 3 0 1,
307 3 0 -1,
308 2 0 -2,
309 1 0 -1,
310 ]
311 }
312 coordIndex [
313 0, 1, 2, -1,
314 0, 2, 3, 5, -1,
315 3, 4, 5, -1,
316 ]
317 texCoord USE StrTex
318 }
319 }
320 ]
321 }
322 }
323 Group {
324 children [
325 DirectionalLight {
326 intensity 0.5
327 direction 2 2 1
328 }
329 DirectionalLight {
330 intensity 0.5
331 direction -2 -2 -1
332 }
333 DEF Sw1 Switch {
334 whichChoice 0
335 children DEF Main Group {
336 children [
337 House {
338 }
339 House {
340 }
341 House {
342 }
343 House {
344 }
345 House {
346 }
347 House {
348 }
349 House {
350 }
351 House {
352 }
353 House {
354 }
355 House {
356 }
357 House {
358 }
359 House {
360 }
361 House {
362 }
363 House {
364 }
365 House {
366 }
367 House {
368 }
369 House {
370 }
371 House {
372 }
373 House {
374 }
375 House {
376 }
377 House {
378 }
379 House {
380 }
381 House {
382 }
383 House {
384 }
385 DEF Fogs Group {
386 }
387 ]
388 }
389 }
390 DEF Sw2 Switch {
391 whichChoice 0
392 children House {
393 }
394 }
395 ]
396 }