Robotran C Documentation
VrmlShapePoints.hh
Go to the documentation of this file.
1 
10 #ifdef OPEN_GL
11 
12 
13 #ifndef _VRML_SHAPE_POINTS_HH
14 #define _VRML_SHAPE_POINTS_HH
15 
16 #define NB_VERTICES_INIT_SPHERE 242
17 #define NB_TRIANGLES_INIT_SPHERE 480
18 
19 // temporary vertices
20 double vrml_vert_sphere[3*NB_VERTICES_INIT_SPHERE] = {
21  -0.195090, 0.980785, 0.000000,
22  -0.382683, 0.923880, 0.000000,
23  -0.555570, 0.831470, 0.000000,
24  -0.707107, 0.707107, 0.000000,
25  -0.831470, 0.555570, 0.000000,
26  -0.923880, 0.382683, 0.000000,
27  -0.980785, 0.195090, 0.000000,
28  -1.000000, 0.000000, 0.000000,
29  -0.980785, -0.195090, 0.000000,
30  -0.923880, -0.382683, 0.000000,
31  -0.831470, -0.555570, 0.000000,
32  -0.707107, -0.707107, 0.000000,
33  -0.555570, -0.831470, 0.000000,
34  -0.382683, -0.923880, 0.000000,
35  -0.195090, -0.980785, 0.000000,
36  0.000000, -1.000000, 0.000000,
37  -0.180240, 0.980785, -0.074658,
38  -0.353553, 0.923880, -0.146447,
39  -0.513280, 0.831470, -0.212608,
40  -0.653281, 0.707107, -0.270598,
41  -0.768178, 0.555570, -0.318190,
42  -0.853553, 0.382683, -0.353554,
43  -0.906127, 0.195090, -0.375330,
44  -0.923880, 0.000000, -0.382684,
45  -0.906127, -0.195090, -0.375330,
46  -0.853553, -0.382683, -0.353554,
47  -0.768178, -0.555570, -0.318190,
48  -0.653281, -0.707107, -0.270598,
49  -0.513280, -0.831470, -0.212608,
50  -0.353553, -0.923880, -0.146447,
51  -0.180240, -0.980785, -0.074658,
52  -0.137950, 0.980785, -0.137950,
53  -0.270598, 0.923880, -0.270598,
54  -0.392847, 0.831470, -0.392848,
55  -0.500000, 0.707107, -0.500000,
56  -0.587938, 0.555570, -0.587938,
57  -0.653281, 0.382683, -0.653282,
58  -0.693520, 0.195090, -0.693520,
59  -0.707107, 0.000000, -0.707107,
60  -0.693520, -0.195090, -0.693520,
61  -0.653281, -0.382683, -0.653282,
62  -0.587938, -0.555570, -0.587938,
63  -0.500000, -0.707107, -0.500000,
64  -0.392847, -0.831470, -0.392848,
65  -0.270598, -0.923880, -0.270598,
66  -0.137949, -0.980785, -0.137950,
67  -0.074658, 0.980785, -0.180240,
68  -0.146446, 0.923880, -0.353554,
69  -0.212607, 0.831470, -0.513280,
70  -0.270598, 0.707107, -0.653282,
71  -0.318189, 0.555570, -0.768178,
72  -0.353553, 0.382683, -0.853554,
73  -0.375330, 0.195090, -0.906128,
74  -0.382683, 0.000000, -0.923880,
75  -0.375330, -0.195090, -0.906128,
76  -0.353553, -0.382683, -0.853554,
77  -0.318189, -0.555570, -0.768178,
78  -0.270598, -0.707107, -0.653282,
79  -0.212607, -0.831470, -0.513280,
80  -0.146446, -0.923880, -0.353554,
81  -0.074658, -0.980785, -0.180240,
82  0.000000, 0.980785, -0.195091,
83  0.000000, 0.923880, -0.382684,
84  0.000000, 0.831470, -0.555571,
85  0.000000, 0.707107, -0.707107,
86  0.000000, 0.555570, -0.831470,
87  0.000000, 0.382683, -0.923880,
88  0.000000, 0.195090, -0.980785,
89  0.000000, 0.000000, -1.000000,
90  0.000000, -0.195090, -0.980785,
91  0.000000, -0.382683, -0.923880,
92  0.000000, -0.555570, -0.831470,
93  0.000000, -0.707107, -0.707107,
94  0.000000, -0.831470, -0.555570,
95  0.000000, -0.923880, -0.382684,
96  0.000000, -0.980785, -0.195090,
97  0.074658, 0.980785, -0.180240,
98  0.146447, 0.923880, -0.353554,
99  0.212608, 0.831470, -0.513280,
100  0.270599, 0.707107, -0.653282,
101  0.318190, 0.555570, -0.768178,
102  0.353554, 0.382683, -0.853554,
103  0.375331, 0.195090, -0.906128,
104  0.382684, 0.000000, -0.923880,
105  0.375331, -0.195090, -0.906128,
106  0.353554, -0.382683, -0.853554,
107  0.318190, -0.555570, -0.768178,
108  0.270599, -0.707107, -0.653282,
109  0.212608, -0.831470, -0.513280,
110  0.146447, -0.923880, -0.353553,
111  0.074658, -0.980785, -0.180240,
112  0.137950, 0.980785, -0.137950,
113  0.270599, 0.923880, -0.270598,
114  0.392848, 0.831470, -0.392848,
115  0.500000, 0.707107, -0.500000,
116  0.587938, 0.555570, -0.587938,
117  0.653282, 0.382683, -0.653282,
118  0.693520, 0.195090, -0.693520,
119  0.707107, 0.000000, -0.707107,
120  0.693520, -0.195090, -0.693520,
121  0.653282, -0.382683, -0.653282,
122  0.587938, -0.555570, -0.587938,
123  0.500000, -0.707107, -0.500000,
124  0.392848, -0.831470, -0.392848,
125  0.270598, -0.923880, -0.270598,
126  0.137950, -0.980785, -0.137950,
127  0.180241, 0.980785, -0.074658,
128  0.353554, 0.923880, -0.146447,
129  0.513281, 0.831470, -0.212608,
130  0.653282, 0.707107, -0.270598,
131  0.768178, 0.555570, -0.318190,
132  0.853554, 0.382683, -0.353553,
133  0.906128, 0.195090, -0.375330,
134  0.923880, 0.000000, -0.382683,
135  0.906128, -0.195090, -0.375330,
136  0.853554, -0.382683, -0.353553,
137  0.768178, -0.555570, -0.318190,
138  0.653282, -0.707107, -0.270598,
139  0.513280, -0.831470, -0.212608,
140  0.353554, -0.923880, -0.146447,
141  0.180240, -0.980785, -0.074658,
142  0.195091, 0.980785, 0.000000,
143  0.382684, 0.923880, 0.000000,
144  0.555571, 0.831470, 0.000000,
145  0.707107, 0.707107, -0.000000,
146  0.831470, 0.555570, -0.000000,
147  0.923880, 0.382683, -0.000000,
148  0.980786, 0.195090, -0.000000,
149  1.000000, 0.000000, -0.000000,
150  0.980786, -0.195090, -0.000000,
151  0.923880, -0.382683, -0.000000,
152  0.831470, -0.555570, -0.000000,
153  0.707107, -0.707107, -0.000000,
154  0.555571, -0.831470, -0.000000,
155  0.382684, -0.923880, 0.000000,
156  0.195091, -0.980785, 0.000000,
157  0.180240, 0.980785, 0.074658,
158  0.353554, 0.923880, 0.146447,
159  0.513280, 0.831470, 0.212608,
160  0.653282, 0.707107, 0.270598,
161  0.768178, 0.555570, 0.318190,
162  0.853554, 0.382683, 0.353553,
163  0.906128, 0.195090, 0.375330,
164  0.923880, 0.000000, 0.382683,
165  0.906128, -0.195090, 0.375330,
166  0.853554, -0.382683, 0.353553,
167  0.768178, -0.555570, 0.318190,
168  0.653282, -0.707107, 0.270598,
169  0.513280, -0.831470, 0.212608,
170  0.353554, -0.923880, 0.146447,
171  0.180240, -0.980785, 0.074658,
172  0.137950, 0.980785, 0.137950,
173  0.270599, 0.923880, 0.270598,
174  0.392848, 0.831470, 0.392848,
175  0.500000, 0.707107, 0.500000,
176  0.587938, 0.555570, 0.587938,
177  0.653282, 0.382683, 0.653281,
178  0.693520, 0.195090, 0.693520,
179  0.707107, 0.000000, 0.707107,
180  0.693520, -0.195090, 0.693520,
181  0.653282, -0.382683, 0.653281,
182  0.587938, -0.555570, 0.587938,
183  0.500000, -0.707107, 0.500000,
184  0.392848, -0.831470, 0.392847,
185  0.270598, -0.923880, 0.270598,
186  0.137950, -0.980785, 0.137950,
187  0.074658, 0.980785, 0.180240,
188  0.146447, 0.923880, 0.353554,
189  0.212608, 0.831470, 0.513280,
190  0.270598, 0.707107, 0.653281,
191  0.318190, 0.555570, 0.768178,
192  0.353554, 0.382683, 0.853553,
193  0.375331, 0.195090, 0.906127,
194  0.382684, 0.000000, 0.923879,
195  0.375331, -0.195090, 0.906127,
196  0.353554, -0.382683, 0.853553,
197  0.318190, -0.555570, 0.768178,
198  0.270598, -0.707107, 0.653281,
199  0.212608, -0.831470, 0.513280,
200  0.146447, -0.923880, 0.353553,
201  0.074658, -0.980785, 0.180240,
202  0.000000, 0.980785, 0.195091,
203  0.000000, 0.923880, 0.382684,
204  0.000000, 0.831470, 0.555570,
205  0.000000, 0.707107, 0.707107,
206  0.000000, 0.555570, 0.831470,
207  0.000000, 0.382683, 0.923879,
208  0.000000, 0.195090, 0.980785,
209  0.000000, 0.000000, 1.000000,
210  0.000000, -0.195090, 0.980785,
211  0.000000, -0.382683, 0.923879,
212  0.000000, -0.555570, 0.831470,
213  0.000000, -0.707107, 0.707107,
214  0.000000, -0.831470, 0.555570,
215  0.000000, -0.923880, 0.382683,
216  0.000000, -0.980785, 0.195090,
217  0.000000, 1.000000, 0.000000,
218  -0.074658, 0.980785, 0.180240,
219  -0.146446, 0.923880, 0.353554,
220  -0.212607, 0.831470, 0.513280,
221  -0.270598, 0.707107, 0.653281,
222  -0.318189, 0.555570, 0.768178,
223  -0.353553, 0.382683, 0.853553,
224  -0.375330, 0.195090, 0.906127,
225  -0.382683, 0.000000, 0.923879,
226  -0.375330, -0.195090, 0.906127,
227  -0.353553, -0.382683, 0.853553,
228  -0.318189, -0.555570, 0.768178,
229  -0.270598, -0.707107, 0.653281,
230  -0.212607, -0.831470, 0.513280,
231  -0.146446, -0.923880, 0.353553,
232  -0.074658, -0.980785, 0.180240,
233  -0.137950, 0.980785, 0.137950,
234  -0.270598, 0.923880, 0.270598,
235  -0.392847, 0.831470, 0.392847,
236  -0.500000, 0.707107, 0.500000,
237  -0.587937, 0.555570, 0.587938,
238  -0.653281, 0.382683, 0.653281,
239  -0.693519, 0.195090, 0.693520,
240  -0.707106, 0.000000, 0.707107,
241  -0.693519, -0.195090, 0.693520,
242  -0.653281, -0.382683, 0.653281,
243  -0.587937, -0.555570, 0.587938,
244  -0.500000, -0.707107, 0.500000,
245  -0.392847, -0.831470, 0.392847,
246  -0.270598, -0.923880, 0.270598,
247  -0.137949, -0.980785, 0.137950,
248  -0.180240, 0.980785, 0.074658,
249  -0.353553, 0.923880, 0.146447,
250  -0.513280, 0.831470, 0.212607,
251  -0.653281, 0.707107, 0.270598,
252  -0.768177, 0.555570, 0.318190,
253  -0.853553, 0.382683, 0.353553,
254  -0.906127, 0.195090, 0.375330,
255  -0.923879, 0.000000, 0.382683,
256  -0.906127, -0.195090, 0.375330,
257  -0.853553, -0.382683, 0.353553,
258  -0.768177, -0.555570, 0.318190,
259  -0.653281, -0.707107, 0.270598,
260  -0.513280, -0.831470, 0.212608,
261  -0.353553, -0.923880, 0.146447,
262  -0.180240, -0.980785, 0.074658
263 };
264 
265 // temporary coordinates
266 int vrml_coord_sphere[3*NB_TRIANGLES_INIT_SPHERE] = {
267  5, 4, 21,
268  3, 2, 19,
269  14, 13, 30,
270  12, 11, 28,
271  10, 9, 26,
272  8, 7, 24,
273  6, 5, 22,
274  4, 3, 20,
275  15, 14, 31,
276  2, 1, 18,
277  13, 12, 29,
278  11, 10, 27,
279  9, 8, 25,
280  7, 6, 23,
281  27, 26, 42,
282  25, 24, 40,
283  23, 22, 38,
284  21, 20, 36,
285  19, 18, 34,
286  30, 29, 45,
287  28, 27, 43,
288  26, 25, 41,
289  24, 23, 39,
290  22, 21, 37,
291  20, 19, 35,
292  31, 30, 46,
293  18, 17, 33,
294  29, 28, 44,
295  42, 41, 57,
296  40, 39, 55,
297  38, 37, 53,
298  36, 35, 51,
299  34, 33, 49,
300  45, 44, 60,
301  43, 42, 58,
302  41, 40, 56,
303  39, 38, 54,
304  37, 36, 52,
305  35, 34, 50,
306  46, 45, 61,
307  33, 32, 48,
308  44, 43, 59,
309  57, 56, 72,
310  55, 54, 70,
311  53, 52, 68,
312  51, 50, 66,
313  49, 48, 64,
314  60, 59, 75,
315  58, 57, 73,
316  56, 55, 71,
317  54, 53, 69,
318  52, 51, 67,
319  50, 49, 65,
320  61, 60, 76,
321  48, 47, 63,
322  59, 58, 74,
323  72, 71, 87,
324  70, 69, 85,
325  68, 67, 83,
326  66, 65, 81,
327  64, 63, 79,
328  75, 74, 90,
329  73, 72, 88,
330  71, 70, 86,
331  69, 68, 84,
332  67, 66, 82,
333  65, 64, 80,
334  76, 75, 91,
335  63, 62, 78,
336  74, 73, 89,
337  87, 86, 102,
338  85, 84, 100,
339  83, 82, 98,
340  81, 80, 95,
341  79, 78, 94,
342  90, 89, 105,
343  88, 87, 103,
344  86, 85, 101,
345  84, 83, 99,
346  82, 81, 97,
347  80, 79, 95,
348  91, 90, 106,
349  78, 77, 93,
350  89, 88, 104,
351  102, 101, 117,
352  100, 99, 115,
353  98, 97, 113,
354  96, 95, 110,
355  94, 93, 109,
356  105, 104, 120,
357  103, 102, 118,
358  101, 100, 116,
359  99, 98, 114,
360  97, 96, 112,
361  95, 94, 110,
362  106, 105, 121,
363  93, 92, 108,
364  104, 103, 119,
365  117, 116, 132,
366  115, 114, 130,
367  113, 112, 128,
368  111, 110, 125,
369  109, 108, 124,
370  120, 119, 135,
371  118, 117, 133,
372  116, 115, 131,
373  114, 113, 129,
374  112, 111, 127,
375  110, 109, 125,
376  121, 120, 136,
377  108, 107, 123,
378  119, 118, 134,
379  132, 131, 147,
380  130, 129, 145,
381  128, 127, 143,
382  126, 125, 140,
383  124, 123, 139,
384  135, 134, 150,
385  133, 132, 148,
386  131, 130, 146,
387  129, 128, 144,
388  127, 126, 142,
389  125, 124, 140,
390  136, 135, 151,
391  123, 122, 138,
392  134, 133, 149,
393  147, 146, 162,
394  145, 144, 160,
395  143, 142, 158,
396  141, 140, 156,
397  139, 138, 154,
398  150, 149, 165,
399  148, 147, 163,
400  146, 145, 161,
401  144, 143, 159,
402  142, 141, 157,
403  140, 139, 155,
404  151, 150, 166,
405  138, 137, 153,
406  149, 148, 164,
407  162, 161, 177,
408  160, 159, 175,
409  158, 157, 173,
410  156, 155, 170,
411  154, 153, 169,
412  165, 164, 180,
413  163, 162, 178,
414  161, 160, 176,
415  159, 158, 174,
416  157, 156, 172,
417  155, 154, 170,
418  166, 165, 181,
419  153, 152, 168,
420  164, 163, 179,
421  177, 176, 191,
422  175, 174, 190,
423  173, 172, 188,
424  171, 170, 185,
425  169, 168, 184,
426  180, 179, 195,
427  178, 177, 193,
428  176, 175, 191,
429  174, 173, 189,
430  172, 171, 187,
431  170, 169, 185,
432  181, 180, 196,
433  168, 167, 183,
434  179, 178, 194,
435  192, 191, 208,
436  190, 189, 206,
437  188, 187, 204,
438  186, 185, 201,
439  184, 183, 200,
440  195, 194, 211,
441  193, 192, 209,
442  191, 190, 207,
443  189, 188, 205,
444  187, 186, 203,
445  185, 184, 201,
446  196, 195, 212,
447  183, 182, 199,
448  194, 193, 210,
449  208, 207, 222,
450  206, 205, 221,
451  204, 203, 219,
452  202, 201, 216,
453  200, 199, 215,
454  211, 210, 226,
455  209, 208, 224,
456  207, 206, 222,
457  205, 204, 220,
458  203, 202, 218,
459  201, 200, 216,
460  212, 211, 227,
461  199, 198, 214,
462  210, 209, 225,
463  223, 222, 237,
464  221, 220, 236,
465  219, 218, 234,
466  217, 216, 231,
467  215, 214, 230,
468  226, 225, 241,
469  224, 223, 239,
470  222, 221, 237,
471  220, 219, 235,
472  218, 217, 233,
473  216, 215, 231,
474  227, 226, 242,
475  214, 213, 229,
476  225, 224, 239,
477  16, 15, 31,
478  1, 197, 17,
479  16, 31, 46,
480  17, 197, 32,
481  16, 46, 61,
482  32, 197, 47,
483  16, 61, 76,
484  47, 197, 62,
485  16, 76, 91,
486  62, 197, 77,
487  16, 91, 106,
488  77, 197, 92,
489  16, 106, 121,
490  92, 197, 107,
491  16, 121, 136,
492  107, 197, 122,
493  16, 136, 151,
494  122, 197, 137,
495  16, 151, 166,
496  137, 197, 152,
497  16, 166, 181,
498  152, 197, 167,
499  16, 181, 196,
500  167, 197, 182,
501  16, 196, 212,
502  182, 197, 198,
503  16, 212, 227,
504  198, 197, 213,
505  16, 227, 242,
506  213, 197, 228,
507  238, 237, 10,
508  236, 235, 9,
509  234, 233, 7,
510  232, 231, 5,
511  16, 242, 15,
512  230, 229, 3,
513  241, 240, 13,
514  228, 197, 1,
515  239, 238, 12,
516  237, 236, 10,
517  235, 234, 8,
518  233, 232, 6,
519  231, 230, 4,
520  242, 241, 14,
521  229, 228, 2,
522  240, 239, 12,
523  4, 20, 21,
524  2, 18, 19,
525  13, 29, 30,
526  11, 27, 28,
527  9, 25, 26,
528  7, 23, 24,
529  5, 21, 22,
530  3, 19, 20,
531  14, 30, 31,
532  1, 17, 18,
533  12, 28, 29,
534  10, 26, 27,
535  8, 24, 25,
536  6, 22, 23,
537  26, 41, 42,
538  24, 39, 40,
539  22, 37, 38,
540  20, 35, 36,
541  18, 33, 34,
542  29, 44, 45,
543  27, 42, 43,
544  25, 40, 41,
545  23, 38, 39,
546  21, 36, 37,
547  19, 34, 35,
548  30, 45, 46,
549  17, 32, 33,
550  28, 43, 44,
551  41, 56, 57,
552  39, 54, 55,
553  37, 52, 53,
554  35, 50, 51,
555  33, 48, 49,
556  44, 59, 60,
557  42, 57, 58,
558  40, 55, 56,
559  38, 53, 54,
560  36, 51, 52,
561  34, 49, 50,
562  45, 60, 61,
563  32, 47, 48,
564  43, 58, 59,
565  56, 71, 72,
566  54, 69, 70,
567  52, 67, 68,
568  50, 65, 66,
569  48, 63, 64,
570  59, 74, 75,
571  57, 72, 73,
572  55, 70, 71,
573  53, 68, 69,
574  51, 66, 67,
575  49, 64, 65,
576  60, 75, 76,
577  47, 62, 63,
578  58, 73, 74,
579  71, 86, 87,
580  69, 84, 85,
581  67, 82, 83,
582  65, 80, 81,
583  63, 78, 79,
584  74, 89, 90,
585  72, 87, 88,
586  70, 85, 86,
587  68, 83, 84,
588  66, 81, 82,
589  64, 79, 80,
590  75, 90, 91,
591  62, 77, 78,
592  73, 88, 89,
593  86, 101, 102,
594  84, 99, 100,
595  82, 97, 98,
596  96, 81, 95,
597  78, 93, 94,
598  89, 104, 105,
599  87, 102, 103,
600  85, 100, 101,
601  83, 98, 99,
602  81, 96, 97,
603  79, 94, 95,
604  90, 105, 106,
605  77, 92, 93,
606  88, 103, 104,
607  101, 116, 117,
608  99, 114, 115,
609  97, 112, 113,
610  111, 96, 110,
611  93, 108, 109,
612  104, 119, 120,
613  102, 117, 118,
614  100, 115, 116,
615  98, 113, 114,
616  96, 111, 112,
617  94, 109, 110,
618  105, 120, 121,
619  92, 107, 108,
620  103, 118, 119,
621  116, 131, 132,
622  114, 129, 130,
623  112, 127, 128,
624  126, 111, 125,
625  108, 123, 124,
626  119, 134, 135,
627  117, 132, 133,
628  115, 130, 131,
629  113, 128, 129,
630  111, 126, 127,
631  109, 124, 125,
632  120, 135, 136,
633  107, 122, 123,
634  118, 133, 134,
635  131, 146, 147,
636  129, 144, 145,
637  127, 142, 143,
638  141, 126, 140,
639  123, 138, 139,
640  134, 149, 150,
641  132, 147, 148,
642  130, 145, 146,
643  128, 143, 144,
644  126, 141, 142,
645  124, 139, 140,
646  135, 150, 151,
647  122, 137, 138,
648  133, 148, 149,
649  146, 161, 162,
650  144, 159, 160,
651  142, 157, 158,
652  140, 155, 156,
653  138, 153, 154,
654  149, 164, 165,
655  147, 162, 163,
656  145, 160, 161,
657  143, 158, 159,
658  141, 156, 157,
659  139, 154, 155,
660  150, 165, 166,
661  137, 152, 153,
662  148, 163, 164,
663  161, 176, 177,
664  159, 174, 175,
665  157, 172, 173,
666  171, 156, 170,
667  153, 168, 169,
668  164, 179, 180,
669  162, 177, 178,
670  160, 175, 176,
671  158, 173, 174,
672  156, 171, 172,
673  154, 169, 170,
674  165, 180, 181,
675  152, 167, 168,
676  163, 178, 179,
677  192, 177, 191,
678  174, 189, 190,
679  172, 187, 188,
680  186, 171, 185,
681  168, 183, 184,
682  179, 194, 195,
683  177, 192, 193,
684  175, 190, 191,
685  173, 188, 189,
686  171, 186, 187,
687  169, 184, 185,
688  180, 195, 196,
689  167, 182, 183,
690  178, 193, 194,
691  191, 207, 208,
692  189, 205, 206,
693  187, 203, 204,
694  202, 186, 201,
695  183, 199, 200,
696  194, 210, 211,
697  192, 208, 209,
698  190, 206, 207,
699  188, 204, 205,
700  186, 202, 203,
701  184, 200, 201,
702  195, 211, 212,
703  182, 198, 199,
704  193, 209, 210,
705  223, 208, 222,
706  205, 220, 221,
707  203, 218, 219,
708  217, 202, 216,
709  199, 214, 215,
710  210, 225, 226,
711  208, 223, 224,
712  206, 221, 222,
713  204, 219, 220,
714  202, 217, 218,
715  200, 215, 216,
716  211, 226, 227,
717  198, 213, 214,
718  209, 224, 225,
719  238, 223, 237,
720  220, 235, 236,
721  218, 233, 234,
722  232, 217, 231,
723  214, 229, 230,
724  225, 240, 241,
725  223, 238, 239,
726  221, 236, 237,
727  219, 234, 235,
728  217, 232, 233,
729  215, 230, 231,
730  226, 241, 242,
731  213, 228, 229,
732  240, 225, 239,
733  11, 238, 10,
734  235, 8, 9,
735  233, 6, 7,
736  231, 4, 5,
737  229, 2, 3,
738  14, 241, 13,
739  238, 11, 12,
740  236, 9, 10,
741  234, 7, 8,
742  232, 5, 6,
743  230, 3, 4,
744  15, 242, 14,
745  228, 1, 2,
746  13, 240, 12
747 };
748 
749 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
750 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
751 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
752 // CONE
753 
754 #define NB_VERTICES_INIT_CONE 33
755 #define NB_TRIANGLES_INIT_CONE 62
756 
757 // temporary vertices
758 double vrml_vert_cone[3*NB_VERTICES_INIT_CONE] = {
759  0.000000, -1.0, -1.000000,
760  0.000000, 1.0, 0.000000,
761  0.195090, -1.0, -0.980785,
762  0.382683, -1.0, -0.923880,
763  0.555570, -1.0, -0.831470,
764  0.707107, -1.0, -0.707107,
765  0.831470, -1.0, -0.555570,
766  0.923880, -1.0, -0.382683,
767  0.980785, -1.0, -0.195090,
768  1.000000, -1.0, -0.000000,
769  0.980785, -1.0, 0.195090,
770  0.923880, -1.0, 0.382683,
771  0.831470, -1.0, 0.555570,
772  0.707107, -1.0, 0.707107,
773  0.555570, -1.0, 0.831470,
774  0.382683, -1.0, 0.923880,
775  0.195090, -1.0, 0.980785,
776  -0.000000, -1.0, 1.000000,
777  -0.195091, -1.0, 0.980785,
778  -0.382684, -1.0, 0.923879,
779  -0.555571, -1.0, 0.831469,
780  -0.707107, -1.0, 0.707106,
781  -0.831470, -1.0, 0.555570,
782  -0.923880, -1.0, 0.382683,
783  -0.980785, -1.0, 0.195089,
784  -1.000000, -1.0, -0.000001,
785  -0.980785, -1.0, -0.195091,
786  -0.923879, -1.0, -0.382684,
787  -0.831469, -1.0, -0.555571,
788  -0.707106, -1.0, -0.707108,
789  -0.555569, -1.0, -0.831470,
790  -0.382682, -1.0, -0.923880,
791  -0.195089, -1.0, -0.980786
792 };
793 
794 // temporary coordinates
795 int vrml_coord_cone[3*NB_TRIANGLES_INIT_CONE] = {
796  32, 2, 33,
797  1, 2, 3,
798  31, 2, 32,
799  30, 2, 31,
800  29, 2, 30,
801  28, 2, 29,
802  27, 2, 28,
803  26, 2, 27,
804  25, 2, 26,
805  24, 2, 25,
806  23, 2, 24,
807  22, 2, 23,
808  21, 2, 22,
809  20, 2, 21,
810  19, 2, 20,
811  18, 2, 19,
812  17, 2, 18,
813  16, 2, 17,
814  15, 2, 16,
815  14, 2, 15,
816  13, 2, 14,
817  12, 2, 13,
818  11, 2, 12,
819  10, 2, 11,
820  9, 2, 10,
821  8, 2, 9,
822  7, 2, 8,
823  6, 2, 7,
824  5, 2, 6,
825  4, 2, 5,
826  33, 2, 1,
827  3, 2, 4,
828  1, 3, 33,
829  3, 4, 33,
830  4, 5, 33,
831  5, 6, 33,
832  6, 7, 33,
833  7, 8, 33,
834  8, 9, 33,
835  9, 10, 33,
836  10, 11, 33,
837  11, 12, 33,
838  12, 13, 33,
839  13, 14, 33,
840  28, 26, 27,
841  14, 15, 16,
842  33, 14, 16,
843  19, 17, 18,
844  19, 16, 17,
845  33, 16, 19,
846  22, 20, 21,
847  22, 19, 20,
848  33, 19, 22,
849  25, 23, 24,
850  32, 33, 22,
851  28, 25, 26,
852  28, 23, 25,
853  31, 32, 22,
854  30, 31, 22,
855  29, 30, 22,
856  28, 29, 23,
857  29, 22, 23
858 };
859 
860 
861 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
862 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
863 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
864 // CYLINDER
865 
866 #define NB_VERTICES_INIT_CYLINDER 64
867 #define NB_TRIANGLES_INIT_CYLINDER 124
868 
869 // temporary vertices
870 double vrml_vert_cylinder[3*NB_VERTICES_INIT_CYLINDER] = {
871  0.000000, -1.0, -1.000000,
872  0.000000, 1.0, -1.000000,
873  0.195090, -1.0, -0.980785,
874  0.195090, 1.0, -0.980785,
875  0.382683, -1.0, -0.923880,
876  0.382683, 1.0, -0.923880,
877  0.555570, -1.0, -0.831470,
878  0.555570, 1.0, -0.831470,
879  0.707107, -1.0, -0.707107,
880  0.707107, 1.0, -0.707107,
881  0.831470, -1.0, -0.555570,
882  0.831470, 1.0, -0.555570,
883  0.923880, -1.0, -0.382683,
884  0.923880, 1.0, -0.382683,
885  0.980785, -1.0, -0.195090,
886  0.980785, 1.0, -0.195090,
887  1.000000, -1.0, -0.000000,
888  1.000000, 1.0, -0.000000,
889  0.980785, -1.0, 0.195090,
890  0.980785, 1.0, 0.195090,
891  0.923880, -1.0, 0.382683,
892  0.923880, 1.0, 0.382683,
893  0.831470, -1.0, 0.555570,
894  0.831470, 1.0, 0.555570,
895  0.707107, -1.0, 0.707107,
896  0.707107, 1.0, 0.707107,
897  0.555570, -1.0, 0.831470,
898  0.555570, 1.0, 0.831470,
899  0.382683, -1.0, 0.923880,
900  0.382683, 1.0, 0.923880,
901  0.195090, -1.0, 0.980785,
902  0.195090, 1.0, 0.980785,
903  -0.000000, -1.0, 1.000000,
904  -0.000000, 1.0, 1.000000,
905  -0.195091, -1.0, 0.980785,
906  -0.195091, 1.0, 0.980785,
907  -0.382684, -1.0, 0.923879,
908  -0.382684, 1.0, 0.923879,
909  -0.555571, -1.0, 0.831469,
910  -0.555571, 1.0, 0.831469,
911  -0.707107, -1.0, 0.707106,
912  -0.707107, 1.0, 0.707106,
913  -0.831470, -1.0, 0.555570,
914  -0.831470, 1.0, 0.555570,
915  -0.923880, -1.0, 0.382683,
916  -0.923880, 1.0, 0.382683,
917  -0.980785, -1.0, 0.195089,
918  -0.980785, 1.0, 0.195089,
919  -1.000000, -1.0, -0.000001,
920  -1.000000, 1.0, -0.000001,
921  -0.980785, -1.0, -0.195091,
922  -0.980785, 1.0, -0.195091,
923  -0.923879, -1.0, -0.382684,
924  -0.923879, 1.0, -0.382684,
925  -0.831469, -1.0, -0.555571,
926  -0.831469, 1.0, -0.555571,
927  -0.707106, -1.0, -0.707108,
928  -0.707106, 1.0, -0.707108,
929  -0.555569, -1.0, -0.831470,
930  -0.555569, 1.0, -0.831470,
931  -0.382682, -1.0, -0.923880,
932  -0.382682, 1.0, -0.923880,
933  -0.195089, -1.0, -0.980786,
934  -0.195089, 1.0, -0.980786
935 };
936 
937 // temporary coordinates
938 int vrml_coord_cylinder[3*NB_TRIANGLES_INIT_CYLINDER] = {
939  1, 2, 3,
940  3, 4, 5,
941  5, 6, 7,
942  7, 8, 9,
943  9, 10, 11,
944  11, 12, 13,
945  13, 14, 15,
946  15, 16, 17,
947  17, 18, 19,
948  19, 20, 21,
949  21, 22, 23,
950  23, 24, 25,
951  25, 26, 27,
952  27, 28, 29,
953  29, 30, 31,
954  31, 32, 33,
955  33, 34, 35,
956  35, 36, 37,
957  37, 38, 39,
958  39, 40, 41,
959  41, 42, 43,
960  43, 44, 45,
961  45, 46, 47,
962  47, 48, 49,
963  49, 50, 51,
964  51, 52, 53,
965  53, 54, 55,
966  55, 56, 57,
967  57, 58, 59,
968  59, 60, 61,
969  4, 2, 6,
970  63, 64, 1,
971  61, 62, 63,
972  1, 3, 63,
973  2, 4, 3,
974  4, 6, 5,
975  6, 8, 7,
976  8, 10, 9,
977  10, 12, 11,
978  12, 14, 13,
979  14, 16, 15,
980  16, 18, 17,
981  18, 20, 19,
982  20, 22, 21,
983  22, 24, 23,
984  24, 26, 25,
985  26, 28, 27,
986  28, 30, 29,
987  30, 32, 31,
988  32, 34, 33,
989  34, 36, 35,
990  36, 38, 37,
991  38, 40, 39,
992  40, 42, 41,
993  42, 44, 43,
994  44, 46, 45,
995  46, 48, 47,
996  48, 50, 49,
997  50, 52, 51,
998  52, 54, 53,
999  54, 56, 55,
1000  56, 58, 57,
1001  58, 60, 59,
1002  60, 62, 61,
1003  2, 64, 6,
1004  64, 62, 6,
1005  62, 60, 6,
1006  60, 58, 6,
1007  58, 56, 6,
1008  56, 54, 6,
1009  54, 52, 6,
1010  52, 50, 6,
1011  50, 48, 6,
1012  48, 46, 6,
1013  46, 44, 6,
1014  44, 42, 6,
1015  42, 40, 6,
1016  38, 36, 34,
1017  38, 34, 32,
1018  40, 38, 32,
1019  6, 40, 32,
1020  28, 32, 30,
1021  26, 32, 28,
1022  24, 32, 26,
1023  22, 32, 24,
1024  20, 32, 22,
1025  10, 14, 12,
1026  10, 16, 14,
1027  18, 32, 20,
1028  16, 32, 18,
1029  10, 32, 16,
1030  8, 6, 32,
1031  10, 8, 32,
1032  64, 2, 1,
1033  62, 64, 63,
1034  3, 5, 63,
1035  5, 7, 63,
1036  7, 9, 63,
1037  9, 11, 63,
1038  11, 13, 63,
1039  13, 15, 63,
1040  15, 17, 63,
1041  17, 19, 63,
1042  19, 21, 63,
1043  21, 23, 63,
1044  23, 25, 63,
1045  53, 49, 51,
1046  25, 27, 29,
1047  63, 25, 29,
1048  35, 31, 33,
1049  35, 29, 31,
1050  63, 29, 35,
1051  41, 37, 39,
1052  41, 35, 37,
1053  63, 35, 41,
1054  47, 43, 45,
1055  61, 63, 41,
1056  53, 47, 49,
1057  53, 43, 47,
1058  59, 61, 41,
1059  57, 59, 41,
1060  55, 57, 41,
1061  53, 55, 43,
1062  55, 41, 43
1063 };
1064 
1065 
1066 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
1067 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
1068 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
1069 // BOX
1070 
1071 #define NB_VERTICES_INIT_BOX 8
1072 #define NB_TRIANGLES_INIT_BOX 12
1073 
1074 // temporary vertices
1075 double vrml_vert_box[3*NB_VERTICES_INIT_BOX] = {
1076  -1.0, -1.0, 1.0,
1077  -1.0, -1.0, -1.0,
1078  1.0, -1.0, -1.0,
1079  1.0, -1.0, 1.0,
1080  -1.0, 1.0, 1.0,
1081  -1.0, 1.0, -1.0,
1082  1.0, 1.0, -1.0,
1083  1.0, 1.0, 1.0
1084 };
1085 
1086 // temporary coordinates
1087 int vrml_coord_box[3*NB_TRIANGLES_INIT_BOX] = {
1088  5, 6, 1,
1089  6, 7, 2,
1090  7, 8, 3,
1091  8, 5, 4,
1092  1, 2, 4,
1093  8, 7, 5,
1094  6, 2, 1,
1095  7, 3, 2,
1096  8, 4, 3,
1097  5, 1, 4,
1098  2, 3, 4,
1099  7, 6, 5
1100 };
1101 
1102 
1103 
1104 
1105 #endif //_VRML_SHAPE_POINTS_HH
1106 #endif //OPEN_GL