1. Diego Cantor
  2. WebGL Beginner's Guide - Code

Source

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

# vtk DataFile Version 3.0
vtk output
ASCII
DATASET POLYDATA
POINTS 152 float
0 6 -2.59787e-016 3 8.88178e-016 5.19574e-016 2.99737 8.88178e-016 -0.125627 
2.98948 8.88178e-016 -0.251034 2.97634 8.88178e-016 -0.376 2.95799 8.88178e-016 -0.500306 
2.93444 8.88178e-016 -0.623735 2.90575 8.88178e-016 -0.74607 2.87196 8.88178e-016 -0.867095 
2.83313 8.88178e-016 -0.9866 2.78933 8.88178e-016 -1.10437 2.74064 8.88178e-016 -1.22021 
2.68714 8.88178e-016 -1.33391 2.62892 8.88178e-016 -1.44526 2.56609 8.88178e-016 -1.55408 
2.49876 8.88178e-016 -1.66017 2.42705 8.88178e-016 -1.76336 2.35108 8.88178e-016 -1.86344 
2.27099 8.88178e-016 -1.96026 2.18691 8.88178e-016 -2.05364 2.09899 8.88178e-016 -2.14342 
2.00739 8.88178e-016 -2.22943 1.91227 8.88178e-016 -2.31154 1.8138 8.88178e-016 -2.38959 
1.71214 8.88178e-016 -2.46345 1.60748 8.88178e-016 -2.53298 1.5 4.44089e-016 -2.59808 
1.38989 4.44089e-016 -2.65861 1.27734 4.44089e-016 -2.71448 1.16255 4.44089e-016 -2.76559 
1.04572 4.44089e-016 -2.81185 0.927051 4.44089e-016 -2.85317 0.806759 4.44089e-016 -2.88949 
0.685053 4.44089e-016 -2.92074 0.562144 4.44089e-016 -2.94686 0.438249 4.44089e-016 -2.96782 
0.313585 4.44089e-016 -2.98357 0.188372 4.44089e-016 -2.99408 0.0628273 4.44089e-016 -2.99934 
-0.0628273 4.44089e-016 -2.99934 -0.188372 4.44089e-016 -2.99408 -0.313585 4.44089e-016 -2.98357 
-0.438249 4.44089e-016 -2.96782 -0.562144 4.44089e-016 -2.94686 -0.685053 4.44089e-016 -2.92074 
-0.806759 4.44089e-016 -2.88949 -0.927051 4.44089e-016 -2.85317 -1.04572 4.44089e-016 -2.81185 
-1.16255 4.44089e-016 -2.76559 -1.27734 4.44089e-016 -2.71448 -1.38989 4.44089e-016 -2.65861 
-1.5 4.44089e-016 -2.59808 -1.60748 8.88178e-016 -2.53298 -1.71214 8.88178e-016 -2.46345 
-1.8138 8.88178e-016 -2.38959 -1.91227 8.88178e-016 -2.31154 -2.00739 8.88178e-016 -2.22943 
-2.09899 8.88178e-016 -2.14342 -2.18691 8.88178e-016 -2.05364 -2.27099 8.88178e-016 -1.96026 
-2.35108 8.88178e-016 -1.86344 -2.42705 8.88178e-016 -1.76336 -2.49876 8.88178e-016 -1.66017 
-2.56609 8.88178e-016 -1.55408 -2.62892 8.88178e-016 -1.44526 -2.68714 8.88178e-016 -1.33391 
-2.74064 8.88178e-016 -1.22021 -2.78933 8.88178e-016 -1.10437 -2.83313 8.88178e-016 -0.9866 
-2.87196 8.88178e-016 -0.867095 -2.90575 8.88178e-016 -0.74607 -2.93444 8.88178e-016 -0.623735 
-2.95799 8.88178e-016 -0.500306 -2.97634 8.88178e-016 -0.376 -2.98948 8.88178e-016 -0.251034 
-2.99737 8.88178e-016 -0.125627 -3 8.88178e-016 1.23062e-009 -2.99737 8.88178e-016 0.125627 
-2.98948 8.88178e-016 0.251034 -2.97634 8.88178e-016 0.376 -2.95799 8.88178e-016 0.500306 
-2.93444 8.88178e-016 0.623735 -2.90575 8.88178e-016 0.74607 -2.87196 8.88178e-016 0.867095 
-2.83313 8.88178e-016 0.9866 -2.78933 8.88178e-016 1.10437 -2.74064 8.88178e-016 1.22021 
-2.68714 8.88178e-016 1.33391 -2.62892 8.88178e-016 1.44526 -2.56609 8.88178e-016 1.55408 
-2.49876 8.88178e-016 1.66017 -2.42705 8.88178e-016 1.76336 -2.35108 8.88178e-016 1.86344 
-2.27099 8.88178e-016 1.96026 -2.18691 8.88178e-016 2.05364 -2.09899 8.88178e-016 2.14342 
-2.00739 8.88178e-016 2.22943 -1.91227 8.88178e-016 2.31154 -1.8138 8.88178e-016 2.38959 
-1.71214 8.88178e-016 2.46345 -1.60748 8.88178e-016 2.53298 -1.5 1.33227e-015 2.59808 
-1.38989 1.33227e-015 2.65861 -1.27734 1.33227e-015 2.71448 -1.16255 1.33227e-015 2.76559 
-1.04572 1.33227e-015 2.81185 -0.927051 1.33227e-015 2.85317 -0.806759 1.33227e-015 2.88949 
-0.685053 1.33227e-015 2.92074 -0.562144 1.33227e-015 2.94686 -0.438249 1.33227e-015 2.96782 
-0.313585 1.33227e-015 2.98357 -0.188372 1.33227e-015 2.99408 -0.0628273 1.33227e-015 2.99934 
0.0628273 1.33227e-015 2.99934 0.188372 1.33227e-015 2.99408 0.313585 1.33227e-015 2.98357 
0.438249 1.33227e-015 2.96782 0.562144 1.33227e-015 2.94686 0.685053 1.33227e-015 2.92074 
0.806759 1.33227e-015 2.88949 0.927051 1.33227e-015 2.85317 1.04572 1.33227e-015 2.81185 
1.16255 1.33227e-015 2.76559 1.27734 1.33227e-015 2.71448 1.38989 1.33227e-015 2.65861 
1.5 1.33227e-015 2.59808 1.60748 8.88178e-016 2.53298 1.71214 8.88178e-016 2.46345 
1.8138 8.88178e-016 2.38959 1.91227 8.88178e-016 2.31154 2.00739 8.88178e-016 2.22943 
2.09899 8.88178e-016 2.14342 2.18691 8.88178e-016 2.05364 2.27099 8.88178e-016 1.96026 
2.35108 8.88178e-016 1.86344 2.42705 8.88178e-016 1.76336 2.49876 8.88178e-016 1.66017 
2.56609 8.88178e-016 1.55408 2.62892 8.88178e-016 1.44526 2.68714 8.88178e-016 1.33391 
2.74064 8.88178e-016 1.22021 2.78933 8.88178e-016 1.10437 2.83313 8.88178e-016 0.9866 
2.87196 8.88178e-016 0.867095 2.90575 8.88178e-016 0.74607 2.93444 8.88178e-016 0.623735 
2.95799 8.88178e-016 0.500306 2.97634 8.88178e-016 0.376 2.98948 8.88178e-016 0.251034 
2.99737 8.88178e-016 0.125627 3 8.88178e-016 -2.46124e-009 
POLYGONS 150 600
3 0 1 2 
3 0 2 3 
3 0 3 4 
3 0 4 5 
3 0 5 6 
3 0 6 7 
3 0 7 8 
3 0 8 9 
3 0 9 10 
3 0 10 11 
3 0 11 12 
3 0 12 13 
3 0 13 14 
3 0 14 15 
3 0 15 16 
3 0 16 17 
3 0 17 18 
3 0 18 19 
3 0 19 20 
3 0 20 21 
3 0 21 22 
3 0 22 23 
3 0 23 24 
3 0 24 25 
3 0 25 26 
3 0 26 27 
3 0 27 28 
3 0 28 29 
3 0 29 30 
3 0 30 31 
3 0 31 32 
3 0 32 33 
3 0 33 34 
3 0 34 35 
3 0 35 36 
3 0 36 37 
3 0 37 38 
3 0 38 39 
3 0 39 40 
3 0 40 41 
3 0 41 42 
3 0 42 43 
3 0 43 44 
3 0 44 45 
3 0 45 46 
3 0 46 47 
3 0 47 48 
3 0 48 49 
3 0 49 50 
3 0 50 51 
3 0 51 52 
3 0 52 53 
3 0 53 54 
3 0 54 55 
3 0 55 56 
3 0 56 57 
3 0 57 58 
3 0 58 59 
3 0 59 60 
3 0 60 61 
3 0 61 62 
3 0 62 63 
3 0 63 64 
3 0 64 65 
3 0 65 66 
3 0 66 67 
3 0 67 68 
3 0 68 69 
3 0 69 70 
3 0 70 71 
3 0 71 72 
3 0 72 73 
3 0 73 74 
3 0 74 75 
3 0 75 76 
3 0 76 77 
3 0 77 78 
3 0 78 79 
3 0 79 80 
3 0 80 81 
3 0 81 82 
3 0 82 83 
3 0 83 84 
3 0 84 85 
3 0 85 86 
3 0 86 87 
3 0 87 88 
3 0 88 89 
3 0 89 90 
3 0 90 91 
3 0 91 92 
3 0 92 93 
3 0 93 94 
3 0 94 95 
3 0 95 96 
3 0 96 97 
3 0 97 98 
3 0 98 99 
3 0 99 100 
3 0 100 101 
3 0 101 102 
3 0 102 103 
3 0 103 104 
3 0 104 105 
3 0 105 106 
3 0 106 107 
3 0 107 108 
3 0 108 109 
3 0 109 110 
3 0 110 111 
3 0 111 112 
3 0 112 113 
3 0 113 114 
3 0 114 115 
3 0 115 116 
3 0 116 117 
3 0 117 118 
3 0 118 119 
3 0 119 120 
3 0 120 121 
3 0 121 122 
3 0 122 123 
3 0 123 124 
3 0 124 125 
3 0 125 126 
3 0 126 127 
3 0 127 128 
3 0 128 129 
3 0 129 130 
3 0 130 131 
3 0 131 132 
3 0 132 133 
3 0 133 134 
3 0 134 135 
3 0 135 136 
3 0 136 137 
3 0 137 138 
3 0 138 139 
3 0 139 140 
3 0 140 141 
3 0 141 142 
3 0 142 143 
3 0 143 144 
3 0 144 145 
3 0 145 146 
3 0 146 147 
3 0 147 148 
3 0 148 149 
3 0 149 150 
3 0 150 151