Source

WebGL Beginner's Guide - Code / 1727_08 / models / geometry / cylinder.vtk

Full commit
# vtk DataFile Version 3.0
vtk output
ASCII
DATASET POLYDATA
POINTS 80 float
5 10 0 5 0 0 4.75528 10 -1.54508 
4.75528 0 -1.54508 4.04508 10 -2.93893 4.04508 0 -2.93893 
2.93893 10 -4.04508 2.93893 0 -4.04508 1.54508 10 -4.75528 
1.54508 0 -4.75528 -1.02552e-009 10 -5 -1.02552e-009 0 -5 
-1.54508 10 -4.75528 -1.54508 0 -4.75528 -2.93893 10 -4.04508 
-2.93893 0 -4.04508 -4.04508 10 -2.93893 -4.04508 0 -2.93893 
-4.75528 10 -1.54508 -4.75528 0 -1.54508 -5 10 2.05103e-009 
-5 0 2.05103e-009 -4.75528 10 1.54508 -4.75528 0 1.54508 
-4.04508 10 2.93893 -4.04508 0 2.93893 -2.93893 10 4.04508 
-2.93893 0 4.04508 -1.54508 10 4.75528 -1.54508 0 4.75528 
3.07655e-009 10 5 3.07655e-009 0 5 1.54508 10 4.75528 
1.54508 0 4.75528 2.93893 10 4.04508 2.93893 0 4.04508 
4.04508 10 2.93893 4.04508 0 2.93893 4.75528 10 1.54508 
4.75528 0 1.54508 5 10 0 4.75528 10 -1.54508 
4.04508 10 -2.93893 2.93893 10 -4.04508 1.54508 10 -4.75528 
-1.02552e-009 10 -5 -1.54508 10 -4.75528 -2.93893 10 -4.04508 
-4.04508 10 -2.93893 -4.75528 10 -1.54508 -5 10 2.05103e-009 
-4.75528 10 1.54508 -4.04508 10 2.93893 -2.93893 10 4.04508 
-1.54508 10 4.75528 3.07655e-009 10 5 1.54508 10 4.75528 
2.93893 10 4.04508 4.04508 10 2.93893 4.75528 10 1.54508 
4.75528 0 1.54508 4.04508 0 2.93893 2.93893 0 4.04508 
1.54508 0 4.75528 3.07655e-009 0 5 -1.54508 0 4.75528 
-2.93893 0 4.04508 -4.04508 0 2.93893 -4.75528 0 1.54508 
-5 0 2.05103e-009 -4.75528 0 -1.54508 -4.04508 0 -2.93893 
-2.93893 0 -4.04508 -1.54508 0 -4.75528 -1.02552e-009 0 -5 
1.54508 0 -4.75528 2.93893 0 -4.04508 4.04508 0 -2.93893 
4.75528 0 -1.54508 5 0 0 
POLYGONS 76 304
3 0 1 2 
3 3 2 1 
3 2 3 4 
3 4 3 5 
3 4 5 6 
3 7 6 5 
3 6 7 8 
3 8 7 9 
3 8 9 10 
3 11 10 9 
3 10 11 12 
3 13 12 11 
3 12 13 14 
3 14 13 15 
3 14 15 16 
3 17 16 15 
3 16 17 18 
3 18 17 19 
3 18 19 20 
3 21 20 19 
3 20 21 22 
3 23 22 21 
3 22 23 24 
3 24 23 25 
3 24 25 26 
3 27 26 25 
3 26 27 28 
3 28 27 29 
3 28 29 30 
3 31 30 29 
3 30 31 32 
3 33 32 31 
3 32 33 34 
3 34 33 35 
3 34 35 36 
3 37 36 35 
3 36 37 38 
3 38 37 39 
3 38 39 0 
3 1 0 39 
3 40 41 59 
3 59 41 58 
3 58 41 57 
3 57 41 56 
3 56 41 55 
3 55 41 54 
3 54 41 53 
3 53 41 52 
3 52 41 51 
3 51 41 50 
3 50 41 49 
3 49 41 48 
3 48 41 47 
3 41 42 47 
3 42 43 47 
3 47 43 46 
3 46 43 45 
3 44 45 43 
3 64 65 63 
3 63 65 62 
3 62 65 61 
3 61 65 60 
3 60 65 79 
3 79 65 78 
3 78 65 77 
3 77 65 76 
3 76 65 75 
3 75 65 74 
3 74 65 73 
3 73 65 72 
3 72 65 71 
3 65 66 71 
3 66 67 71 
3 71 67 70 
3 70 67 69 
3 68 69 67 

