Source

WebGL Beginner's Guide - Code / 1727_07 / models / geometry / wall.vtk

Full commit
# vtk DataFile Version 3.0
vtk output
ASCII
DATASET POLYDATA
POINTS 24 float
-15 0 -0.5 -15 0 0.5 -15 10 -0.5 
-15 10 0.5 15 0 -0.5 15 0 0.5 
15 10 -0.5 15 10 0.5 -15 0 -0.5 
-15 0 0.5 15 0 -0.5 15 0 0.5 
-15 10 -0.5 -15 10 0.5 15 10 -0.5 
15 10 0.5 -15 0 -0.5 15 0 -0.5 
-15 10 -0.5 15 10 -0.5 -15 0 0.5 
15 0 0.5 -15 10 0.5 15 10 0.5 

POLYGONS 12 48
3 0 1 2 
3 3 2 1 
3 4 6 5 
3 7 5 6 
3 8 10 9 
3 11 9 10 
3 12 13 14 
3 15 14 13 
3 16 18 17 
3 19 17 18 
3 20 21 22 
3 23 22 21 

POINT_DATA 24
NORMALS Normals float
-1 0 0 -1 0 0 -1 0 0 
-1 0 0 1 0 0 1 0 0 
1 0 0 1 0 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 0 -1 0 0 -1 
0 0 -1 0 0 -1 0 0 1 
0 0 1 0 0 1 0 0 1 

TEXTURE_COORDINATES TCoords 2 float
0 0.5 1 0.5 0 10.5 1 10.5 -0 
0.5 -1 0.5 -0 10.5 -1 10.5 14.5 -0 
14.5 -1 -15.5 -0 -15.5 -1 -14.5 -0 -14.5 
-1 15.5 -0 15.5 -1 14.5 0.5 -15.5 0.5 
14.5 10.5 -15.5 10.5 -14.5 0.5 15.5 0.5 -14.5 
10.5 15.5 10.5