POINT_DATA 80
NORMALS Normals float
1 0 -0 1 0 -0 0.951057 0 -0.309017 
0.951057 0 -0.309017 0.809017 0 -0.587785 0.809017 0 -0.587785 
0.587785 0 -0.809017 0.587785 0 -0.809017 0.309017 0 -0.951057 
0.309017 0 -0.951057 -2.05103e-010 0 -1 -2.05103e-010 0 -1 
-0.309017 0 -0.951057 -0.309017 0 -0.951057 -0.587785 0 -0.809017 
-0.587785 0 -0.809017 -0.809017 0 -0.587785 -0.809017 0 -0.587785 
-0.951057 0 -0.309017 -0.951057 0 -0.309017 -1 0 4.10207e-010 
-1 0 4.10207e-010 -0.951057 0 0.309017 -0.951057 0 0.309017 
-0.809017 0 0.587785 -0.809017 0 0.587785 -0.587785 0 0.809017 
-0.587785 0 0.809017 -0.309017 0 0.951057 -0.309017 0 0.951057 
6.1531e-010 0 1 6.1531e-010 0 1 0.309017 0 0.951057 
0.309017 0 0.951057 0.587785 0 0.809017 0.587785 0 0.809017 
0.809017 0 0.587785 0.809017 0 0.587785 0.951057 0 0.309017 
0.951057 0 0.309017 0 1 0 0 1 0 
0 1 0 0 1 0 0 1 0 
0 1 0 0 1 0 0 1 0 
0 1 0 0 1 0 0 1 0 
0 1 0 0 1 0 0 1 0 
0 1 0 0 1 0 0 1 0 
0 1 0 0 1 0 0 1 0 
0 -1 0 0 -1 0 0 -1 0 
0 -1 0 0 -1 0 0 -1 0 
0 -1 0 0 -1 0 0 -1 0 
0 -1 0 0 -1 0 0 -1 0 
0 -1 0 0 -1 0 0 -1 0 
0 -1 0 0 -1 0 0 -1 0 
0 -1 0 0 -1 0 
TEXTURE_COORDINATES TCoords 2 float
1 0 1 1 0.9 0 0.9 1 0.8 
0 0.8 1 0.7 0 0.7 1 0.6 0 
0.6 1 0.5 0 0.5 1 0.4 0 0.4 
1 0.3 0 0.3 1 0.2 0 0.2 1 
0.1 0 0.1 1 0 0 0 1 0.1 
0 0.1 1 0.2 0 0.2 1 0.3 0 
0.3 1 0.4 0 0.4 1 0.5 0 0.5 
1 0.6 0 0.6 1 0.7 0 0.7 1 
0.8 0 0.8 1 0.9 0 0.9 1 5 
-0 4.75528 -1.54508 4.04508 -2.93893 2.93893 -4.04508 1.54508 -4.75528 
-1.02552e-009 -5 -1.54508 -4.75528 -2.93893 -4.04508 -4.04508 -2.93893 -4.75528 
-1.54508 -5 2.05103e-009 -4.75528 1.54508 -4.04508 2.93893 -2.93893 4.04508 
-1.54508 4.75528 3.07655e-009 5 1.54508 4.75528 2.93893 4.04508 4.04508 
2.93893 4.75528 1.54508 4.75528 1.54508 4.04508 2.93893 2.93893 4.04508 
1.54508 4.75528 3.07655e-009 5 -1.54508 4.75528 -2.93893 4.04508 -4.04508 
2.93893 -4.75528 1.54508 -5 2.05103e-009 -4.75528 -1.54508 -4.04508 -2.93893 
-2.93893 -4.04508 -1.54508 -4.75528 -1.02552e-009 -5 1.54508 -4.75528 2.93893 
-4.04508 4.04508 -2.93893 4.75528 -1.54508 5 -0