00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "map_iso_gen.hh"
00024
00025 namespace ost { namespace gfx { namespace map_iso {
00026
00027 template<int N>
00028 void AddLinesAndFaces(IndexedVertexArray& va,
00029 unsigned int vertex_id[12]
00030 );
00031
00032 template<>
00033 void AddLinesAndFaces<0>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00034 {
00035 }
00036
00037 template<>
00038 void AddLinesAndFaces<1>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00039 {
00040 va.AddLine(vertex_id[3],vertex_id[0]);
00041 va.AddLine(vertex_id[4],vertex_id[0]);
00042 va.AddLine(vertex_id[4],vertex_id[3]);
00043 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
00044
00045 #ifdef MAP_ISO_DEBUG
00046 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 1 << std::endl;
00047 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 1 << std::endl;
00048 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 1 << std::endl;
00049 #endif
00050 }
00051
00052 template<>
00053 void AddLinesAndFaces<2>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00054 {
00055 va.AddLine(vertex_id[1],vertex_id[0]);
00056 va.AddLine(vertex_id[5],vertex_id[0]);
00057 va.AddLine(vertex_id[5],vertex_id[1]);
00058 va.AddTriN(vertex_id[5],vertex_id[1],vertex_id[0]);
00059
00060 #ifdef MAP_ISO_DEBUG
00061 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 2 << std::endl;
00062 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 2 << std::endl;
00063 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 2 << std::endl;
00064 #endif
00065 }
00066
00067 template<>
00068 void AddLinesAndFaces<3>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00069 {
00070 va.AddLine(vertex_id[3],vertex_id[1]);
00071 va.AddLine(vertex_id[4],vertex_id[3]);
00072 va.AddLine(vertex_id[5],vertex_id[1]);
00073 va.AddLine(vertex_id[5],vertex_id[4]);
00074 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
00075
00076 #ifdef MAP_ISO_DEBUG
00077 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 3 << std::endl;
00078 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 3 << std::endl;
00079 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 3 << std::endl;
00080 #endif
00081 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[5]);
00082
00083 #ifdef MAP_ISO_DEBUG
00084 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 3 << std::endl;
00085 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 3 << std::endl;
00086 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 3 << std::endl;
00087 #endif
00088 }
00089
00090 template<>
00091 void AddLinesAndFaces<4>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00092 {
00093 va.AddLine(vertex_id[2],vertex_id[1]);
00094 va.AddLine(vertex_id[6],vertex_id[1]);
00095 va.AddLine(vertex_id[6],vertex_id[2]);
00096 va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[1]);
00097
00098 #ifdef MAP_ISO_DEBUG
00099 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 4 << std::endl;
00100 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 4 << std::endl;
00101 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 4 << std::endl;
00102 #endif
00103 }
00104
00105 template<>
00106 void AddLinesAndFaces<5>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00107 {
00108 va.AddLine(vertex_id[1],vertex_id[0]);
00109 va.AddLine(vertex_id[2],vertex_id[0]);
00110 va.AddLine(vertex_id[2],vertex_id[1]);
00111 va.AddLine(vertex_id[3],vertex_id[0]);
00112 va.AddLine(vertex_id[3],vertex_id[1]);
00113 va.AddLine(vertex_id[3],vertex_id[2]);
00114 va.AddLine(vertex_id[4],vertex_id[0]);
00115 va.AddLine(vertex_id[4],vertex_id[3]);
00116 va.AddLine(vertex_id[6],vertex_id[1]);
00117 va.AddLine(vertex_id[6],vertex_id[2]);
00118 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
00119
00120 #ifdef MAP_ISO_DEBUG
00121 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 5 << std::endl;
00122 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 5 << std::endl;
00123 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 5 << std::endl;
00124 #endif
00125 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
00126
00127 #ifdef MAP_ISO_DEBUG
00128 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 5 << std::endl;
00129 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 5 << std::endl;
00130 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 5 << std::endl;
00131 #endif
00132 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[1]);
00133
00134 #ifdef MAP_ISO_DEBUG
00135 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 5 << std::endl;
00136 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 5 << std::endl;
00137 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 5 << std::endl;
00138 #endif
00139 va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[6]);
00140
00141 #ifdef MAP_ISO_DEBUG
00142 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 5 << std::endl;
00143 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 5 << std::endl;
00144 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 5 << std::endl;
00145 #endif
00146 }
00147
00148 template<>
00149 void AddLinesAndFaces<6>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00150 {
00151 va.AddLine(vertex_id[2],vertex_id[0]);
00152 va.AddLine(vertex_id[5],vertex_id[0]);
00153 va.AddLine(vertex_id[6],vertex_id[2]);
00154 va.AddLine(vertex_id[6],vertex_id[5]);
00155 va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[5]);
00156
00157 #ifdef MAP_ISO_DEBUG
00158 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 6 << std::endl;
00159 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 6 << std::endl;
00160 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 6 << std::endl;
00161 #endif
00162 va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[0]);
00163
00164 #ifdef MAP_ISO_DEBUG
00165 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 6 << std::endl;
00166 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 6 << std::endl;
00167 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 6 << std::endl;
00168 #endif
00169 }
00170
00171 template<>
00172 void AddLinesAndFaces<7>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00173 {
00174 va.AddLine(vertex_id[3],vertex_id[2]);
00175 va.AddLine(vertex_id[4],vertex_id[3]);
00176 va.AddLine(vertex_id[5],vertex_id[4]);
00177 va.AddLine(vertex_id[6],vertex_id[2]);
00178 va.AddLine(vertex_id[6],vertex_id[5]);
00179 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
00180
00181 #ifdef MAP_ISO_DEBUG
00182 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 7 << std::endl;
00183 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 7 << std::endl;
00184 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 7 << std::endl;
00185 #endif
00186 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[6]);
00187
00188 #ifdef MAP_ISO_DEBUG
00189 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 7 << std::endl;
00190 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 7 << std::endl;
00191 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 7 << std::endl;
00192 #endif
00193 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[5]);
00194
00195 #ifdef MAP_ISO_DEBUG
00196 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 7 << std::endl;
00197 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 7 << std::endl;
00198 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 7 << std::endl;
00199 #endif
00200 }
00201
00202 template<>
00203 void AddLinesAndFaces<8>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00204 {
00205 va.AddLine(vertex_id[3],vertex_id[2]);
00206 va.AddLine(vertex_id[7],vertex_id[2]);
00207 va.AddLine(vertex_id[7],vertex_id[3]);
00208 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
00209
00210 #ifdef MAP_ISO_DEBUG
00211 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 8 << std::endl;
00212 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 8 << std::endl;
00213 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 8 << std::endl;
00214 #endif
00215 }
00216
00217 template<>
00218 void AddLinesAndFaces<9>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00219 {
00220 va.AddLine(vertex_id[2],vertex_id[0]);
00221 va.AddLine(vertex_id[4],vertex_id[0]);
00222 va.AddLine(vertex_id[7],vertex_id[2]);
00223 va.AddLine(vertex_id[7],vertex_id[4]);
00224 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[0]);
00225
00226 #ifdef MAP_ISO_DEBUG
00227 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 9 << std::endl;
00228 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 9 << std::endl;
00229 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 9 << std::endl;
00230 #endif
00231 va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[4]);
00232
00233 #ifdef MAP_ISO_DEBUG
00234 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 9 << std::endl;
00235 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 9 << std::endl;
00236 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 9 << std::endl;
00237 #endif
00238 }
00239
00240 template<>
00241 void AddLinesAndFaces<10>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00242 {
00243 va.AddLine(vertex_id[1],vertex_id[0]);
00244 va.AddLine(vertex_id[2],vertex_id[0]);
00245 va.AddLine(vertex_id[2],vertex_id[1]);
00246 va.AddLine(vertex_id[3],vertex_id[0]);
00247 va.AddLine(vertex_id[3],vertex_id[1]);
00248 va.AddLine(vertex_id[3],vertex_id[2]);
00249 va.AddLine(vertex_id[5],vertex_id[0]);
00250 va.AddLine(vertex_id[5],vertex_id[1]);
00251 va.AddLine(vertex_id[7],vertex_id[2]);
00252 va.AddLine(vertex_id[7],vertex_id[3]);
00253 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
00254
00255 #ifdef MAP_ISO_DEBUG
00256 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 10 << std::endl;
00257 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 10 << std::endl;
00258 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 10 << std::endl;
00259 #endif
00260 va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[5]);
00261
00262 #ifdef MAP_ISO_DEBUG
00263 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 10 << std::endl;
00264 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 10 << std::endl;
00265 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 10 << std::endl;
00266 #endif
00267 va.AddTriN(vertex_id[1],vertex_id[3],vertex_id[0]);
00268
00269 #ifdef MAP_ISO_DEBUG
00270 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 10 << std::endl;
00271 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 10 << std::endl;
00272 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 10 << std::endl;
00273 #endif
00274 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
00275
00276 #ifdef MAP_ISO_DEBUG
00277 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 10 << std::endl;
00278 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 10 << std::endl;
00279 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 10 << std::endl;
00280 #endif
00281 }
00282
00283 template<>
00284 void AddLinesAndFaces<11>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00285 {
00286 va.AddLine(vertex_id[2],vertex_id[1]);
00287 va.AddLine(vertex_id[5],vertex_id[1]);
00288 va.AddLine(vertex_id[5],vertex_id[4]);
00289 va.AddLine(vertex_id[7],vertex_id[2]);
00290 va.AddLine(vertex_id[7],vertex_id[4]);
00291 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[1]);
00292
00293 #ifdef MAP_ISO_DEBUG
00294 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 11 << std::endl;
00295 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 11 << std::endl;
00296 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 11 << std::endl;
00297 #endif
00298 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[5]);
00299
00300 #ifdef MAP_ISO_DEBUG
00301 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 11 << std::endl;
00302 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 11 << std::endl;
00303 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 11 << std::endl;
00304 #endif
00305 va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[4]);
00306
00307 #ifdef MAP_ISO_DEBUG
00308 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 11 << std::endl;
00309 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 11 << std::endl;
00310 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 11 << std::endl;
00311 #endif
00312 }
00313
00314 template<>
00315 void AddLinesAndFaces<12>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00316 {
00317 va.AddLine(vertex_id[3],vertex_id[1]);
00318 va.AddLine(vertex_id[6],vertex_id[1]);
00319 va.AddLine(vertex_id[7],vertex_id[3]);
00320 va.AddLine(vertex_id[7],vertex_id[6]);
00321 va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[6]);
00322
00323 #ifdef MAP_ISO_DEBUG
00324 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 12 << std::endl;
00325 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 12 << std::endl;
00326 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 12 << std::endl;
00327 #endif
00328 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[1]);
00329
00330 #ifdef MAP_ISO_DEBUG
00331 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 12 << std::endl;
00332 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 12 << std::endl;
00333 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 12 << std::endl;
00334 #endif
00335 }
00336
00337 template<>
00338 void AddLinesAndFaces<13>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00339 {
00340 va.AddLine(vertex_id[1],vertex_id[0]);
00341 va.AddLine(vertex_id[4],vertex_id[0]);
00342 va.AddLine(vertex_id[6],vertex_id[1]);
00343 va.AddLine(vertex_id[7],vertex_id[4]);
00344 va.AddLine(vertex_id[7],vertex_id[6]);
00345 va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[0]);
00346
00347 #ifdef MAP_ISO_DEBUG
00348 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 13 << std::endl;
00349 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 13 << std::endl;
00350 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 13 << std::endl;
00351 #endif
00352 va.AddTriN(vertex_id[1],vertex_id[7],vertex_id[4]);
00353
00354 #ifdef MAP_ISO_DEBUG
00355 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 13 << std::endl;
00356 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 13 << std::endl;
00357 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 13 << std::endl;
00358 #endif
00359 va.AddTriN(vertex_id[1],vertex_id[6],vertex_id[7]);
00360
00361 #ifdef MAP_ISO_DEBUG
00362 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 13 << std::endl;
00363 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 13 << std::endl;
00364 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 13 << std::endl;
00365 #endif
00366 }
00367
00368 template<>
00369 void AddLinesAndFaces<14>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00370 {
00371 va.AddLine(vertex_id[3],vertex_id[0]);
00372 va.AddLine(vertex_id[5],vertex_id[0]);
00373 va.AddLine(vertex_id[6],vertex_id[5]);
00374 va.AddLine(vertex_id[7],vertex_id[3]);
00375 va.AddLine(vertex_id[7],vertex_id[6]);
00376 va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[6]);
00377
00378 #ifdef MAP_ISO_DEBUG
00379 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 14 << std::endl;
00380 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 14 << std::endl;
00381 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 14 << std::endl;
00382 #endif
00383 va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[5]);
00384
00385 #ifdef MAP_ISO_DEBUG
00386 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 14 << std::endl;
00387 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 14 << std::endl;
00388 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 14 << std::endl;
00389 #endif
00390 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[0]);
00391
00392 #ifdef MAP_ISO_DEBUG
00393 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 14 << std::endl;
00394 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 14 << std::endl;
00395 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 14 << std::endl;
00396 #endif
00397 }
00398
00399 template<>
00400 void AddLinesAndFaces<15>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00401 {
00402 va.AddLine(vertex_id[5],vertex_id[4]);
00403 va.AddLine(vertex_id[6],vertex_id[5]);
00404 va.AddLine(vertex_id[7],vertex_id[4]);
00405 va.AddLine(vertex_id[7],vertex_id[6]);
00406 va.AddTriN(vertex_id[5],vertex_id[7],vertex_id[4]);
00407
00408 #ifdef MAP_ISO_DEBUG
00409 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 15 << std::endl;
00410 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 15 << std::endl;
00411 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 15 << std::endl;
00412 #endif
00413 va.AddTriN(vertex_id[5],vertex_id[6],vertex_id[7]);
00414
00415 #ifdef MAP_ISO_DEBUG
00416 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 15 << std::endl;
00417 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 15 << std::endl;
00418 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 15 << std::endl;
00419 #endif
00420 }
00421
00422 template<>
00423 void AddLinesAndFaces<16>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00424 {
00425 va.AddLine(vertex_id[8],vertex_id[4]);
00426 va.AddLine(vertex_id[11],vertex_id[4]);
00427 va.AddLine(vertex_id[11],vertex_id[8]);
00428 va.AddTriN(vertex_id[11],vertex_id[8],vertex_id[4]);
00429
00430 #ifdef MAP_ISO_DEBUG
00431 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 16 << std::endl;
00432 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 16 << std::endl;
00433 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 16 << std::endl;
00434 #endif
00435 }
00436
00437 template<>
00438 void AddLinesAndFaces<17>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00439 {
00440 va.AddLine(vertex_id[3],vertex_id[0]);
00441 va.AddLine(vertex_id[8],vertex_id[0]);
00442 va.AddLine(vertex_id[11],vertex_id[3]);
00443 va.AddLine(vertex_id[11],vertex_id[8]);
00444 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
00445
00446 #ifdef MAP_ISO_DEBUG
00447 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 17 << std::endl;
00448 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 17 << std::endl;
00449 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 17 << std::endl;
00450 #endif
00451 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
00452
00453 #ifdef MAP_ISO_DEBUG
00454 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 17 << std::endl;
00455 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 17 << std::endl;
00456 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 17 << std::endl;
00457 #endif
00458 }
00459
00460 template<>
00461 void AddLinesAndFaces<18>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00462 {
00463 va.AddLine(vertex_id[1],vertex_id[0]);
00464 va.AddLine(vertex_id[4],vertex_id[0]);
00465 va.AddLine(vertex_id[5],vertex_id[0]);
00466 va.AddLine(vertex_id[5],vertex_id[1]);
00467 va.AddLine(vertex_id[5],vertex_id[4]);
00468 va.AddLine(vertex_id[8],vertex_id[0]);
00469 va.AddLine(vertex_id[8],vertex_id[4]);
00470 va.AddLine(vertex_id[8],vertex_id[5]);
00471 va.AddLine(vertex_id[11],vertex_id[4]);
00472 va.AddLine(vertex_id[11],vertex_id[8]);
00473 va.AddTriN(vertex_id[5],vertex_id[11],vertex_id[8]);
00474
00475 #ifdef MAP_ISO_DEBUG
00476 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
00477 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 18 << std::endl;
00478 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 18 << std::endl;
00479 #endif
00480 va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[11]);
00481
00482 #ifdef MAP_ISO_DEBUG
00483 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
00484 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 18 << std::endl;
00485 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 18 << std::endl;
00486 #endif
00487 va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[4]);
00488
00489 #ifdef MAP_ISO_DEBUG
00490 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
00491 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 18 << std::endl;
00492 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 18 << std::endl;
00493 #endif
00494 va.AddTriN(vertex_id[5],vertex_id[0],vertex_id[8]);
00495
00496 #ifdef MAP_ISO_DEBUG
00497 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
00498 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 18 << std::endl;
00499 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 18 << std::endl;
00500 #endif
00501 va.AddTriN(vertex_id[5],vertex_id[5],vertex_id[0]);
00502
00503 #ifdef MAP_ISO_DEBUG
00504 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
00505 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
00506 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 18 << std::endl;
00507 #endif
00508 va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[5]);
00509
00510 #ifdef MAP_ISO_DEBUG
00511 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
00512 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 18 << std::endl;
00513 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
00514 #endif
00515 va.AddTriN(vertex_id[5],vertex_id[0],vertex_id[4]);
00516
00517 #ifdef MAP_ISO_DEBUG
00518 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
00519 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 18 << std::endl;
00520 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 18 << std::endl;
00521 #endif
00522 va.AddTriN(vertex_id[5],vertex_id[1],vertex_id[0]);
00523
00524 #ifdef MAP_ISO_DEBUG
00525 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
00526 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 18 << std::endl;
00527 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 18 << std::endl;
00528 #endif
00529 }
00530
00531 template<>
00532 void AddLinesAndFaces<19>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00533 {
00534 va.AddLine(vertex_id[3],vertex_id[1]);
00535 va.AddLine(vertex_id[5],vertex_id[1]);
00536 va.AddLine(vertex_id[8],vertex_id[5]);
00537 va.AddLine(vertex_id[11],vertex_id[3]);
00538 va.AddLine(vertex_id[11],vertex_id[8]);
00539 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
00540
00541 #ifdef MAP_ISO_DEBUG
00542 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 19 << std::endl;
00543 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 19 << std::endl;
00544 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 19 << std::endl;
00545 #endif
00546 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
00547
00548 #ifdef MAP_ISO_DEBUG
00549 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 19 << std::endl;
00550 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 19 << std::endl;
00551 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 19 << std::endl;
00552 #endif
00553 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
00554
00555 #ifdef MAP_ISO_DEBUG
00556 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 19 << std::endl;
00557 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 19 << std::endl;
00558 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 19 << std::endl;
00559 #endif
00560 }
00561
00562 template<>
00563 void AddLinesAndFaces<20>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00564 {
00565 va.AddLine(vertex_id[2],vertex_id[1]);
00566 va.AddLine(vertex_id[6],vertex_id[1]);
00567 va.AddLine(vertex_id[6],vertex_id[2]);
00568 va.AddLine(vertex_id[8],vertex_id[4]);
00569 va.AddLine(vertex_id[11],vertex_id[4]);
00570 va.AddLine(vertex_id[11],vertex_id[8]);
00571 va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[1]);
00572
00573 #ifdef MAP_ISO_DEBUG
00574 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 20 << std::endl;
00575 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 20 << std::endl;
00576 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 20 << std::endl;
00577 #endif
00578 va.AddTriN(vertex_id[11],vertex_id[8],vertex_id[4]);
00579
00580 #ifdef MAP_ISO_DEBUG
00581 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 20 << std::endl;
00582 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 20 << std::endl;
00583 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 20 << std::endl;
00584 #endif
00585 }
00586
00587 template<>
00588 void AddLinesAndFaces<21>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00589 {
00590 va.AddLine(vertex_id[1],vertex_id[0]);
00591 va.AddLine(vertex_id[2],vertex_id[0]);
00592 va.AddLine(vertex_id[2],vertex_id[1]);
00593 va.AddLine(vertex_id[3],vertex_id[0]);
00594 va.AddLine(vertex_id[3],vertex_id[1]);
00595 va.AddLine(vertex_id[3],vertex_id[2]);
00596 va.AddLine(vertex_id[6],vertex_id[1]);
00597 va.AddLine(vertex_id[6],vertex_id[2]);
00598 va.AddLine(vertex_id[8],vertex_id[0]);
00599 va.AddLine(vertex_id[11],vertex_id[3]);
00600 va.AddLine(vertex_id[11],vertex_id[8]);
00601 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
00602
00603 #ifdef MAP_ISO_DEBUG
00604 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 21 << std::endl;
00605 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 21 << std::endl;
00606 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 21 << std::endl;
00607 #endif
00608 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
00609
00610 #ifdef MAP_ISO_DEBUG
00611 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 21 << std::endl;
00612 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 21 << std::endl;
00613 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 21 << std::endl;
00614 #endif
00615 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
00616
00617 #ifdef MAP_ISO_DEBUG
00618 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 21 << std::endl;
00619 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 21 << std::endl;
00620 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 21 << std::endl;
00621 #endif
00622 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[1]);
00623
00624 #ifdef MAP_ISO_DEBUG
00625 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 21 << std::endl;
00626 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 21 << std::endl;
00627 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 21 << std::endl;
00628 #endif
00629 va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[6]);
00630
00631 #ifdef MAP_ISO_DEBUG
00632 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 21 << std::endl;
00633 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 21 << std::endl;
00634 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 21 << std::endl;
00635 #endif
00636 }
00637
00638 template<>
00639 void AddLinesAndFaces<22>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00640 {
00641 va.AddLine(vertex_id[2],vertex_id[0]);
00642 va.AddLine(vertex_id[4],vertex_id[0]);
00643 va.AddLine(vertex_id[5],vertex_id[0]);
00644 va.AddLine(vertex_id[5],vertex_id[4]);
00645 va.AddLine(vertex_id[6],vertex_id[2]);
00646 va.AddLine(vertex_id[6],vertex_id[5]);
00647 va.AddLine(vertex_id[8],vertex_id[0]);
00648 va.AddLine(vertex_id[8],vertex_id[4]);
00649 va.AddLine(vertex_id[8],vertex_id[5]);
00650 va.AddLine(vertex_id[11],vertex_id[4]);
00651 va.AddLine(vertex_id[11],vertex_id[8]);
00652 va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[5]);
00653
00654 #ifdef MAP_ISO_DEBUG
00655 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
00656 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 22 << std::endl;
00657 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 22 << std::endl;
00658 #endif
00659 va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[8]);
00660
00661 #ifdef MAP_ISO_DEBUG
00662 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
00663 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 22 << std::endl;
00664 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 22 << std::endl;
00665 #endif
00666 va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[11]);
00667
00668 #ifdef MAP_ISO_DEBUG
00669 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
00670 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 22 << std::endl;
00671 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 22 << std::endl;
00672 #endif
00673 va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[4]);
00674
00675 #ifdef MAP_ISO_DEBUG
00676 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
00677 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 22 << std::endl;
00678 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 22 << std::endl;
00679 #endif
00680 va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[8]);
00681
00682 #ifdef MAP_ISO_DEBUG
00683 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
00684 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 22 << std::endl;
00685 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 22 << std::endl;
00686 #endif
00687 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[0]);
00688
00689 #ifdef MAP_ISO_DEBUG
00690 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
00691 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 22 << std::endl;
00692 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 22 << std::endl;
00693 #endif
00694 va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[5]);
00695
00696 #ifdef MAP_ISO_DEBUG
00697 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
00698 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 22 << std::endl;
00699 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 22 << std::endl;
00700 #endif
00701 va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[4]);
00702
00703 #ifdef MAP_ISO_DEBUG
00704 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
00705 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 22 << std::endl;
00706 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 22 << std::endl;
00707 #endif
00708 va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[0]);
00709
00710 #ifdef MAP_ISO_DEBUG
00711 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
00712 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 22 << std::endl;
00713 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 22 << std::endl;
00714 #endif
00715 }
00716
00717 template<>
00718 void AddLinesAndFaces<23>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00719 {
00720 va.AddLine(vertex_id[3],vertex_id[2]);
00721 va.AddLine(vertex_id[6],vertex_id[2]);
00722 va.AddLine(vertex_id[6],vertex_id[5]);
00723 va.AddLine(vertex_id[8],vertex_id[5]);
00724 va.AddLine(vertex_id[11],vertex_id[3]);
00725 va.AddLine(vertex_id[11],vertex_id[8]);
00726 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
00727
00728 #ifdef MAP_ISO_DEBUG
00729 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 23 << std::endl;
00730 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 23 << std::endl;
00731 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 23 << std::endl;
00732 #endif
00733 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[6]);
00734
00735 #ifdef MAP_ISO_DEBUG
00736 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 23 << std::endl;
00737 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 23 << std::endl;
00738 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 23 << std::endl;
00739 #endif
00740 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
00741
00742 #ifdef MAP_ISO_DEBUG
00743 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 23 << std::endl;
00744 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 23 << std::endl;
00745 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 23 << std::endl;
00746 #endif
00747 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
00748
00749 #ifdef MAP_ISO_DEBUG
00750 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 23 << std::endl;
00751 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 23 << std::endl;
00752 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 23 << std::endl;
00753 #endif
00754 }
00755
00756 template<>
00757 void AddLinesAndFaces<24>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00758 {
00759 va.AddLine(vertex_id[3],vertex_id[2]);
00760 va.AddLine(vertex_id[4],vertex_id[3]);
00761 va.AddLine(vertex_id[7],vertex_id[2]);
00762 va.AddLine(vertex_id[7],vertex_id[3]);
00763 va.AddLine(vertex_id[7],vertex_id[4]);
00764 va.AddLine(vertex_id[8],vertex_id[4]);
00765 va.AddLine(vertex_id[11],vertex_id[3]);
00766 va.AddLine(vertex_id[11],vertex_id[4]);
00767 va.AddLine(vertex_id[11],vertex_id[7]);
00768 va.AddLine(vertex_id[11],vertex_id[8]);
00769 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
00770
00771 #ifdef MAP_ISO_DEBUG
00772 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 24 << std::endl;
00773 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 24 << std::endl;
00774 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 24 << std::endl;
00775 #endif
00776 va.AddTriN(vertex_id[4],vertex_id[11],vertex_id[3]);
00777
00778 #ifdef MAP_ISO_DEBUG
00779 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 24 << std::endl;
00780 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 24 << std::endl;
00781 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 24 << std::endl;
00782 #endif
00783 va.AddTriN(vertex_id[11],vertex_id[4],vertex_id[8]);
00784
00785 #ifdef MAP_ISO_DEBUG
00786 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 24 << std::endl;
00787 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 24 << std::endl;
00788 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 24 << std::endl;
00789 #endif
00790 va.AddTriN(vertex_id[11],vertex_id[7],vertex_id[4]);
00791
00792 #ifdef MAP_ISO_DEBUG
00793 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 24 << std::endl;
00794 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 24 << std::endl;
00795 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 24 << std::endl;
00796 #endif
00797 }
00798
00799 template<>
00800 void AddLinesAndFaces<25>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00801 {
00802 va.AddLine(vertex_id[2],vertex_id[0]);
00803 va.AddLine(vertex_id[7],vertex_id[2]);
00804 va.AddLine(vertex_id[8],vertex_id[0]);
00805 va.AddLine(vertex_id[11],vertex_id[7]);
00806 va.AddLine(vertex_id[11],vertex_id[8]);
00807 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[0]);
00808
00809 #ifdef MAP_ISO_DEBUG
00810 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 25 << std::endl;
00811 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 25 << std::endl;
00812 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 25 << std::endl;
00813 #endif
00814 va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[8]);
00815
00816 #ifdef MAP_ISO_DEBUG
00817 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 25 << std::endl;
00818 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 25 << std::endl;
00819 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 25 << std::endl;
00820 #endif
00821 va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[11]);
00822
00823 #ifdef MAP_ISO_DEBUG
00824 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 25 << std::endl;
00825 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 25 << std::endl;
00826 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 25 << std::endl;
00827 #endif
00828 }
00829
00830 template<>
00831 void AddLinesAndFaces<26>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00832 {
00833 va.AddLine(vertex_id[1],vertex_id[0]);
00834 va.AddLine(vertex_id[2],vertex_id[0]);
00835 va.AddLine(vertex_id[2],vertex_id[1]);
00836 va.AddLine(vertex_id[3],vertex_id[0]);
00837 va.AddLine(vertex_id[3],vertex_id[1]);
00838 va.AddLine(vertex_id[3],vertex_id[2]);
00839 va.AddLine(vertex_id[4],vertex_id[0]);
00840 va.AddLine(vertex_id[4],vertex_id[3]);
00841 va.AddLine(vertex_id[5],vertex_id[0]);
00842 va.AddLine(vertex_id[5],vertex_id[1]);
00843 va.AddLine(vertex_id[5],vertex_id[4]);
00844 va.AddLine(vertex_id[7],vertex_id[2]);
00845 va.AddLine(vertex_id[7],vertex_id[3]);
00846 va.AddLine(vertex_id[7],vertex_id[4]);
00847 va.AddLine(vertex_id[8],vertex_id[0]);
00848 va.AddLine(vertex_id[8],vertex_id[4]);
00849 va.AddLine(vertex_id[8],vertex_id[5]);
00850 va.AddLine(vertex_id[11],vertex_id[3]);
00851 va.AddLine(vertex_id[11],vertex_id[4]);
00852 va.AddLine(vertex_id[11],vertex_id[7]);
00853 va.AddLine(vertex_id[11],vertex_id[8]);
00854 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
00855
00856 #ifdef MAP_ISO_DEBUG
00857 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 26 << std::endl;
00858 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 26 << std::endl;
00859 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 26 << std::endl;
00860 #endif
00861 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
00862
00863 #ifdef MAP_ISO_DEBUG
00864 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 26 << std::endl;
00865 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 26 << std::endl;
00866 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 26 << std::endl;
00867 #endif
00868 va.AddTriN(vertex_id[11],vertex_id[5],vertex_id[8]);
00869
00870 #ifdef MAP_ISO_DEBUG
00871 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 26 << std::endl;
00872 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 26 << std::endl;
00873 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 26 << std::endl;
00874 #endif
00875 va.AddTriN(vertex_id[11],vertex_id[4],vertex_id[5]);
00876
00877 #ifdef MAP_ISO_DEBUG
00878 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 26 << std::endl;
00879 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 26 << std::endl;
00880 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 26 << std::endl;
00881 #endif
00882 va.AddTriN(vertex_id[11],vertex_id[8],vertex_id[4]);
00883
00884 #ifdef MAP_ISO_DEBUG
00885 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 26 << std::endl;
00886 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 26 << std::endl;
00887 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 26 << std::endl;
00888 #endif
00889 va.AddTriN(vertex_id[11],vertex_id[0],vertex_id[8]);
00890
00891 #ifdef MAP_ISO_DEBUG
00892 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 26 << std::endl;
00893 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 26 << std::endl;
00894 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 26 << std::endl;
00895 #endif
00896 va.AddTriN(vertex_id[11],vertex_id[5],vertex_id[0]);
00897
00898 #ifdef MAP_ISO_DEBUG
00899 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 26 << std::endl;
00900 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 26 << std::endl;
00901 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 26 << std::endl;
00902 #endif
00903 va.AddTriN(vertex_id[11],vertex_id[1],vertex_id[5]);
00904
00905 #ifdef MAP_ISO_DEBUG
00906 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 26 << std::endl;
00907 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 26 << std::endl;
00908 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 26 << std::endl;
00909 #endif
00910 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[1]);
00911
00912 #ifdef MAP_ISO_DEBUG
00913 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 26 << std::endl;
00914 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 26 << std::endl;
00915 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 26 << std::endl;
00916 #endif
00917 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
00918
00919 #ifdef MAP_ISO_DEBUG
00920 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 26 << std::endl;
00921 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 26 << std::endl;
00922 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 26 << std::endl;
00923 #endif
00924 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[4]);
00925
00926 #ifdef MAP_ISO_DEBUG
00927 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 26 << std::endl;
00928 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 26 << std::endl;
00929 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 26 << std::endl;
00930 #endif
00931 }
00932
00933 template<>
00934 void AddLinesAndFaces<27>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00935 {
00936 va.AddLine(vertex_id[2],vertex_id[1]);
00937 va.AddLine(vertex_id[5],vertex_id[1]);
00938 va.AddLine(vertex_id[7],vertex_id[2]);
00939 va.AddLine(vertex_id[8],vertex_id[5]);
00940 va.AddLine(vertex_id[11],vertex_id[7]);
00941 va.AddLine(vertex_id[11],vertex_id[8]);
00942 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[1]);
00943
00944 #ifdef MAP_ISO_DEBUG
00945 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 27 << std::endl;
00946 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 27 << std::endl;
00947 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 27 << std::endl;
00948 #endif
00949 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[5]);
00950
00951 #ifdef MAP_ISO_DEBUG
00952 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 27 << std::endl;
00953 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 27 << std::endl;
00954 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 27 << std::endl;
00955 #endif
00956 va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[8]);
00957
00958 #ifdef MAP_ISO_DEBUG
00959 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 27 << std::endl;
00960 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 27 << std::endl;
00961 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 27 << std::endl;
00962 #endif
00963 va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[11]);
00964
00965 #ifdef MAP_ISO_DEBUG
00966 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 27 << std::endl;
00967 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 27 << std::endl;
00968 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 27 << std::endl;
00969 #endif
00970 }
00971
00972 template<>
00973 void AddLinesAndFaces<28>(IndexedVertexArray& va,unsigned int vertex_id[12] )
00974 {
00975 va.AddLine(vertex_id[3],vertex_id[1]);
00976 va.AddLine(vertex_id[4],vertex_id[3]);
00977 va.AddLine(vertex_id[6],vertex_id[1]);
00978 va.AddLine(vertex_id[7],vertex_id[3]);
00979 va.AddLine(vertex_id[7],vertex_id[4]);
00980 va.AddLine(vertex_id[7],vertex_id[6]);
00981 va.AddLine(vertex_id[8],vertex_id[4]);
00982 va.AddLine(vertex_id[11],vertex_id[3]);
00983 va.AddLine(vertex_id[11],vertex_id[4]);
00984 va.AddLine(vertex_id[11],vertex_id[7]);
00985 va.AddLine(vertex_id[11],vertex_id[8]);
00986 va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[6]);
00987
00988 #ifdef MAP_ISO_DEBUG
00989 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 28 << std::endl;
00990 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 28 << std::endl;
00991 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 28 << std::endl;
00992 #endif
00993 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[1]);
00994
00995 #ifdef MAP_ISO_DEBUG
00996 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 28 << std::endl;
00997 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 28 << std::endl;
00998 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 28 << std::endl;
00999 #endif
01000 va.AddTriN(vertex_id[4],vertex_id[11],vertex_id[3]);
01001
01002 #ifdef MAP_ISO_DEBUG
01003 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 28 << std::endl;
01004 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 28 << std::endl;
01005 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 28 << std::endl;
01006 #endif
01007 va.AddTriN(vertex_id[11],vertex_id[4],vertex_id[8]);
01008
01009 #ifdef MAP_ISO_DEBUG
01010 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 28 << std::endl;
01011 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 28 << std::endl;
01012 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 28 << std::endl;
01013 #endif
01014 va.AddTriN(vertex_id[11],vertex_id[7],vertex_id[4]);
01015
01016 #ifdef MAP_ISO_DEBUG
01017 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 28 << std::endl;
01018 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 28 << std::endl;
01019 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 28 << std::endl;
01020 #endif
01021 }
01022
01023 template<>
01024 void AddLinesAndFaces<29>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01025 {
01026 va.AddLine(vertex_id[1],vertex_id[0]);
01027 va.AddLine(vertex_id[6],vertex_id[1]);
01028 va.AddLine(vertex_id[7],vertex_id[6]);
01029 va.AddLine(vertex_id[8],vertex_id[0]);
01030 va.AddLine(vertex_id[11],vertex_id[7]);
01031 va.AddLine(vertex_id[11],vertex_id[8]);
01032 va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[0]);
01033
01034 #ifdef MAP_ISO_DEBUG
01035 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 29 << std::endl;
01036 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 29 << std::endl;
01037 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 29 << std::endl;
01038 #endif
01039 va.AddTriN(vertex_id[1],vertex_id[11],vertex_id[8]);
01040
01041 #ifdef MAP_ISO_DEBUG
01042 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 29 << std::endl;
01043 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 29 << std::endl;
01044 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 29 << std::endl;
01045 #endif
01046 va.AddTriN(vertex_id[1],vertex_id[7],vertex_id[11]);
01047
01048 #ifdef MAP_ISO_DEBUG
01049 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 29 << std::endl;
01050 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 29 << std::endl;
01051 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 29 << std::endl;
01052 #endif
01053 va.AddTriN(vertex_id[1],vertex_id[6],vertex_id[7]);
01054
01055 #ifdef MAP_ISO_DEBUG
01056 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 29 << std::endl;
01057 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 29 << std::endl;
01058 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 29 << std::endl;
01059 #endif
01060 }
01061
01062 template<>
01063 void AddLinesAndFaces<30>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01064 {
01065 va.AddLine(vertex_id[3],vertex_id[0]);
01066 va.AddLine(vertex_id[4],vertex_id[0]);
01067 va.AddLine(vertex_id[4],vertex_id[3]);
01068 va.AddLine(vertex_id[5],vertex_id[0]);
01069 va.AddLine(vertex_id[5],vertex_id[4]);
01070 va.AddLine(vertex_id[6],vertex_id[5]);
01071 va.AddLine(vertex_id[7],vertex_id[3]);
01072 va.AddLine(vertex_id[7],vertex_id[4]);
01073 va.AddLine(vertex_id[7],vertex_id[6]);
01074 va.AddLine(vertex_id[8],vertex_id[0]);
01075 va.AddLine(vertex_id[8],vertex_id[4]);
01076 va.AddLine(vertex_id[8],vertex_id[5]);
01077 va.AddLine(vertex_id[11],vertex_id[3]);
01078 va.AddLine(vertex_id[11],vertex_id[4]);
01079 va.AddLine(vertex_id[11],vertex_id[7]);
01080 va.AddLine(vertex_id[11],vertex_id[8]);
01081 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
01082
01083 #ifdef MAP_ISO_DEBUG
01084 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 30 << std::endl;
01085 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 30 << std::endl;
01086 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 30 << std::endl;
01087 #endif
01088 va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[0]);
01089
01090 #ifdef MAP_ISO_DEBUG
01091 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 30 << std::endl;
01092 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 30 << std::endl;
01093 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 30 << std::endl;
01094 #endif
01095 va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[8]);
01096
01097 #ifdef MAP_ISO_DEBUG
01098 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 30 << std::endl;
01099 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 30 << std::endl;
01100 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 30 << std::endl;
01101 #endif
01102 va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[5]);
01103
01104 #ifdef MAP_ISO_DEBUG
01105 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 30 << std::endl;
01106 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 30 << std::endl;
01107 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 30 << std::endl;
01108 #endif
01109 va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[8]);
01110
01111 #ifdef MAP_ISO_DEBUG
01112 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 30 << std::endl;
01113 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 30 << std::endl;
01114 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 30 << std::endl;
01115 #endif
01116 va.AddTriN(vertex_id[6],vertex_id[3],vertex_id[11]);
01117
01118 #ifdef MAP_ISO_DEBUG
01119 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 30 << std::endl;
01120 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 30 << std::endl;
01121 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 30 << std::endl;
01122 #endif
01123 va.AddTriN(vertex_id[6],vertex_id[7],vertex_id[3]);
01124
01125 #ifdef MAP_ISO_DEBUG
01126 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 30 << std::endl;
01127 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 30 << std::endl;
01128 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 30 << std::endl;
01129 #endif
01130 va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[7]);
01131
01132 #ifdef MAP_ISO_DEBUG
01133 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 30 << std::endl;
01134 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 30 << std::endl;
01135 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 30 << std::endl;
01136 #endif
01137 va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[4]);
01138
01139 #ifdef MAP_ISO_DEBUG
01140 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 30 << std::endl;
01141 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 30 << std::endl;
01142 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 30 << std::endl;
01143 #endif
01144 va.AddTriN(vertex_id[6],vertex_id[7],vertex_id[11]);
01145
01146 #ifdef MAP_ISO_DEBUG
01147 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 30 << std::endl;
01148 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 30 << std::endl;
01149 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 30 << std::endl;
01150 #endif
01151 }
01152
01153 template<>
01154 void AddLinesAndFaces<31>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01155 {
01156 va.AddLine(vertex_id[6],vertex_id[5]);
01157 va.AddLine(vertex_id[7],vertex_id[6]);
01158 va.AddLine(vertex_id[8],vertex_id[5]);
01159 va.AddLine(vertex_id[11],vertex_id[7]);
01160 va.AddLine(vertex_id[11],vertex_id[8]);
01161 va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[5]);
01162
01163 #ifdef MAP_ISO_DEBUG
01164 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 31 << std::endl;
01165 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 31 << std::endl;
01166 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 31 << std::endl;
01167 #endif
01168 va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[8]);
01169
01170 #ifdef MAP_ISO_DEBUG
01171 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 31 << std::endl;
01172 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 31 << std::endl;
01173 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 31 << std::endl;
01174 #endif
01175 va.AddTriN(vertex_id[6],vertex_id[7],vertex_id[11]);
01176
01177 #ifdef MAP_ISO_DEBUG
01178 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 31 << std::endl;
01179 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 31 << std::endl;
01180 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 31 << std::endl;
01181 #endif
01182 }
01183
01184 template<>
01185 void AddLinesAndFaces<32>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01186 {
01187 va.AddLine(vertex_id[8],vertex_id[5]);
01188 va.AddLine(vertex_id[9],vertex_id[5]);
01189 va.AddLine(vertex_id[9],vertex_id[8]);
01190 va.AddTriN(vertex_id[8],vertex_id[9],vertex_id[5]);
01191
01192 #ifdef MAP_ISO_DEBUG
01193 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 32 << std::endl;
01194 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 32 << std::endl;
01195 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 32 << std::endl;
01196 #endif
01197 }
01198
01199 template<>
01200 void AddLinesAndFaces<33>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01201 {
01202 va.AddLine(vertex_id[3],vertex_id[0]);
01203 va.AddLine(vertex_id[4],vertex_id[0]);
01204 va.AddLine(vertex_id[4],vertex_id[3]);
01205 va.AddLine(vertex_id[5],vertex_id[0]);
01206 va.AddLine(vertex_id[5],vertex_id[4]);
01207 va.AddLine(vertex_id[8],vertex_id[0]);
01208 va.AddLine(vertex_id[8],vertex_id[4]);
01209 va.AddLine(vertex_id[8],vertex_id[5]);
01210 va.AddLine(vertex_id[9],vertex_id[5]);
01211 va.AddLine(vertex_id[9],vertex_id[8]);
01212 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
01213
01214 #ifdef MAP_ISO_DEBUG
01215 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 33 << std::endl;
01216 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 33 << std::endl;
01217 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 33 << std::endl;
01218 #endif
01219 va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[0]);
01220
01221 #ifdef MAP_ISO_DEBUG
01222 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 33 << std::endl;
01223 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 33 << std::endl;
01224 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 33 << std::endl;
01225 #endif
01226 va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[8]);
01227
01228 #ifdef MAP_ISO_DEBUG
01229 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 33 << std::endl;
01230 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 33 << std::endl;
01231 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 33 << std::endl;
01232 #endif
01233 va.AddTriN(vertex_id[8],vertex_id[9],vertex_id[5]);
01234
01235 #ifdef MAP_ISO_DEBUG
01236 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 33 << std::endl;
01237 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 33 << std::endl;
01238 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 33 << std::endl;
01239 #endif
01240 }
01241
01242 template<>
01243 void AddLinesAndFaces<34>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01244 {
01245 va.AddLine(vertex_id[1],vertex_id[0]);
01246 va.AddLine(vertex_id[8],vertex_id[0]);
01247 va.AddLine(vertex_id[9],vertex_id[1]);
01248 va.AddLine(vertex_id[9],vertex_id[8]);
01249 va.AddTriN(vertex_id[9],vertex_id[0],vertex_id[8]);
01250
01251 #ifdef MAP_ISO_DEBUG
01252 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 34 << std::endl;
01253 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 34 << std::endl;
01254 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 34 << std::endl;
01255 #endif
01256 va.AddTriN(vertex_id[9],vertex_id[1],vertex_id[0]);
01257
01258 #ifdef MAP_ISO_DEBUG
01259 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 34 << std::endl;
01260 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 34 << std::endl;
01261 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 34 << std::endl;
01262 #endif
01263 }
01264
01265 template<>
01266 void AddLinesAndFaces<35>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01267 {
01268 va.AddLine(vertex_id[3],vertex_id[1]);
01269 va.AddLine(vertex_id[4],vertex_id[3]);
01270 va.AddLine(vertex_id[8],vertex_id[4]);
01271 va.AddLine(vertex_id[9],vertex_id[1]);
01272 va.AddLine(vertex_id[9],vertex_id[8]);
01273 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
01274
01275 #ifdef MAP_ISO_DEBUG
01276 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 35 << std::endl;
01277 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 35 << std::endl;
01278 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 35 << std::endl;
01279 #endif
01280 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[9]);
01281
01282 #ifdef MAP_ISO_DEBUG
01283 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 35 << std::endl;
01284 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 35 << std::endl;
01285 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 35 << std::endl;
01286 #endif
01287 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
01288
01289 #ifdef MAP_ISO_DEBUG
01290 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 35 << std::endl;
01291 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 35 << std::endl;
01292 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 35 << std::endl;
01293 #endif
01294 }
01295
01296 template<>
01297 void AddLinesAndFaces<36>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01298 {
01299 va.AddLine(vertex_id[2],vertex_id[1]);
01300 va.AddLine(vertex_id[5],vertex_id[1]);
01301 va.AddLine(vertex_id[6],vertex_id[1]);
01302 va.AddLine(vertex_id[6],vertex_id[2]);
01303 va.AddLine(vertex_id[6],vertex_id[5]);
01304 va.AddLine(vertex_id[8],vertex_id[5]);
01305 va.AddLine(vertex_id[9],vertex_id[1]);
01306 va.AddLine(vertex_id[9],vertex_id[5]);
01307 va.AddLine(vertex_id[9],vertex_id[6]);
01308 va.AddLine(vertex_id[9],vertex_id[8]);
01309 va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[9]);
01310
01311 #ifdef MAP_ISO_DEBUG
01312 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
01313 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 36 << std::endl;
01314 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 36 << std::endl;
01315 #endif
01316 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[8]);
01317
01318 #ifdef MAP_ISO_DEBUG
01319 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
01320 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 36 << std::endl;
01321 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 36 << std::endl;
01322 #endif
01323 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[5]);
01324
01325 #ifdef MAP_ISO_DEBUG
01326 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
01327 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 36 << std::endl;
01328 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 36 << std::endl;
01329 #endif
01330 va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[9]);
01331
01332 #ifdef MAP_ISO_DEBUG
01333 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
01334 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 36 << std::endl;
01335 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 36 << std::endl;
01336 #endif
01337 va.AddTriN(vertex_id[6],vertex_id[6],vertex_id[1]);
01338
01339 #ifdef MAP_ISO_DEBUG
01340 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
01341 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
01342 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 36 << std::endl;
01343 #endif
01344 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[6]);
01345
01346 #ifdef MAP_ISO_DEBUG
01347 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
01348 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 36 << std::endl;
01349 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
01350 #endif
01351 va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[5]);
01352
01353 #ifdef MAP_ISO_DEBUG
01354 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
01355 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 36 << std::endl;
01356 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 36 << std::endl;
01357 #endif
01358 va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[1]);
01359
01360 #ifdef MAP_ISO_DEBUG
01361 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
01362 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 36 << std::endl;
01363 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 36 << std::endl;
01364 #endif
01365 }
01366
01367 template<>
01368 void AddLinesAndFaces<37>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01369 {
01370 va.AddLine(vertex_id[1],vertex_id[0]);
01371 va.AddLine(vertex_id[2],vertex_id[0]);
01372 va.AddLine(vertex_id[2],vertex_id[1]);
01373 va.AddLine(vertex_id[3],vertex_id[0]);
01374 va.AddLine(vertex_id[3],vertex_id[1]);
01375 va.AddLine(vertex_id[3],vertex_id[2]);
01376 va.AddLine(vertex_id[4],vertex_id[0]);
01377 va.AddLine(vertex_id[4],vertex_id[3]);
01378 va.AddLine(vertex_id[5],vertex_id[0]);
01379 va.AddLine(vertex_id[5],vertex_id[1]);
01380 va.AddLine(vertex_id[5],vertex_id[4]);
01381 va.AddLine(vertex_id[6],vertex_id[1]);
01382 va.AddLine(vertex_id[6],vertex_id[2]);
01383 va.AddLine(vertex_id[6],vertex_id[5]);
01384 va.AddLine(vertex_id[8],vertex_id[0]);
01385 va.AddLine(vertex_id[8],vertex_id[4]);
01386 va.AddLine(vertex_id[8],vertex_id[5]);
01387 va.AddLine(vertex_id[9],vertex_id[1]);
01388 va.AddLine(vertex_id[9],vertex_id[5]);
01389 va.AddLine(vertex_id[9],vertex_id[6]);
01390 va.AddLine(vertex_id[9],vertex_id[8]);
01391 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
01392
01393 #ifdef MAP_ISO_DEBUG
01394 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 37 << std::endl;
01395 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 37 << std::endl;
01396 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 37 << std::endl;
01397 #endif
01398 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
01399
01400 #ifdef MAP_ISO_DEBUG
01401 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
01402 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 37 << std::endl;
01403 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 37 << std::endl;
01404 #endif
01405 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
01406
01407 #ifdef MAP_ISO_DEBUG
01408 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
01409 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 37 << std::endl;
01410 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 37 << std::endl;
01411 #endif
01412 va.AddTriN(vertex_id[3],vertex_id[0],vertex_id[5]);
01413
01414 #ifdef MAP_ISO_DEBUG
01415 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
01416 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 37 << std::endl;
01417 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 37 << std::endl;
01418 #endif
01419 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
01420
01421 #ifdef MAP_ISO_DEBUG
01422 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
01423 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 37 << std::endl;
01424 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 37 << std::endl;
01425 #endif
01426 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
01427
01428 #ifdef MAP_ISO_DEBUG
01429 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
01430 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 37 << std::endl;
01431 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 37 << std::endl;
01432 #endif
01433 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[4]);
01434
01435 #ifdef MAP_ISO_DEBUG
01436 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
01437 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 37 << std::endl;
01438 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 37 << std::endl;
01439 #endif
01440 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[5]);
01441
01442 #ifdef MAP_ISO_DEBUG
01443 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
01444 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 37 << std::endl;
01445 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 37 << std::endl;
01446 #endif
01447 va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[6]);
01448
01449 #ifdef MAP_ISO_DEBUG
01450 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
01451 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 37 << std::endl;
01452 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 37 << std::endl;
01453 #endif
01454 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
01455
01456 #ifdef MAP_ISO_DEBUG
01457 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
01458 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 37 << std::endl;
01459 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 37 << std::endl;
01460 #endif
01461 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[9]);
01462
01463 #ifdef MAP_ISO_DEBUG
01464 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
01465 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 37 << std::endl;
01466 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 37 << std::endl;
01467 #endif
01468 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
01469
01470 #ifdef MAP_ISO_DEBUG
01471 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
01472 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 37 << std::endl;
01473 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 37 << std::endl;
01474 #endif
01475 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[8]);
01476
01477 #ifdef MAP_ISO_DEBUG
01478 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
01479 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 37 << std::endl;
01480 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 37 << std::endl;
01481 #endif
01482 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[9]);
01483
01484 #ifdef MAP_ISO_DEBUG
01485 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
01486 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 37 << std::endl;
01487 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 37 << std::endl;
01488 #endif
01489 va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[6]);
01490
01491 #ifdef MAP_ISO_DEBUG
01492 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
01493 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 37 << std::endl;
01494 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 37 << std::endl;
01495 #endif
01496 }
01497
01498 template<>
01499 void AddLinesAndFaces<38>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01500 {
01501 va.AddLine(vertex_id[2],vertex_id[0]);
01502 va.AddLine(vertex_id[6],vertex_id[2]);
01503 va.AddLine(vertex_id[8],vertex_id[0]);
01504 va.AddLine(vertex_id[9],vertex_id[6]);
01505 va.AddLine(vertex_id[9],vertex_id[8]);
01506 va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[9]);
01507
01508 #ifdef MAP_ISO_DEBUG
01509 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 38 << std::endl;
01510 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 38 << std::endl;
01511 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 38 << std::endl;
01512 #endif
01513 va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[8]);
01514
01515 #ifdef MAP_ISO_DEBUG
01516 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 38 << std::endl;
01517 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 38 << std::endl;
01518 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 38 << std::endl;
01519 #endif
01520 va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[0]);
01521
01522 #ifdef MAP_ISO_DEBUG
01523 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 38 << std::endl;
01524 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 38 << std::endl;
01525 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 38 << std::endl;
01526 #endif
01527 }
01528
01529 template<>
01530 void AddLinesAndFaces<39>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01531 {
01532 va.AddLine(vertex_id[3],vertex_id[2]);
01533 va.AddLine(vertex_id[4],vertex_id[3]);
01534 va.AddLine(vertex_id[6],vertex_id[2]);
01535 va.AddLine(vertex_id[8],vertex_id[4]);
01536 va.AddLine(vertex_id[9],vertex_id[6]);
01537 va.AddLine(vertex_id[9],vertex_id[8]);
01538 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
01539
01540 #ifdef MAP_ISO_DEBUG
01541 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 39 << std::endl;
01542 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 39 << std::endl;
01543 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 39 << std::endl;
01544 #endif
01545 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[6]);
01546
01547 #ifdef MAP_ISO_DEBUG
01548 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 39 << std::endl;
01549 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 39 << std::endl;
01550 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 39 << std::endl;
01551 #endif
01552 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[9]);
01553
01554 #ifdef MAP_ISO_DEBUG
01555 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 39 << std::endl;
01556 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 39 << std::endl;
01557 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 39 << std::endl;
01558 #endif
01559 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
01560
01561 #ifdef MAP_ISO_DEBUG
01562 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 39 << std::endl;
01563 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 39 << std::endl;
01564 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 39 << std::endl;
01565 #endif
01566 }
01567
01568 template<>
01569 void AddLinesAndFaces<40>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01570 {
01571 va.AddLine(vertex_id[3],vertex_id[2]);
01572 va.AddLine(vertex_id[7],vertex_id[2]);
01573 va.AddLine(vertex_id[7],vertex_id[3]);
01574 va.AddLine(vertex_id[8],vertex_id[5]);
01575 va.AddLine(vertex_id[9],vertex_id[5]);
01576 va.AddLine(vertex_id[9],vertex_id[8]);
01577 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
01578
01579 #ifdef MAP_ISO_DEBUG
01580 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 40 << std::endl;
01581 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 40 << std::endl;
01582 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 40 << std::endl;
01583 #endif
01584 va.AddTriN(vertex_id[8],vertex_id[9],vertex_id[5]);
01585
01586 #ifdef MAP_ISO_DEBUG
01587 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 40 << std::endl;
01588 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 40 << std::endl;
01589 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 40 << std::endl;
01590 #endif
01591 }
01592
01593 template<>
01594 void AddLinesAndFaces<41>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01595 {
01596 va.AddLine(vertex_id[2],vertex_id[0]);
01597 va.AddLine(vertex_id[4],vertex_id[0]);
01598 va.AddLine(vertex_id[5],vertex_id[0]);
01599 va.AddLine(vertex_id[5],vertex_id[4]);
01600 va.AddLine(vertex_id[7],vertex_id[2]);
01601 va.AddLine(vertex_id[7],vertex_id[4]);
01602 va.AddLine(vertex_id[8],vertex_id[0]);
01603 va.AddLine(vertex_id[8],vertex_id[4]);
01604 va.AddLine(vertex_id[8],vertex_id[5]);
01605 va.AddLine(vertex_id[9],vertex_id[5]);
01606 va.AddLine(vertex_id[9],vertex_id[8]);
01607 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[0]);
01608
01609 #ifdef MAP_ISO_DEBUG
01610 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 41 << std::endl;
01611 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 41 << std::endl;
01612 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 41 << std::endl;
01613 #endif
01614 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[4]);
01615
01616 #ifdef MAP_ISO_DEBUG
01617 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 41 << std::endl;
01618 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 41 << std::endl;
01619 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 41 << std::endl;
01620 #endif
01621 va.AddTriN(vertex_id[2],vertex_id[0],vertex_id[5]);
01622
01623 #ifdef MAP_ISO_DEBUG
01624 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 41 << std::endl;
01625 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 41 << std::endl;
01626 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 41 << std::endl;
01627 #endif
01628 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[0]);
01629
01630 #ifdef MAP_ISO_DEBUG
01631 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 41 << std::endl;
01632 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 41 << std::endl;
01633 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 41 << std::endl;
01634 #endif
01635 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[8]);
01636
01637 #ifdef MAP_ISO_DEBUG
01638 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 41 << std::endl;
01639 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 41 << std::endl;
01640 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 41 << std::endl;
01641 #endif
01642 va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[4]);
01643
01644 #ifdef MAP_ISO_DEBUG
01645 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 41 << std::endl;
01646 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 41 << std::endl;
01647 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 41 << std::endl;
01648 #endif
01649 va.AddTriN(vertex_id[8],vertex_id[9],vertex_id[5]);
01650
01651 #ifdef MAP_ISO_DEBUG
01652 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 41 << std::endl;
01653 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 41 << std::endl;
01654 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 41 << std::endl;
01655 #endif
01656 }
01657
01658 template<>
01659 void AddLinesAndFaces<42>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01660 {
01661 va.AddLine(vertex_id[1],vertex_id[0]);
01662 va.AddLine(vertex_id[2],vertex_id[0]);
01663 va.AddLine(vertex_id[2],vertex_id[1]);
01664 va.AddLine(vertex_id[3],vertex_id[0]);
01665 va.AddLine(vertex_id[3],vertex_id[1]);
01666 va.AddLine(vertex_id[3],vertex_id[2]);
01667 va.AddLine(vertex_id[7],vertex_id[2]);
01668 va.AddLine(vertex_id[7],vertex_id[3]);
01669 va.AddLine(vertex_id[8],vertex_id[0]);
01670 va.AddLine(vertex_id[9],vertex_id[1]);
01671 va.AddLine(vertex_id[9],vertex_id[8]);
01672 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
01673
01674 #ifdef MAP_ISO_DEBUG
01675 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 42 << std::endl;
01676 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 42 << std::endl;
01677 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 42 << std::endl;
01678 #endif
01679 va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[9]);
01680
01681 #ifdef MAP_ISO_DEBUG
01682 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 42 << std::endl;
01683 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 42 << std::endl;
01684 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 42 << std::endl;
01685 #endif
01686 va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[8]);
01687
01688 #ifdef MAP_ISO_DEBUG
01689 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 42 << std::endl;
01690 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 42 << std::endl;
01691 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 42 << std::endl;
01692 #endif
01693 va.AddTriN(vertex_id[1],vertex_id[3],vertex_id[0]);
01694
01695 #ifdef MAP_ISO_DEBUG
01696 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 42 << std::endl;
01697 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 42 << std::endl;
01698 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 42 << std::endl;
01699 #endif
01700 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
01701
01702 #ifdef MAP_ISO_DEBUG
01703 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 42 << std::endl;
01704 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 42 << std::endl;
01705 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 42 << std::endl;
01706 #endif
01707 }
01708
01709 template<>
01710 void AddLinesAndFaces<43>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01711 {
01712 va.AddLine(vertex_id[2],vertex_id[1]);
01713 va.AddLine(vertex_id[7],vertex_id[2]);
01714 va.AddLine(vertex_id[7],vertex_id[4]);
01715 va.AddLine(vertex_id[8],vertex_id[4]);
01716 va.AddLine(vertex_id[9],vertex_id[1]);
01717 va.AddLine(vertex_id[9],vertex_id[8]);
01718 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[1]);
01719
01720 #ifdef MAP_ISO_DEBUG
01721 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 43 << std::endl;
01722 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 43 << std::endl;
01723 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 43 << std::endl;
01724 #endif
01725 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[9]);
01726
01727 #ifdef MAP_ISO_DEBUG
01728 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 43 << std::endl;
01729 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 43 << std::endl;
01730 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 43 << std::endl;
01731 #endif
01732 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[8]);
01733
01734 #ifdef MAP_ISO_DEBUG
01735 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 43 << std::endl;
01736 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 43 << std::endl;
01737 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 43 << std::endl;
01738 #endif
01739 va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[4]);
01740
01741 #ifdef MAP_ISO_DEBUG
01742 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 43 << std::endl;
01743 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 43 << std::endl;
01744 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 43 << std::endl;
01745 #endif
01746 }
01747
01748 template<>
01749 void AddLinesAndFaces<44>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01750 {
01751 va.AddLine(vertex_id[3],vertex_id[1]);
01752 va.AddLine(vertex_id[5],vertex_id[1]);
01753 va.AddLine(vertex_id[6],vertex_id[1]);
01754 va.AddLine(vertex_id[6],vertex_id[5]);
01755 va.AddLine(vertex_id[7],vertex_id[3]);
01756 va.AddLine(vertex_id[7],vertex_id[6]);
01757 va.AddLine(vertex_id[8],vertex_id[5]);
01758 va.AddLine(vertex_id[9],vertex_id[1]);
01759 va.AddLine(vertex_id[9],vertex_id[5]);
01760 va.AddLine(vertex_id[9],vertex_id[6]);
01761 va.AddLine(vertex_id[9],vertex_id[8]);
01762 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[6]);
01763
01764 #ifdef MAP_ISO_DEBUG
01765 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
01766 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 44 << std::endl;
01767 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 44 << std::endl;
01768 #endif
01769 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[9]);
01770
01771 #ifdef MAP_ISO_DEBUG
01772 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
01773 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 44 << std::endl;
01774 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 44 << std::endl;
01775 #endif
01776 va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[8]);
01777
01778 #ifdef MAP_ISO_DEBUG
01779 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
01780 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 44 << std::endl;
01781 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 44 << std::endl;
01782 #endif
01783 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[5]);
01784
01785 #ifdef MAP_ISO_DEBUG
01786 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
01787 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 44 << std::endl;
01788 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 44 << std::endl;
01789 #endif
01790 va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[9]);
01791
01792 #ifdef MAP_ISO_DEBUG
01793 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
01794 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 44 << std::endl;
01795 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 44 << std::endl;
01796 #endif
01797 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[1]);
01798
01799 #ifdef MAP_ISO_DEBUG
01800 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
01801 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 44 << std::endl;
01802 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 44 << std::endl;
01803 #endif
01804 va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[6]);
01805
01806 #ifdef MAP_ISO_DEBUG
01807 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
01808 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 44 << std::endl;
01809 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 44 << std::endl;
01810 #endif
01811 va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[5]);
01812
01813 #ifdef MAP_ISO_DEBUG
01814 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
01815 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 44 << std::endl;
01816 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 44 << std::endl;
01817 #endif
01818 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[1]);
01819
01820 #ifdef MAP_ISO_DEBUG
01821 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
01822 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 44 << std::endl;
01823 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 44 << std::endl;
01824 #endif
01825 }
01826
01827 template<>
01828 void AddLinesAndFaces<45>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01829 {
01830 va.AddLine(vertex_id[1],vertex_id[0]);
01831 va.AddLine(vertex_id[4],vertex_id[0]);
01832 va.AddLine(vertex_id[5],vertex_id[0]);
01833 va.AddLine(vertex_id[5],vertex_id[1]);
01834 va.AddLine(vertex_id[5],vertex_id[4]);
01835 va.AddLine(vertex_id[6],vertex_id[1]);
01836 va.AddLine(vertex_id[6],vertex_id[5]);
01837 va.AddLine(vertex_id[7],vertex_id[4]);
01838 va.AddLine(vertex_id[7],vertex_id[6]);
01839 va.AddLine(vertex_id[8],vertex_id[0]);
01840 va.AddLine(vertex_id[8],vertex_id[4]);
01841 va.AddLine(vertex_id[8],vertex_id[5]);
01842 va.AddLine(vertex_id[9],vertex_id[1]);
01843 va.AddLine(vertex_id[9],vertex_id[5]);
01844 va.AddLine(vertex_id[9],vertex_id[6]);
01845 va.AddLine(vertex_id[9],vertex_id[8]);
01846 va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[0]);
01847
01848 #ifdef MAP_ISO_DEBUG
01849 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 45 << std::endl;
01850 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 45 << std::endl;
01851 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 45 << std::endl;
01852 #endif
01853 va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[4]);
01854
01855 #ifdef MAP_ISO_DEBUG
01856 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 45 << std::endl;
01857 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 45 << std::endl;
01858 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 45 << std::endl;
01859 #endif
01860 va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[5]);
01861
01862 #ifdef MAP_ISO_DEBUG
01863 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 45 << std::endl;
01864 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 45 << std::endl;
01865 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 45 << std::endl;
01866 #endif
01867 va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[0]);
01868
01869 #ifdef MAP_ISO_DEBUG
01870 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 45 << std::endl;
01871 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 45 << std::endl;
01872 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 45 << std::endl;
01873 #endif
01874 va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[8]);
01875
01876 #ifdef MAP_ISO_DEBUG
01877 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 45 << std::endl;
01878 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 45 << std::endl;
01879 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 45 << std::endl;
01880 #endif
01881 va.AddTriN(vertex_id[1],vertex_id[7],vertex_id[4]);
01882
01883 #ifdef MAP_ISO_DEBUG
01884 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 45 << std::endl;
01885 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 45 << std::endl;
01886 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 45 << std::endl;
01887 #endif
01888 va.AddTriN(vertex_id[1],vertex_id[6],vertex_id[7]);
01889
01890 #ifdef MAP_ISO_DEBUG
01891 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 45 << std::endl;
01892 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 45 << std::endl;
01893 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 45 << std::endl;
01894 #endif
01895 va.AddTriN(vertex_id[5],vertex_id[9],vertex_id[1]);
01896
01897 #ifdef MAP_ISO_DEBUG
01898 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 45 << std::endl;
01899 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 45 << std::endl;
01900 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 45 << std::endl;
01901 #endif
01902 va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[5]);
01903
01904 #ifdef MAP_ISO_DEBUG
01905 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 45 << std::endl;
01906 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 45 << std::endl;
01907 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 45 << std::endl;
01908 #endif
01909 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[8]);
01910
01911 #ifdef MAP_ISO_DEBUG
01912 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 45 << std::endl;
01913 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 45 << std::endl;
01914 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 45 << std::endl;
01915 #endif
01916 }
01917
01918 template<>
01919 void AddLinesAndFaces<46>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01920 {
01921 va.AddLine(vertex_id[3],vertex_id[0]);
01922 va.AddLine(vertex_id[7],vertex_id[3]);
01923 va.AddLine(vertex_id[7],vertex_id[6]);
01924 va.AddLine(vertex_id[8],vertex_id[0]);
01925 va.AddLine(vertex_id[9],vertex_id[6]);
01926 va.AddLine(vertex_id[9],vertex_id[8]);
01927 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[6]);
01928
01929 #ifdef MAP_ISO_DEBUG
01930 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 46 << std::endl;
01931 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 46 << std::endl;
01932 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 46 << std::endl;
01933 #endif
01934 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[9]);
01935
01936 #ifdef MAP_ISO_DEBUG
01937 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 46 << std::endl;
01938 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 46 << std::endl;
01939 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 46 << std::endl;
01940 #endif
01941 va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[8]);
01942
01943 #ifdef MAP_ISO_DEBUG
01944 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 46 << std::endl;
01945 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 46 << std::endl;
01946 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 46 << std::endl;
01947 #endif
01948 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[0]);
01949
01950 #ifdef MAP_ISO_DEBUG
01951 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 46 << std::endl;
01952 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 46 << std::endl;
01953 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 46 << std::endl;
01954 #endif
01955 }
01956
01957 template<>
01958 void AddLinesAndFaces<47>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01959 {
01960 va.AddLine(vertex_id[7],vertex_id[4]);
01961 va.AddLine(vertex_id[7],vertex_id[6]);
01962 va.AddLine(vertex_id[8],vertex_id[4]);
01963 va.AddLine(vertex_id[9],vertex_id[6]);
01964 va.AddLine(vertex_id[9],vertex_id[8]);
01965 va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[9]);
01966
01967 #ifdef MAP_ISO_DEBUG
01968 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 47 << std::endl;
01969 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 47 << std::endl;
01970 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 47 << std::endl;
01971 #endif
01972 va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[8]);
01973
01974 #ifdef MAP_ISO_DEBUG
01975 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 47 << std::endl;
01976 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 47 << std::endl;
01977 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 47 << std::endl;
01978 #endif
01979 va.AddTriN(vertex_id[6],vertex_id[7],vertex_id[4]);
01980
01981 #ifdef MAP_ISO_DEBUG
01982 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 47 << std::endl;
01983 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 47 << std::endl;
01984 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 47 << std::endl;
01985 #endif
01986 }
01987
01988 template<>
01989 void AddLinesAndFaces<48>(IndexedVertexArray& va,unsigned int vertex_id[12] )
01990 {
01991 va.AddLine(vertex_id[5],vertex_id[4]);
01992 va.AddLine(vertex_id[9],vertex_id[5]);
01993 va.AddLine(vertex_id[11],vertex_id[4]);
01994 va.AddLine(vertex_id[11],vertex_id[9]);
01995 va.AddTriN(vertex_id[9],vertex_id[4],vertex_id[11]);
01996
01997 #ifdef MAP_ISO_DEBUG
01998 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 48 << std::endl;
01999 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 48 << std::endl;
02000 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 48 << std::endl;
02001 #endif
02002 va.AddTriN(vertex_id[9],vertex_id[5],vertex_id[4]);
02003
02004 #ifdef MAP_ISO_DEBUG
02005 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 48 << std::endl;
02006 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 48 << std::endl;
02007 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 48 << std::endl;
02008 #endif
02009 }
02010
02011 template<>
02012 void AddLinesAndFaces<49>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02013 {
02014 va.AddLine(vertex_id[3],vertex_id[0]);
02015 va.AddLine(vertex_id[5],vertex_id[0]);
02016 va.AddLine(vertex_id[9],vertex_id[5]);
02017 va.AddLine(vertex_id[11],vertex_id[3]);
02018 va.AddLine(vertex_id[11],vertex_id[9]);
02019 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[0]);
02020
02021 #ifdef MAP_ISO_DEBUG
02022 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 49 << std::endl;
02023 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 49 << std::endl;
02024 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 49 << std::endl;
02025 #endif
02026 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[5]);
02027
02028 #ifdef MAP_ISO_DEBUG
02029 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 49 << std::endl;
02030 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 49 << std::endl;
02031 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 49 << std::endl;
02032 #endif
02033 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[9]);
02034
02035 #ifdef MAP_ISO_DEBUG
02036 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 49 << std::endl;
02037 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 49 << std::endl;
02038 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 49 << std::endl;
02039 #endif
02040 }
02041
02042 template<>
02043 void AddLinesAndFaces<50>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02044 {
02045 va.AddLine(vertex_id[1],vertex_id[0]);
02046 va.AddLine(vertex_id[4],vertex_id[0]);
02047 va.AddLine(vertex_id[9],vertex_id[1]);
02048 va.AddLine(vertex_id[11],vertex_id[4]);
02049 va.AddLine(vertex_id[11],vertex_id[9]);
02050 va.AddTriN(vertex_id[9],vertex_id[4],vertex_id[11]);
02051
02052 #ifdef MAP_ISO_DEBUG
02053 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 50 << std::endl;
02054 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 50 << std::endl;
02055 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 50 << std::endl;
02056 #endif
02057 va.AddTriN(vertex_id[9],vertex_id[0],vertex_id[4]);
02058
02059 #ifdef MAP_ISO_DEBUG
02060 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 50 << std::endl;
02061 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 50 << std::endl;
02062 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 50 << std::endl;
02063 #endif
02064 va.AddTriN(vertex_id[9],vertex_id[1],vertex_id[0]);
02065
02066 #ifdef MAP_ISO_DEBUG
02067 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 50 << std::endl;
02068 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 50 << std::endl;
02069 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 50 << std::endl;
02070 #endif
02071 }
02072
02073 template<>
02074 void AddLinesAndFaces<51>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02075 {
02076 va.AddLine(vertex_id[3],vertex_id[1]);
02077 va.AddLine(vertex_id[9],vertex_id[1]);
02078 va.AddLine(vertex_id[11],vertex_id[3]);
02079 va.AddLine(vertex_id[11],vertex_id[9]);
02080 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
02081
02082 #ifdef MAP_ISO_DEBUG
02083 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 51 << std::endl;
02084 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 51 << std::endl;
02085 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 51 << std::endl;
02086 #endif
02087 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[9]);
02088
02089 #ifdef MAP_ISO_DEBUG
02090 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 51 << std::endl;
02091 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 51 << std::endl;
02092 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 51 << std::endl;
02093 #endif
02094 }
02095
02096 template<>
02097 void AddLinesAndFaces<52>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02098 {
02099 va.AddLine(vertex_id[2],vertex_id[1]);
02100 va.AddLine(vertex_id[5],vertex_id[1]);
02101 va.AddLine(vertex_id[5],vertex_id[4]);
02102 va.AddLine(vertex_id[6],vertex_id[1]);
02103 va.AddLine(vertex_id[6],vertex_id[2]);
02104 va.AddLine(vertex_id[6],vertex_id[5]);
02105 va.AddLine(vertex_id[9],vertex_id[1]);
02106 va.AddLine(vertex_id[9],vertex_id[5]);
02107 va.AddLine(vertex_id[9],vertex_id[6]);
02108 va.AddLine(vertex_id[11],vertex_id[4]);
02109 va.AddLine(vertex_id[11],vertex_id[9]);
02110 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
02111
02112 #ifdef MAP_ISO_DEBUG
02113 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 52 << std::endl;
02114 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 52 << std::endl;
02115 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 52 << std::endl;
02116 #endif
02117 va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[9]);
02118
02119 #ifdef MAP_ISO_DEBUG
02120 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 52 << std::endl;
02121 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 52 << std::endl;
02122 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 52 << std::endl;
02123 #endif
02124 va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[11]);
02125
02126 #ifdef MAP_ISO_DEBUG
02127 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 52 << std::endl;
02128 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 52 << std::endl;
02129 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 52 << std::endl;
02130 #endif
02131 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[4]);
02132
02133 #ifdef MAP_ISO_DEBUG
02134 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 52 << std::endl;
02135 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 52 << std::endl;
02136 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 52 << std::endl;
02137 #endif
02138 va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[5]);
02139
02140 #ifdef MAP_ISO_DEBUG
02141 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 52 << std::endl;
02142 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 52 << std::endl;
02143 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 52 << std::endl;
02144 #endif
02145 va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[1]);
02146
02147 #ifdef MAP_ISO_DEBUG
02148 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 52 << std::endl;
02149 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 52 << std::endl;
02150 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 52 << std::endl;
02151 #endif
02152 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[5]);
02153
02154 #ifdef MAP_ISO_DEBUG
02155 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 52 << std::endl;
02156 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 52 << std::endl;
02157 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 52 << std::endl;
02158 #endif
02159 }
02160
02161 template<>
02162 void AddLinesAndFaces<53>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02163 {
02164 va.AddLine(vertex_id[1],vertex_id[0]);
02165 va.AddLine(vertex_id[2],vertex_id[0]);
02166 va.AddLine(vertex_id[2],vertex_id[1]);
02167 va.AddLine(vertex_id[3],vertex_id[0]);
02168 va.AddLine(vertex_id[3],vertex_id[1]);
02169 va.AddLine(vertex_id[3],vertex_id[2]);
02170 va.AddLine(vertex_id[5],vertex_id[0]);
02171 va.AddLine(vertex_id[5],vertex_id[1]);
02172 va.AddLine(vertex_id[6],vertex_id[1]);
02173 va.AddLine(vertex_id[6],vertex_id[2]);
02174 va.AddLine(vertex_id[6],vertex_id[5]);
02175 va.AddLine(vertex_id[9],vertex_id[1]);
02176 va.AddLine(vertex_id[9],vertex_id[5]);
02177 va.AddLine(vertex_id[9],vertex_id[6]);
02178 va.AddLine(vertex_id[11],vertex_id[3]);
02179 va.AddLine(vertex_id[11],vertex_id[9]);
02180 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
02181
02182 #ifdef MAP_ISO_DEBUG
02183 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 53 << std::endl;
02184 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 53 << std::endl;
02185 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 53 << std::endl;
02186 #endif
02187 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[0]);
02188
02189 #ifdef MAP_ISO_DEBUG
02190 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
02191 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 53 << std::endl;
02192 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 53 << std::endl;
02193 #endif
02194 va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[5]);
02195
02196 #ifdef MAP_ISO_DEBUG
02197 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
02198 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 53 << std::endl;
02199 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 53 << std::endl;
02200 #endif
02201 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
02202
02203 #ifdef MAP_ISO_DEBUG
02204 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
02205 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 53 << std::endl;
02206 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 53 << std::endl;
02207 #endif
02208 va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[6]);
02209
02210 #ifdef MAP_ISO_DEBUG
02211 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
02212 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 53 << std::endl;
02213 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 53 << std::endl;
02214 #endif
02215 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
02216
02217 #ifdef MAP_ISO_DEBUG
02218 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
02219 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 53 << std::endl;
02220 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 53 << std::endl;
02221 #endif
02222 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[9]);
02223
02224 #ifdef MAP_ISO_DEBUG
02225 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
02226 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 53 << std::endl;
02227 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 53 << std::endl;
02228 #endif
02229 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[5]);
02230
02231 #ifdef MAP_ISO_DEBUG
02232 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
02233 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 53 << std::endl;
02234 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 53 << std::endl;
02235 #endif
02236 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[6]);
02237
02238 #ifdef MAP_ISO_DEBUG
02239 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
02240 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 53 << std::endl;
02241 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 53 << std::endl;
02242 #endif
02243 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[9]);
02244
02245 #ifdef MAP_ISO_DEBUG
02246 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
02247 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 53 << std::endl;
02248 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 53 << std::endl;
02249 #endif
02250 }
02251
02252 template<>
02253 void AddLinesAndFaces<54>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02254 {
02255 va.AddLine(vertex_id[2],vertex_id[0]);
02256 va.AddLine(vertex_id[4],vertex_id[0]);
02257 va.AddLine(vertex_id[6],vertex_id[2]);
02258 va.AddLine(vertex_id[9],vertex_id[6]);
02259 va.AddLine(vertex_id[11],vertex_id[4]);
02260 va.AddLine(vertex_id[11],vertex_id[9]);
02261 va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[9]);
02262
02263 #ifdef MAP_ISO_DEBUG
02264 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 54 << std::endl;
02265 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 54 << std::endl;
02266 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 54 << std::endl;
02267 #endif
02268 va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[11]);
02269
02270 #ifdef MAP_ISO_DEBUG
02271 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 54 << std::endl;
02272 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 54 << std::endl;
02273 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 54 << std::endl;
02274 #endif
02275 va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[4]);
02276
02277 #ifdef MAP_ISO_DEBUG
02278 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 54 << std::endl;
02279 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 54 << std::endl;
02280 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 54 << std::endl;
02281 #endif
02282 va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[0]);
02283
02284 #ifdef MAP_ISO_DEBUG
02285 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 54 << std::endl;
02286 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 54 << std::endl;
02287 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 54 << std::endl;
02288 #endif
02289 }
02290
02291 template<>
02292 void AddLinesAndFaces<55>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02293 {
02294 va.AddLine(vertex_id[3],vertex_id[2]);
02295 va.AddLine(vertex_id[6],vertex_id[2]);
02296 va.AddLine(vertex_id[9],vertex_id[6]);
02297 va.AddLine(vertex_id[11],vertex_id[3]);
02298 va.AddLine(vertex_id[11],vertex_id[9]);
02299 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
02300
02301 #ifdef MAP_ISO_DEBUG
02302 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 55 << std::endl;
02303 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 55 << std::endl;
02304 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 55 << std::endl;
02305 #endif
02306 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[6]);
02307
02308 #ifdef MAP_ISO_DEBUG
02309 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 55 << std::endl;
02310 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 55 << std::endl;
02311 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 55 << std::endl;
02312 #endif
02313 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[9]);
02314
02315 #ifdef MAP_ISO_DEBUG
02316 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 55 << std::endl;
02317 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 55 << std::endl;
02318 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 55 << std::endl;
02319 #endif
02320 }
02321
02322 template<>
02323 void AddLinesAndFaces<56>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02324 {
02325 va.AddLine(vertex_id[3],vertex_id[2]);
02326 va.AddLine(vertex_id[4],vertex_id[3]);
02327 va.AddLine(vertex_id[5],vertex_id[4]);
02328 va.AddLine(vertex_id[7],vertex_id[2]);
02329 va.AddLine(vertex_id[7],vertex_id[3]);
02330 va.AddLine(vertex_id[7],vertex_id[4]);
02331 va.AddLine(vertex_id[9],vertex_id[5]);
02332 va.AddLine(vertex_id[11],vertex_id[3]);
02333 va.AddLine(vertex_id[11],vertex_id[4]);
02334 va.AddLine(vertex_id[11],vertex_id[7]);
02335 va.AddLine(vertex_id[11],vertex_id[9]);
02336 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
02337
02338 #ifdef MAP_ISO_DEBUG
02339 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 56 << std::endl;
02340 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 56 << std::endl;
02341 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 56 << std::endl;
02342 #endif
02343 va.AddTriN(vertex_id[4],vertex_id[11],vertex_id[3]);
02344
02345 #ifdef MAP_ISO_DEBUG
02346 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 56 << std::endl;
02347 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 56 << std::endl;
02348 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 56 << std::endl;
02349 #endif
02350 va.AddTriN(vertex_id[9],vertex_id[7],vertex_id[11]);
02351
02352 #ifdef MAP_ISO_DEBUG
02353 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 56 << std::endl;
02354 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 56 << std::endl;
02355 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 56 << std::endl;
02356 #endif
02357 va.AddTriN(vertex_id[9],vertex_id[4],vertex_id[7]);
02358
02359 #ifdef MAP_ISO_DEBUG
02360 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 56 << std::endl;
02361 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 56 << std::endl;
02362 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 56 << std::endl;
02363 #endif
02364 va.AddTriN(vertex_id[9],vertex_id[5],vertex_id[4]);
02365
02366 #ifdef MAP_ISO_DEBUG
02367 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 56 << std::endl;
02368 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 56 << std::endl;
02369 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 56 << std::endl;
02370 #endif
02371 }
02372
02373 template<>
02374 void AddLinesAndFaces<57>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02375 {
02376 va.AddLine(vertex_id[2],vertex_id[0]);
02377 va.AddLine(vertex_id[5],vertex_id[0]);
02378 va.AddLine(vertex_id[7],vertex_id[2]);
02379 va.AddLine(vertex_id[9],vertex_id[5]);
02380 va.AddLine(vertex_id[11],vertex_id[7]);
02381 va.AddLine(vertex_id[11],vertex_id[9]);
02382 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[0]);
02383
02384 #ifdef MAP_ISO_DEBUG
02385 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 57 << std::endl;
02386 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 57 << std::endl;
02387 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 57 << std::endl;
02388 #endif
02389 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[5]);
02390
02391 #ifdef MAP_ISO_DEBUG
02392 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 57 << std::endl;
02393 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 57 << std::endl;
02394 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 57 << std::endl;
02395 #endif
02396 va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[9]);
02397
02398 #ifdef MAP_ISO_DEBUG
02399 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 57 << std::endl;
02400 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 57 << std::endl;
02401 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 57 << std::endl;
02402 #endif
02403 va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[11]);
02404
02405 #ifdef MAP_ISO_DEBUG
02406 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 57 << std::endl;
02407 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 57 << std::endl;
02408 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 57 << std::endl;
02409 #endif
02410 }
02411
02412 template<>
02413 void AddLinesAndFaces<58>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02414 {
02415 va.AddLine(vertex_id[1],vertex_id[0]);
02416 va.AddLine(vertex_id[2],vertex_id[0]);
02417 va.AddLine(vertex_id[2],vertex_id[1]);
02418 va.AddLine(vertex_id[3],vertex_id[0]);
02419 va.AddLine(vertex_id[3],vertex_id[1]);
02420 va.AddLine(vertex_id[3],vertex_id[2]);
02421 va.AddLine(vertex_id[4],vertex_id[0]);
02422 va.AddLine(vertex_id[4],vertex_id[3]);
02423 va.AddLine(vertex_id[7],vertex_id[2]);
02424 va.AddLine(vertex_id[7],vertex_id[3]);
02425 va.AddLine(vertex_id[7],vertex_id[4]);
02426 va.AddLine(vertex_id[9],vertex_id[1]);
02427 va.AddLine(vertex_id[11],vertex_id[3]);
02428 va.AddLine(vertex_id[11],vertex_id[4]);
02429 va.AddLine(vertex_id[11],vertex_id[7]);
02430 va.AddLine(vertex_id[11],vertex_id[9]);
02431 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
02432
02433 #ifdef MAP_ISO_DEBUG
02434 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 58 << std::endl;
02435 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 58 << std::endl;
02436 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 58 << std::endl;
02437 #endif
02438 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
02439
02440 #ifdef MAP_ISO_DEBUG
02441 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 58 << std::endl;
02442 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 58 << std::endl;
02443 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 58 << std::endl;
02444 #endif
02445 va.AddTriN(vertex_id[11],vertex_id[1],vertex_id[9]);
02446
02447 #ifdef MAP_ISO_DEBUG
02448 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 58 << std::endl;
02449 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 58 << std::endl;
02450 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 58 << std::endl;
02451 #endif
02452 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[1]);
02453
02454 #ifdef MAP_ISO_DEBUG
02455 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 58 << std::endl;
02456 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 58 << std::endl;
02457 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 58 << std::endl;
02458 #endif
02459 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
02460
02461 #ifdef MAP_ISO_DEBUG
02462 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 58 << std::endl;
02463 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 58 << std::endl;
02464 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 58 << std::endl;
02465 #endif
02466 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[4]);
02467
02468 #ifdef MAP_ISO_DEBUG
02469 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 58 << std::endl;
02470 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 58 << std::endl;
02471 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 58 << std::endl;
02472 #endif
02473 }
02474
02475 template<>
02476 void AddLinesAndFaces<59>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02477 {
02478 va.AddLine(vertex_id[2],vertex_id[1]);
02479 va.AddLine(vertex_id[7],vertex_id[2]);
02480 va.AddLine(vertex_id[9],vertex_id[1]);
02481 va.AddLine(vertex_id[11],vertex_id[7]);
02482 va.AddLine(vertex_id[11],vertex_id[9]);
02483 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[1]);
02484
02485 #ifdef MAP_ISO_DEBUG
02486 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 59 << std::endl;
02487 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 59 << std::endl;
02488 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 59 << std::endl;
02489 #endif
02490 va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[9]);
02491
02492 #ifdef MAP_ISO_DEBUG
02493 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 59 << std::endl;
02494 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 59 << std::endl;
02495 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 59 << std::endl;
02496 #endif
02497 va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[11]);
02498
02499 #ifdef MAP_ISO_DEBUG
02500 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 59 << std::endl;
02501 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 59 << std::endl;
02502 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 59 << std::endl;
02503 #endif
02504 }
02505
02506 template<>
02507 void AddLinesAndFaces<60>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02508 {
02509 va.AddLine(vertex_id[3],vertex_id[1]);
02510 va.AddLine(vertex_id[4],vertex_id[3]);
02511 va.AddLine(vertex_id[5],vertex_id[1]);
02512 va.AddLine(vertex_id[5],vertex_id[4]);
02513 va.AddLine(vertex_id[6],vertex_id[1]);
02514 va.AddLine(vertex_id[6],vertex_id[5]);
02515 va.AddLine(vertex_id[7],vertex_id[3]);
02516 va.AddLine(vertex_id[7],vertex_id[4]);
02517 va.AddLine(vertex_id[7],vertex_id[6]);
02518 va.AddLine(vertex_id[9],vertex_id[1]);
02519 va.AddLine(vertex_id[9],vertex_id[5]);
02520 va.AddLine(vertex_id[9],vertex_id[6]);
02521 va.AddLine(vertex_id[11],vertex_id[3]);
02522 va.AddLine(vertex_id[11],vertex_id[4]);
02523 va.AddLine(vertex_id[11],vertex_id[7]);
02524 va.AddLine(vertex_id[11],vertex_id[9]);
02525 va.AddTriN(vertex_id[4],vertex_id[1],vertex_id[5]);
02526
02527 #ifdef MAP_ISO_DEBUG
02528 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 60 << std::endl;
02529 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 60 << std::endl;
02530 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 60 << std::endl;
02531 #endif
02532 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[1]);
02533
02534 #ifdef MAP_ISO_DEBUG
02535 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 60 << std::endl;
02536 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 60 << std::endl;
02537 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 60 << std::endl;
02538 #endif
02539 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
02540
02541 #ifdef MAP_ISO_DEBUG
02542 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 60 << std::endl;
02543 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 60 << std::endl;
02544 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 60 << std::endl;
02545 #endif
02546 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
02547
02548 #ifdef MAP_ISO_DEBUG
02549 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 60 << std::endl;
02550 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 60 << std::endl;
02551 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 60 << std::endl;
02552 #endif
02553 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
02554
02555 #ifdef MAP_ISO_DEBUG
02556 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 60 << std::endl;
02557 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 60 << std::endl;
02558 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 60 << std::endl;
02559 #endif
02560 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
02561
02562 #ifdef MAP_ISO_DEBUG
02563 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 60 << std::endl;
02564 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 60 << std::endl;
02565 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 60 << std::endl;
02566 #endif
02567 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[6]);
02568
02569 #ifdef MAP_ISO_DEBUG
02570 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 60 << std::endl;
02571 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 60 << std::endl;
02572 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 60 << std::endl;
02573 #endif
02574 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[9]);
02575
02576 #ifdef MAP_ISO_DEBUG
02577 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 60 << std::endl;
02578 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 60 << std::endl;
02579 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 60 << std::endl;
02580 #endif
02581 }
02582
02583 template<>
02584 void AddLinesAndFaces<61>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02585 {
02586 va.AddLine(vertex_id[1],vertex_id[0]);
02587 va.AddLine(vertex_id[5],vertex_id[0]);
02588 va.AddLine(vertex_id[5],vertex_id[1]);
02589 va.AddLine(vertex_id[6],vertex_id[1]);
02590 va.AddLine(vertex_id[6],vertex_id[5]);
02591 va.AddLine(vertex_id[7],vertex_id[6]);
02592 va.AddLine(vertex_id[9],vertex_id[1]);
02593 va.AddLine(vertex_id[9],vertex_id[5]);
02594 va.AddLine(vertex_id[9],vertex_id[6]);
02595 va.AddLine(vertex_id[11],vertex_id[7]);
02596 va.AddLine(vertex_id[11],vertex_id[9]);
02597 va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[0]);
02598
02599 #ifdef MAP_ISO_DEBUG
02600 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 61 << std::endl;
02601 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 61 << std::endl;
02602 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 61 << std::endl;
02603 #endif
02604 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
02605
02606 #ifdef MAP_ISO_DEBUG
02607 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 61 << std::endl;
02608 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 61 << std::endl;
02609 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 61 << std::endl;
02610 #endif
02611 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
02612
02613 #ifdef MAP_ISO_DEBUG
02614 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 61 << std::endl;
02615 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 61 << std::endl;
02616 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 61 << std::endl;
02617 #endif
02618 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[6]);
02619
02620 #ifdef MAP_ISO_DEBUG
02621 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 61 << std::endl;
02622 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 61 << std::endl;
02623 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 61 << std::endl;
02624 #endif
02625 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[9]);
02626
02627 #ifdef MAP_ISO_DEBUG
02628 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 61 << std::endl;
02629 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 61 << std::endl;
02630 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 61 << std::endl;
02631 #endif
02632 }
02633
02634 template<>
02635 void AddLinesAndFaces<62>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02636 {
02637 va.AddLine(vertex_id[3],vertex_id[0]);
02638 va.AddLine(vertex_id[4],vertex_id[0]);
02639 va.AddLine(vertex_id[4],vertex_id[3]);
02640 va.AddLine(vertex_id[7],vertex_id[3]);
02641 va.AddLine(vertex_id[7],vertex_id[4]);
02642 va.AddLine(vertex_id[7],vertex_id[6]);
02643 va.AddLine(vertex_id[9],vertex_id[6]);
02644 va.AddLine(vertex_id[11],vertex_id[3]);
02645 va.AddLine(vertex_id[11],vertex_id[4]);
02646 va.AddLine(vertex_id[11],vertex_id[7]);
02647 va.AddLine(vertex_id[11],vertex_id[9]);
02648 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
02649
02650 #ifdef MAP_ISO_DEBUG
02651 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 62 << std::endl;
02652 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 62 << std::endl;
02653 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 62 << std::endl;
02654 #endif
02655 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
02656
02657 #ifdef MAP_ISO_DEBUG
02658 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 62 << std::endl;
02659 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 62 << std::endl;
02660 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 62 << std::endl;
02661 #endif
02662 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
02663
02664 #ifdef MAP_ISO_DEBUG
02665 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 62 << std::endl;
02666 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 62 << std::endl;
02667 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 62 << std::endl;
02668 #endif
02669 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[6]);
02670
02671 #ifdef MAP_ISO_DEBUG
02672 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 62 << std::endl;
02673 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 62 << std::endl;
02674 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 62 << std::endl;
02675 #endif
02676 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[9]);
02677
02678 #ifdef MAP_ISO_DEBUG
02679 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 62 << std::endl;
02680 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 62 << std::endl;
02681 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 62 << std::endl;
02682 #endif
02683 }
02684
02685 template<>
02686 void AddLinesAndFaces<63>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02687 {
02688 va.AddLine(vertex_id[7],vertex_id[6]);
02689 va.AddLine(vertex_id[9],vertex_id[6]);
02690 va.AddLine(vertex_id[11],vertex_id[7]);
02691 va.AddLine(vertex_id[11],vertex_id[9]);
02692 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[6]);
02693
02694 #ifdef MAP_ISO_DEBUG
02695 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 63 << std::endl;
02696 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 63 << std::endl;
02697 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 63 << std::endl;
02698 #endif
02699 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[9]);
02700
02701 #ifdef MAP_ISO_DEBUG
02702 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 63 << std::endl;
02703 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 63 << std::endl;
02704 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 63 << std::endl;
02705 #endif
02706 }
02707
02708 template<>
02709 void AddLinesAndFaces<64>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02710 {
02711 va.AddLine(vertex_id[9],vertex_id[6]);
02712 va.AddLine(vertex_id[10],vertex_id[6]);
02713 va.AddLine(vertex_id[10],vertex_id[9]);
02714 va.AddTriN(vertex_id[9],vertex_id[10],vertex_id[6]);
02715
02716 #ifdef MAP_ISO_DEBUG
02717 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 64 << std::endl;
02718 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 64 << std::endl;
02719 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 64 << std::endl;
02720 #endif
02721 }
02722
02723 template<>
02724 void AddLinesAndFaces<65>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02725 {
02726 va.AddLine(vertex_id[3],vertex_id[0]);
02727 va.AddLine(vertex_id[4],vertex_id[0]);
02728 va.AddLine(vertex_id[4],vertex_id[3]);
02729 va.AddLine(vertex_id[9],vertex_id[6]);
02730 va.AddLine(vertex_id[10],vertex_id[6]);
02731 va.AddLine(vertex_id[10],vertex_id[9]);
02732 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
02733
02734 #ifdef MAP_ISO_DEBUG
02735 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 65 << std::endl;
02736 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 65 << std::endl;
02737 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 65 << std::endl;
02738 #endif
02739 va.AddTriN(vertex_id[9],vertex_id[10],vertex_id[6]);
02740
02741 #ifdef MAP_ISO_DEBUG
02742 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 65 << std::endl;
02743 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 65 << std::endl;
02744 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 65 << std::endl;
02745 #endif
02746 }
02747
02748 template<>
02749 void AddLinesAndFaces<66>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02750 {
02751 va.AddLine(vertex_id[1],vertex_id[0]);
02752 va.AddLine(vertex_id[5],vertex_id[0]);
02753 va.AddLine(vertex_id[5],vertex_id[1]);
02754 va.AddLine(vertex_id[6],vertex_id[1]);
02755 va.AddLine(vertex_id[6],vertex_id[5]);
02756 va.AddLine(vertex_id[9],vertex_id[1]);
02757 va.AddLine(vertex_id[9],vertex_id[5]);
02758 va.AddLine(vertex_id[9],vertex_id[6]);
02759 va.AddLine(vertex_id[10],vertex_id[6]);
02760 va.AddLine(vertex_id[10],vertex_id[9]);
02761 va.AddTriN(vertex_id[5],vertex_id[1],vertex_id[0]);
02762
02763 #ifdef MAP_ISO_DEBUG
02764 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 66 << std::endl;
02765 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 66 << std::endl;
02766 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 66 << std::endl;
02767 #endif
02768 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
02769
02770 #ifdef MAP_ISO_DEBUG
02771 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 66 << std::endl;
02772 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 66 << std::endl;
02773 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 66 << std::endl;
02774 #endif
02775 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
02776
02777 #ifdef MAP_ISO_DEBUG
02778 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 66 << std::endl;
02779 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 66 << std::endl;
02780 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 66 << std::endl;
02781 #endif
02782 va.AddTriN(vertex_id[9],vertex_id[10],vertex_id[6]);
02783
02784 #ifdef MAP_ISO_DEBUG
02785 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 66 << std::endl;
02786 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 66 << std::endl;
02787 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 66 << std::endl;
02788 #endif
02789 }
02790
02791 template<>
02792 void AddLinesAndFaces<67>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02793 {
02794 va.AddLine(vertex_id[3],vertex_id[1]);
02795 va.AddLine(vertex_id[4],vertex_id[3]);
02796 va.AddLine(vertex_id[5],vertex_id[1]);
02797 va.AddLine(vertex_id[5],vertex_id[4]);
02798 va.AddLine(vertex_id[6],vertex_id[1]);
02799 va.AddLine(vertex_id[6],vertex_id[5]);
02800 va.AddLine(vertex_id[9],vertex_id[1]);
02801 va.AddLine(vertex_id[9],vertex_id[5]);
02802 va.AddLine(vertex_id[9],vertex_id[6]);
02803 va.AddLine(vertex_id[10],vertex_id[6]);
02804 va.AddLine(vertex_id[10],vertex_id[9]);
02805 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
02806
02807 #ifdef MAP_ISO_DEBUG
02808 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 67 << std::endl;
02809 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 67 << std::endl;
02810 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 67 << std::endl;
02811 #endif
02812 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[5]);
02813
02814 #ifdef MAP_ISO_DEBUG
02815 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 67 << std::endl;
02816 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 67 << std::endl;
02817 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 67 << std::endl;
02818 #endif
02819 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
02820
02821 #ifdef MAP_ISO_DEBUG
02822 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 67 << std::endl;
02823 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 67 << std::endl;
02824 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 67 << std::endl;
02825 #endif
02826 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
02827
02828 #ifdef MAP_ISO_DEBUG
02829 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 67 << std::endl;
02830 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 67 << std::endl;
02831 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 67 << std::endl;
02832 #endif
02833 va.AddTriN(vertex_id[9],vertex_id[10],vertex_id[6]);
02834
02835 #ifdef MAP_ISO_DEBUG
02836 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 67 << std::endl;
02837 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 67 << std::endl;
02838 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 67 << std::endl;
02839 #endif
02840 }
02841
02842 template<>
02843 void AddLinesAndFaces<68>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02844 {
02845 va.AddLine(vertex_id[2],vertex_id[1]);
02846 va.AddLine(vertex_id[9],vertex_id[1]);
02847 va.AddLine(vertex_id[10],vertex_id[2]);
02848 va.AddLine(vertex_id[10],vertex_id[9]);
02849 va.AddTriN(vertex_id[10],vertex_id[1],vertex_id[9]);
02850
02851 #ifdef MAP_ISO_DEBUG
02852 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 68 << std::endl;
02853 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 68 << std::endl;
02854 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 68 << std::endl;
02855 #endif
02856 va.AddTriN(vertex_id[10],vertex_id[2],vertex_id[1]);
02857
02858 #ifdef MAP_ISO_DEBUG
02859 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 68 << std::endl;
02860 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 68 << std::endl;
02861 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 68 << std::endl;
02862 #endif
02863 }
02864
02865 template<>
02866 void AddLinesAndFaces<69>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02867 {
02868 va.AddLine(vertex_id[1],vertex_id[0]);
02869 va.AddLine(vertex_id[2],vertex_id[0]);
02870 va.AddLine(vertex_id[2],vertex_id[1]);
02871 va.AddLine(vertex_id[3],vertex_id[0]);
02872 va.AddLine(vertex_id[3],vertex_id[1]);
02873 va.AddLine(vertex_id[3],vertex_id[2]);
02874 va.AddLine(vertex_id[4],vertex_id[0]);
02875 va.AddLine(vertex_id[4],vertex_id[3]);
02876 va.AddLine(vertex_id[9],vertex_id[1]);
02877 va.AddLine(vertex_id[10],vertex_id[2]);
02878 va.AddLine(vertex_id[10],vertex_id[9]);
02879 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
02880
02881 #ifdef MAP_ISO_DEBUG
02882 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 69 << std::endl;
02883 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 69 << std::endl;
02884 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 69 << std::endl;
02885 #endif
02886 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
02887
02888 #ifdef MAP_ISO_DEBUG
02889 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 69 << std::endl;
02890 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 69 << std::endl;
02891 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 69 << std::endl;
02892 #endif
02893 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
02894
02895 #ifdef MAP_ISO_DEBUG
02896 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 69 << std::endl;
02897 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 69 << std::endl;
02898 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 69 << std::endl;
02899 #endif
02900 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[9]);
02901
02902 #ifdef MAP_ISO_DEBUG
02903 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 69 << std::endl;
02904 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 69 << std::endl;
02905 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 69 << std::endl;
02906 #endif
02907 va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[10]);
02908
02909 #ifdef MAP_ISO_DEBUG
02910 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 69 << std::endl;
02911 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 69 << std::endl;
02912 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 69 << std::endl;
02913 #endif
02914 }
02915
02916 template<>
02917 void AddLinesAndFaces<70>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02918 {
02919 va.AddLine(vertex_id[2],vertex_id[0]);
02920 va.AddLine(vertex_id[5],vertex_id[0]);
02921 va.AddLine(vertex_id[9],vertex_id[5]);
02922 va.AddLine(vertex_id[10],vertex_id[2]);
02923 va.AddLine(vertex_id[10],vertex_id[9]);
02924 va.AddTriN(vertex_id[10],vertex_id[5],vertex_id[9]);
02925
02926 #ifdef MAP_ISO_DEBUG
02927 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 70 << std::endl;
02928 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 70 << std::endl;
02929 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 70 << std::endl;
02930 #endif
02931 va.AddTriN(vertex_id[10],vertex_id[0],vertex_id[5]);
02932
02933 #ifdef MAP_ISO_DEBUG
02934 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 70 << std::endl;
02935 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 70 << std::endl;
02936 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 70 << std::endl;
02937 #endif
02938 va.AddTriN(vertex_id[10],vertex_id[2],vertex_id[0]);
02939
02940 #ifdef MAP_ISO_DEBUG
02941 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 70 << std::endl;
02942 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 70 << std::endl;
02943 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 70 << std::endl;
02944 #endif
02945 }
02946
02947 template<>
02948 void AddLinesAndFaces<71>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02949 {
02950 va.AddLine(vertex_id[3],vertex_id[2]);
02951 va.AddLine(vertex_id[4],vertex_id[3]);
02952 va.AddLine(vertex_id[5],vertex_id[4]);
02953 va.AddLine(vertex_id[9],vertex_id[5]);
02954 va.AddLine(vertex_id[10],vertex_id[2]);
02955 va.AddLine(vertex_id[10],vertex_id[9]);
02956 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
02957
02958 #ifdef MAP_ISO_DEBUG
02959 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 71 << std::endl;
02960 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 71 << std::endl;
02961 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 71 << std::endl;
02962 #endif
02963 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[10]);
02964
02965 #ifdef MAP_ISO_DEBUG
02966 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 71 << std::endl;
02967 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 71 << std::endl;
02968 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 71 << std::endl;
02969 #endif
02970 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[9]);
02971
02972 #ifdef MAP_ISO_DEBUG
02973 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 71 << std::endl;
02974 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 71 << std::endl;
02975 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 71 << std::endl;
02976 #endif
02977 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[5]);
02978
02979 #ifdef MAP_ISO_DEBUG
02980 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 71 << std::endl;
02981 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 71 << std::endl;
02982 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 71 << std::endl;
02983 #endif
02984 }
02985
02986 template<>
02987 void AddLinesAndFaces<72>(IndexedVertexArray& va,unsigned int vertex_id[12] )
02988 {
02989 va.AddLine(vertex_id[3],vertex_id[2]);
02990 va.AddLine(vertex_id[6],vertex_id[2]);
02991 va.AddLine(vertex_id[7],vertex_id[2]);
02992 va.AddLine(vertex_id[7],vertex_id[3]);
02993 va.AddLine(vertex_id[7],vertex_id[6]);
02994 va.AddLine(vertex_id[9],vertex_id[6]);
02995 va.AddLine(vertex_id[10],vertex_id[2]);
02996 va.AddLine(vertex_id[10],vertex_id[6]);
02997 va.AddLine(vertex_id[10],vertex_id[7]);
02998 va.AddLine(vertex_id[10],vertex_id[9]);
02999 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[10]);
03000
03001 #ifdef MAP_ISO_DEBUG
03002 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
03003 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 72 << std::endl;
03004 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 72 << std::endl;
03005 #endif
03006 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[9]);
03007
03008 #ifdef MAP_ISO_DEBUG
03009 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
03010 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 72 << std::endl;
03011 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 72 << std::endl;
03012 #endif
03013 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[6]);
03014
03015 #ifdef MAP_ISO_DEBUG
03016 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
03017 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 72 << std::endl;
03018 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 72 << std::endl;
03019 #endif
03020 va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[10]);
03021
03022 #ifdef MAP_ISO_DEBUG
03023 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
03024 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 72 << std::endl;
03025 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 72 << std::endl;
03026 #endif
03027 va.AddTriN(vertex_id[7],vertex_id[7],vertex_id[2]);
03028
03029 #ifdef MAP_ISO_DEBUG
03030 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
03031 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
03032 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 72 << std::endl;
03033 #endif
03034 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[7]);
03035
03036 #ifdef MAP_ISO_DEBUG
03037 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
03038 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 72 << std::endl;
03039 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
03040 #endif
03041 va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[6]);
03042
03043 #ifdef MAP_ISO_DEBUG
03044 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
03045 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 72 << std::endl;
03046 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 72 << std::endl;
03047 #endif
03048 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
03049
03050 #ifdef MAP_ISO_DEBUG
03051 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
03052 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 72 << std::endl;
03053 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 72 << std::endl;
03054 #endif
03055 }
03056
03057 template<>
03058 void AddLinesAndFaces<73>(IndexedVertexArray& va,unsigned int vertex_id[12] )
03059 {
03060 va.AddLine(vertex_id[2],vertex_id[0]);
03061 va.AddLine(vertex_id[4],vertex_id[0]);
03062 va.AddLine(vertex_id[6],vertex_id[2]);
03063 va.AddLine(vertex_id[7],vertex_id[2]);
03064 va.AddLine(vertex_id[7],vertex_id[4]);
03065 va.AddLine(vertex_id[7],vertex_id[6]);
03066 va.AddLine(vertex_id[9],vertex_id[6]);
03067 va.AddLine(vertex_id[10],vertex_id[2]);
03068 va.AddLine(vertex_id[10],vertex_id[6]);
03069 va.AddLine(vertex_id[10],vertex_id[7]);
03070 va.AddLine(vertex_id[10],vertex_id[9]);
03071 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[0]);
03072
03073 #ifdef MAP_ISO_DEBUG
03074 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 73 << std::endl;
03075 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 73 << std::endl;
03076 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 73 << std::endl;
03077 #endif
03078 va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[4]);
03079
03080 #ifdef MAP_ISO_DEBUG
03081 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 73 << std::endl;
03082 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 73 << std::endl;
03083 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 73 << std::endl;
03084 #endif
03085 va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[2]);
03086
03087 #ifdef MAP_ISO_DEBUG
03088 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 73 << std::endl;
03089 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 73 << std::endl;
03090 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 73 << std::endl;
03091 #endif
03092 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[6]);
03093
03094 #ifdef MAP_ISO_DEBUG
03095 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 73 << std::endl;
03096 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 73 << std::endl;
03097 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 73 << std::endl;
03098 #endif
03099 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[9]);
03100
03101 #ifdef MAP_ISO_DEBUG
03102 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 73 << std::endl;
03103 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 73 << std::endl;
03104 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 73 << std::endl;
03105 #endif
03106 }
03107
03108 template<>
03109 void AddLinesAndFaces<74>(IndexedVertexArray& va,unsigned int vertex_id[12] )
03110 {
03111 va.AddLine(vertex_id[1],vertex_id[0]);
03112 va.AddLine(vertex_id[2],vertex_id[0]);
03113 va.AddLine(vertex_id[2],vertex_id[1]);
03114 va.AddLine(vertex_id[3],vertex_id[0]);
03115 va.AddLine(vertex_id[3],vertex_id[1]);
03116 va.AddLine(vertex_id[3],vertex_id[2]);
03117 va.AddLine(vertex_id[5],vertex_id[0]);
03118 va.AddLine(vertex_id[5],vertex_id[1]);
03119 va.AddLine(vertex_id[6],vertex_id[1]);
03120 va.AddLine(vertex_id[6],vertex_id[2]);
03121 va.AddLine(vertex_id[6],vertex_id[5]);
03122 va.AddLine(vertex_id[7],vertex_id[2]);
03123 va.AddLine(vertex_id[7],vertex_id[3]);
03124 va.AddLine(vertex_id[7],vertex_id[6]);
03125 va.AddLine(vertex_id[9],vertex_id[1]);
03126 va.AddLine(vertex_id[9],vertex_id[5]);
03127 va.AddLine(vertex_id[9],vertex_id[6]);
03128 va.AddLine(vertex_id[10],vertex_id[2]);
03129 va.AddLine(vertex_id[10],vertex_id[6]);
03130 va.AddLine(vertex_id[10],vertex_id[7]);
03131 va.AddLine(vertex_id[10],vertex_id[9]);
03132 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
03133
03134 #ifdef MAP_ISO_DEBUG
03135 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 74 << std::endl;
03136 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 74 << std::endl;
03137 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 74 << std::endl;
03138 #endif
03139 va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[5]);
03140
03141 #ifdef MAP_ISO_DEBUG
03142 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 74 << std::endl;
03143 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 74 << std::endl;
03144 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 74 << std::endl;
03145 #endif
03146 va.AddTriN(vertex_id[1],vertex_id[3],vertex_id[0]);
03147
03148 #ifdef MAP_ISO_DEBUG
03149 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 74 << std::endl;
03150 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 74 << std::endl;
03151 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 74 << std::endl;
03152 #endif
03153 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[10]);
03154
03155 #ifdef MAP_ISO_DEBUG
03156 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
03157 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 74 << std::endl;
03158 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 74 << std::endl;
03159 #endif
03160 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[9]);
03161
03162 #ifdef MAP_ISO_DEBUG
03163 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
03164 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 74 << std::endl;
03165 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 74 << std::endl;
03166 #endif
03167 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[6]);
03168
03169 #ifdef MAP_ISO_DEBUG
03170 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
03171 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 74 << std::endl;
03172 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 74 << std::endl;
03173 #endif
03174 va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[10]);
03175
03176 #ifdef MAP_ISO_DEBUG
03177 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
03178 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 74 << std::endl;
03179 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 74 << std::endl;
03180 #endif
03181 va.AddTriN(vertex_id[7],vertex_id[7],vertex_id[2]);
03182
03183 #ifdef MAP_ISO_DEBUG
03184 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
03185 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
03186 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 74 << std::endl;
03187 #endif
03188 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[7]);
03189
03190 #ifdef MAP_ISO_DEBUG
03191 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
03192 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 74 << std::endl;
03193 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
03194 #endif
03195 va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[6]);
03196
03197 #ifdef MAP_ISO_DEBUG
03198 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
03199 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 74 << std::endl;
03200 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 74 << std::endl;
03201 #endif
03202 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[5]);
03203
03204 #ifdef MAP_ISO_DEBUG
03205 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
03206 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 74 << std::endl;
03207 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 74 << std::endl;
03208 #endif
03209 va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[9]);
03210
03211 #ifdef MAP_ISO_DEBUG
03212 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
03213 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 74 << std::endl;
03214 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 74 << std::endl;
03215 #endif
03216 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[1]);
03217
03218 #ifdef MAP_ISO_DEBUG
03219 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
03220 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 74 << std::endl;
03221 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 74 << std::endl;
03222 #endif
03223 va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[6]);
03224
03225 #ifdef MAP_ISO_DEBUG
03226 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
03227 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 74 << std::endl;
03228 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 74 << std::endl;
03229 #endif
03230 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
03231
03232 #ifdef MAP_ISO_DEBUG
03233 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
03234 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 74 << std::endl;
03235 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 74 << std::endl;
03236 #endif
03237 }
03238
03239 template<>
03240 void AddLinesAndFaces<75>(IndexedVertexArray& va,unsigned int vertex_id[12] )
03241 {
03242 va.AddLine(vertex_id[2],vertex_id[1]);
03243 va.AddLine(vertex_id[5],vertex_id[1]);
03244 va.AddLine(vertex_id[5],vertex_id[4]);
03245 va.AddLine(vertex_id[6],vertex_id[1]);
03246 va.AddLine(vertex_id[6],vertex_id[2]);
03247 va.AddLine(vertex_id[6],vertex_id[5]);
03248 va.AddLine(vertex_id[7],vertex_id[2]);
03249 va.AddLine(vertex_id[7],vertex_id[4]);
03250 va.AddLine(vertex_id[7],vertex_id[6]);
03251 va.AddLine(vertex_id[9],vertex_id[1]);
03252 va.AddLine(vertex_id[9],vertex_id[5]);
03253 va.AddLine(vertex_id[9],vertex_id[6]);
03254 va.AddLine(vertex_id[10],vertex_id[2]);
03255 va.AddLine(vertex_id[10],vertex_id[6]);
03256 va.AddLine(vertex_id[10],vertex_id[7]);
03257 va.AddLine(vertex_id[10],vertex_id[9]);
03258 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[1]);
03259
03260 #ifdef MAP_ISO_DEBUG
03261 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 75 << std::endl;
03262 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 75 << std::endl;
03263 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 75 << std::endl;
03264 #endif
03265 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[5]);
03266
03267 #ifdef MAP_ISO_DEBUG
03268 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 75 << std::endl;
03269 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 75 << std::endl;
03270 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 75 << std::endl;
03271 #endif
03272 va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[4]);
03273
03274 #ifdef MAP_ISO_DEBUG
03275 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 75 << std::endl;
03276 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 75 << std::endl;
03277 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 75 << std::endl;
03278 #endif
03279 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
03280
03281 #ifdef MAP_ISO_DEBUG
03282 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 75 << std::endl;
03283 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 75 << std::endl;
03284 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 75 << std::endl;
03285 #endif
03286 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
03287
03288 #ifdef MAP_ISO_DEBUG
03289 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 75 << std::endl;
03290 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 75 << std::endl;
03291 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 75 << std::endl;
03292 #endif
03293 va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[2]);
03294
03295 #ifdef MAP_ISO_DEBUG
03296 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 75 << std::endl;
03297 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 75 << std::endl;
03298 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 75 << std::endl;
03299 #endif
03300 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[6]);
03301
03302 #ifdef MAP_ISO_DEBUG
03303 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 75 << std::endl;
03304 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 75 << std::endl;
03305 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 75 << std::endl;
03306 #endif
03307 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[9]);
03308
03309 #ifdef MAP_ISO_DEBUG
03310 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 75 << std::endl;
03311 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 75 << std::endl;
03312 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 75 << std::endl;
03313 #endif
03314 }
03315
03316 template<>
03317 void AddLinesAndFaces<76>(IndexedVertexArray& va,unsigned int vertex_id[12] )
03318 {
03319 va.AddLine(vertex_id[3],vertex_id[1]);
03320 va.AddLine(vertex_id[7],vertex_id[3]);
03321 va.AddLine(vertex_id[9],vertex_id[1]);
03322 va.AddLine(vertex_id[10],vertex_id[7]);
03323 va.AddLine(vertex_id[10],vertex_id[9]);
03324 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[10]);
03325
03326 #ifdef MAP_ISO_DEBUG
03327 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 76 << std::endl;
03328 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 76 << std::endl;
03329 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 76 << std::endl;
03330 #endif
03331 va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[9]);
03332
03333 #ifdef MAP_ISO_DEBUG
03334 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 76 << std::endl;
03335 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 76 << std::endl;
03336 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 76 << std::endl;
03337 #endif
03338 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[1]);
03339
03340 #ifdef MAP_ISO_DEBUG
03341 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 76 << std::endl;
03342 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 76 << std::endl;
03343 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 76 << std::endl;
03344 #endif
03345 }
03346
03347 template<>
03348 void AddLinesAndFaces<77>(IndexedVertexArray& va,unsigned int vertex_id[12] )
03349 {
03350 va.AddLine(vertex_id[1],vertex_id[0]);
03351 va.AddLine(vertex_id[4],vertex_id[0]);
03352 va.AddLine(vertex_id[7],vertex_id[4]);
03353 va.AddLine(vertex_id[9],vertex_id[1]);
03354 va.AddLine(vertex_id[10],vertex_id[7]);
03355 va.AddLine(vertex_id[10],vertex_id[9]);
03356 va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[0]);
03357
03358 #ifdef MAP_ISO_DEBUG
03359 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 77 << std::endl;
03360 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 77 << std::endl;
03361 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 77 << std::endl;
03362 #endif
03363 va.AddTriN(vertex_id[1],vertex_id[7],vertex_id[4]);
03364
03365 #ifdef MAP_ISO_DEBUG
03366 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 77 << std::endl;
03367 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 77 << std::endl;
03368 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 77 << std::endl;
03369 #endif
03370 va.AddTriN(vertex_id[1],vertex_id[10],vertex_id[7]);
03371
03372 #ifdef MAP_ISO_DEBUG
03373 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 77 << std::endl;
03374 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 77 << std::endl;
03375 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 77 << std::endl;
03376 #endif
03377 va.AddTriN(vertex_id[1],vertex_id[9],vertex_id[10]);
03378
03379 #ifdef MAP_ISO_DEBUG
03380 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 77 << std::endl;
03381 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 77 << std::endl;
03382 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 77 << std::endl;
03383 #endif
03384 }
03385
03386 template<>
03387 void AddLinesAndFaces<78>(IndexedVertexArray& va,unsigned int vertex_id[12] )
03388 {
03389 va.AddLine(vertex_id[3],vertex_id[0]);
03390 va.AddLine(vertex_id[5],vertex_id[0]);
03391 va.AddLine(vertex_id[7],vertex_id[3]);
03392 va.AddLine(vertex_id[9],vertex_id[5]);
03393 va.AddLine(vertex_id[10],vertex_id[7]);
03394 va.AddLine(vertex_id[10],vertex_id[9]);
03395 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[10]);
03396
03397 #ifdef MAP_ISO_DEBUG
03398 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 78 << std::endl;
03399 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 78 << std::endl;
03400 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 78 << std::endl;
03401 #endif
03402 va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[9]);
03403
03404 #ifdef MAP_ISO_DEBUG
03405 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 78 << std::endl;
03406 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 78 << std::endl;
03407 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 78 << std::endl;
03408 #endif
03409 va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[5]);
03410
03411 #ifdef MAP_ISO_DEBUG
03412 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 78 << std::endl;
03413 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 78 << std::endl;
03414 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 78 << std::endl;
03415 #endif
03416 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[0]);
03417
03418 #ifdef MAP_ISO_DEBUG
03419 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 78 << std::endl;
03420 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 78 << std::endl;
03421 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 78 << std::endl;
03422 #endif
03423 }
03424
03425 template<>
03426 void AddLinesAndFaces<79>(IndexedVertexArray& va,unsigned int vertex_id[12] )
03427 {
03428 va.AddLine(vertex_id[5],vertex_id[4]);
03429 va.AddLine(vertex_id[7],vertex_id[4]);
03430 va.AddLine(vertex_id[9],vertex_id[5]);
03431 va.AddLine(vertex_id[10],vertex_id[7]);
03432 va.AddLine(vertex_id[10],vertex_id[9]);
03433 va.AddTriN(vertex_id[5],vertex_id[7],vertex_id[4]);
03434
03435 #ifdef MAP_ISO_DEBUG
03436 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 79 << std::endl;
03437 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 79 << std::endl;
03438 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 79 << std::endl;
03439 #endif
03440 va.AddTriN(vertex_id[5],vertex_id[10],vertex_id[7]);
03441
03442 #ifdef MAP_ISO_DEBUG
03443 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 79 << std::endl;
03444 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 79 << std::endl;
03445 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 79 << std::endl;
03446 #endif
03447 va.AddTriN(vertex_id[5],vertex_id[9],vertex_id[10]);
03448
03449 #ifdef MAP_ISO_DEBUG
03450 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 79 << std::endl;
03451 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 79 << std::endl;
03452 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 79 << std::endl;
03453 #endif
03454 }
03455
03456 template<>
03457 void AddLinesAndFaces<80>(IndexedVertexArray& va,unsigned int vertex_id[12] )
03458 {
03459 va.AddLine(vertex_id[8],vertex_id[4]);
03460 va.AddLine(vertex_id[9],vertex_id[6]);
03461 va.AddLine(vertex_id[9],vertex_id[8]);
03462 va.AddLine(vertex_id[10],vertex_id[6]);
03463 va.AddLine(vertex_id[10],vertex_id[8]);
03464 va.AddLine(vertex_id[10],vertex_id[9]);
03465 va.AddLine(vertex_id[11],vertex_id[4]);
03466 va.AddLine(vertex_id[11],vertex_id[8]);
03467 va.AddLine(vertex_id[11],vertex_id[9]);
03468 va.AddLine(vertex_id[11],vertex_id[10]);
03469 va.AddTriN(vertex_id[11],vertex_id[8],vertex_id[4]);
03470
03471 #ifdef MAP_ISO_DEBUG
03472 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 80 << std::endl;
03473 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 80 << std::endl;
03474 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 80 << std::endl;
03475 #endif
03476 va.AddTriN(vertex_id[9],vertex_id[10],vertex_id[6]);
03477
03478 #ifdef MAP_ISO_DEBUG
03479 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 80 << std::endl;
03480 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 80 << std::endl;
03481 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 80 << std::endl;
03482 #endif
03483 va.AddTriN(vertex_id[9],vertex_id[8],vertex_id[10]);
03484
03485 #ifdef MAP_ISO_DEBUG
03486 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 80 << std::endl;
03487 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 80 << std::endl;
03488 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 80 << std::endl;
03489 #endif
03490 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
03491
03492 #ifdef MAP_ISO_DEBUG
03493 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 80 << std::endl;
03494 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 80 << std::endl;
03495 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 80 << std::endl;
03496 #endif
03497 }
03498
03499 template<>
03500 void AddLinesAndFaces<81>(IndexedVertexArray& va,unsigned int vertex_id[12] )
03501 {
03502 va.AddLine(vertex_id[3],vertex_id[0]);
03503 va.AddLine(vertex_id[8],vertex_id[0]);
03504 va.AddLine(vertex_id[9],vertex_id[6]);
03505 va.AddLine(vertex_id[9],vertex_id[8]);
03506 va.AddLine(vertex_id[10],vertex_id[6]);
03507 va.AddLine(vertex_id[10],vertex_id[8]);
03508 va.AddLine(vertex_id[10],vertex_id[9]);
03509 va.AddLine(vertex_id[11],vertex_id[3]);
03510 va.AddLine(vertex_id[11],vertex_id[8]);
03511 va.AddLine(vertex_id[11],vertex_id[9]);
03512 va.AddLine(vertex_id[11],vertex_id[10]);
03513 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
03514
03515 #ifdef MAP_ISO_DEBUG
03516 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 81 << std::endl;
03517 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 81 << std::endl;
03518 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 81 << std::endl;
03519 #endif
03520 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[8]);
03521
03522 #ifdef MAP_ISO_DEBUG
03523 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 81 << std::endl;
03524 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 81 << std::endl;
03525 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 81 << std::endl;
03526 #endif
03527 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[9]);
03528
03529 #ifdef MAP_ISO_DEBUG
03530 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 81 << std::endl;
03531 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 81 << std::endl;
03532 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 81 << std::endl;
03533 #endif
03534 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[6]);
03535
03536 #ifdef MAP_ISO_DEBUG
03537 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 81 << std::endl;
03538 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 81 << std::endl;
03539 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 81 << std::endl;
03540 #endif
03541 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[10]);
03542
03543 #ifdef MAP_ISO_DEBUG
03544 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 81 << std::endl;
03545 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 81 << std::endl;
03546 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 81 << std::endl;
03547 #endif
03548 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
03549
03550 #ifdef MAP_ISO_DEBUG
03551 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 81 << std::endl;
03552 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 81 << std::endl;
03553 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 81 << std::endl;
03554 #endif
03555 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
03556
03557 #ifdef MAP_ISO_DEBUG
03558 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 81 << std::endl;
03559 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 81 << std::endl;
03560 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 81 << std::endl;
03561 #endif
03562 }
03563
03564 template<>
03565 void AddLinesAndFaces<82>(IndexedVertexArray& va,unsigned int vertex_id[12] )
03566 {
03567 va.AddLine(vertex_id[1],vertex_id[0]);
03568 va.AddLine(vertex_id[4],vertex_id[0]);
03569 va.AddLine(vertex_id[5],vertex_id[0]);
03570 va.AddLine(vertex_id[5],vertex_id[1]);
03571 va.AddLine(vertex_id[5],vertex_id[4]);
03572 va.AddLine(vertex_id[6],vertex_id[1]);
03573 va.AddLine(vertex_id[6],vertex_id[5]);
03574 va.AddLine(vertex_id[8],vertex_id[0]);
03575 va.AddLine(vertex_id[8],vertex_id[4]);
03576 va.AddLine(vertex_id[8],vertex_id[5]);
03577 va.AddLine(vertex_id[9],vertex_id[1]);
03578 va.AddLine(vertex_id[9],vertex_id[5]);
03579 va.AddLine(vertex_id[9],vertex_id[6]);
03580 va.AddLine(vertex_id[9],vertex_id[8]);
03581 va.AddLine(vertex_id[10],vertex_id[6]);
03582 va.AddLine(vertex_id[10],vertex_id[8]);
03583 va.AddLine(vertex_id[10],vertex_id[9]);
03584 va.AddLine(vertex_id[11],vertex_id[4]);
03585 va.AddLine(vertex_id[11],vertex_id[8]);
03586 va.AddLine(vertex_id[11],vertex_id[9]);
03587 va.AddLine(vertex_id[11],vertex_id[10]);
03588 va.AddTriN(vertex_id[5],vertex_id[11],vertex_id[8]);
03589
03590 #ifdef MAP_ISO_DEBUG
03591 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
03592 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 82 << std::endl;
03593 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 82 << std::endl;
03594 #endif
03595 va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[11]);
03596
03597 #ifdef MAP_ISO_DEBUG
03598 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
03599 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 82 << std::endl;
03600 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 82 << std::endl;
03601 #endif
03602 va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[4]);
03603
03604 #ifdef MAP_ISO_DEBUG
03605 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
03606 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 82 << std::endl;
03607 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 82 << std::endl;
03608 #endif
03609 va.AddTriN(vertex_id[5],vertex_id[0],vertex_id[8]);
03610
03611 #ifdef MAP_ISO_DEBUG
03612 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
03613 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 82 << std::endl;
03614 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 82 << std::endl;
03615 #endif
03616 va.AddTriN(vertex_id[5],vertex_id[5],vertex_id[0]);
03617
03618 #ifdef MAP_ISO_DEBUG
03619 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
03620 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
03621 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 82 << std::endl;
03622 #endif
03623 va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[5]);
03624
03625 #ifdef MAP_ISO_DEBUG
03626 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
03627 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 82 << std::endl;
03628 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
03629 #endif
03630 va.AddTriN(vertex_id[5],vertex_id[0],vertex_id[4]);
03631
03632 #ifdef MAP_ISO_DEBUG
03633 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
03634 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 82 << std::endl;
03635 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 82 << std::endl;
03636 #endif
03637 va.AddTriN(vertex_id[5],vertex_id[1],vertex_id[0]);
03638
03639 #ifdef MAP_ISO_DEBUG
03640 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
03641 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 82 << std::endl;
03642 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 82 << std::endl;
03643 #endif
03644 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
03645
03646 #ifdef MAP_ISO_DEBUG
03647 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 82 << std::endl;
03648 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 82 << std::endl;
03649 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 82 << std::endl;
03650 #endif
03651 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
03652
03653 #ifdef MAP_ISO_DEBUG
03654 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 82 << std::endl;
03655 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
03656 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 82 << std::endl;
03657 #endif
03658 va.AddTriN(vertex_id[9],vertex_id[10],vertex_id[6]);
03659
03660 #ifdef MAP_ISO_DEBUG
03661 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 82 << std::endl;
03662 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 82 << std::endl;
03663 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 82 << std::endl;
03664 #endif
03665 va.AddTriN(vertex_id[9],vertex_id[8],vertex_id[10]);
03666
03667 #ifdef MAP_ISO_DEBUG
03668 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 82 << std::endl;
03669 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 82 << std::endl;
03670 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 82 << std::endl;
03671 #endif
03672 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
03673
03674 #ifdef MAP_ISO_DEBUG
03675 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 82 << std::endl;
03676 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 82 << std::endl;
03677 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 82 << std::endl;
03678 #endif
03679 }
03680
03681 template<>
03682 void AddLinesAndFaces<83>(IndexedVertexArray& va,unsigned int vertex_id[12] )
03683 {
03684 va.AddLine(vertex_id[3],vertex_id[1]);
03685 va.AddLine(vertex_id[5],vertex_id[1]);
03686 va.AddLine(vertex_id[6],vertex_id[1]);
03687 va.AddLine(vertex_id[6],vertex_id[5]);
03688 va.AddLine(vertex_id[8],vertex_id[5]);
03689 va.AddLine(vertex_id[9],vertex_id[1]);
03690 va.AddLine(vertex_id[9],vertex_id[5]);
03691 va.AddLine(vertex_id[9],vertex_id[6]);
03692 va.AddLine(vertex_id[9],vertex_id[8]);
03693 va.AddLine(vertex_id[10],vertex_id[6]);
03694 va.AddLine(vertex_id[10],vertex_id[8]);
03695 va.AddLine(vertex_id[10],vertex_id[9]);
03696 va.AddLine(vertex_id[11],vertex_id[3]);
03697 va.AddLine(vertex_id[11],vertex_id[8]);
03698 va.AddLine(vertex_id[11],vertex_id[9]);
03699 va.AddLine(vertex_id[11],vertex_id[10]);
03700 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
03701
03702 #ifdef MAP_ISO_DEBUG
03703 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
03704 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 83 << std::endl;
03705 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 83 << std::endl;
03706 #endif
03707 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[5]);
03708
03709 #ifdef MAP_ISO_DEBUG
03710 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
03711 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 83 << std::endl;
03712 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 83 << std::endl;
03713 #endif
03714 va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[6]);
03715
03716 #ifdef MAP_ISO_DEBUG
03717 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
03718 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 83 << std::endl;
03719 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 83 << std::endl;
03720 #endif
03721 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
03722
03723 #ifdef MAP_ISO_DEBUG
03724 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
03725 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 83 << std::endl;
03726 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 83 << std::endl;
03727 #endif
03728 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[9]);
03729
03730 #ifdef MAP_ISO_DEBUG
03731 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
03732 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 83 << std::endl;
03733 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 83 << std::endl;
03734 #endif
03735 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
03736
03737 #ifdef MAP_ISO_DEBUG
03738 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
03739 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 83 << std::endl;
03740 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 83 << std::endl;
03741 #endif
03742 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[8]);
03743
03744 #ifdef MAP_ISO_DEBUG
03745 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
03746 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 83 << std::endl;
03747 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 83 << std::endl;
03748 #endif
03749 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[9]);
03750
03751 #ifdef MAP_ISO_DEBUG
03752 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
03753 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 83 << std::endl;
03754 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 83 << std::endl;
03755 #endif
03756 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[6]);
03757
03758 #ifdef MAP_ISO_DEBUG
03759 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
03760 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 83 << std::endl;
03761 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 83 << std::endl;
03762 #endif
03763 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[10]);
03764
03765 #ifdef MAP_ISO_DEBUG
03766 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
03767 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 83 << std::endl;
03768 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 83 << std::endl;
03769 #endif
03770 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
03771
03772 #ifdef MAP_ISO_DEBUG
03773 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
03774 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 83 << std::endl;
03775 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 83 << std::endl;
03776 #endif
03777 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
03778
03779 #ifdef MAP_ISO_DEBUG
03780 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 83 << std::endl;
03781 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 83 << std::endl;
03782 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 83 << std::endl;
03783 #endif
03784 }
03785
03786 template<>
03787 void AddLinesAndFaces<84>(IndexedVertexArray& va,unsigned int vertex_id[12] )
03788 {
03789 va.AddLine(vertex_id[2],vertex_id[1]);
03790 va.AddLine(vertex_id[8],vertex_id[4]);
03791 va.AddLine(vertex_id[9],vertex_id[1]);
03792 va.AddLine(vertex_id[9],vertex_id[8]);
03793 va.AddLine(vertex_id[10],vertex_id[2]);
03794 va.AddLine(vertex_id[10],vertex_id[8]);
03795 va.AddLine(vertex_id[10],vertex_id[9]);
03796 va.AddLine(vertex_id[11],vertex_id[4]);
03797 va.AddLine(vertex_id[11],vertex_id[8]);
03798 va.AddLine(vertex_id[11],vertex_id[9]);
03799 va.AddLine(vertex_id[11],vertex_id[10]);
03800 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[8]);
03801
03802 #ifdef MAP_ISO_DEBUG
03803 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 84 << std::endl;
03804 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 84 << std::endl;
03805 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 84 << std::endl;
03806 #endif
03807 va.AddTriN(vertex_id[10],vertex_id[4],vertex_id[11]);
03808
03809 #ifdef MAP_ISO_DEBUG
03810 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 84 << std::endl;
03811 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 84 << std::endl;
03812 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 84 << std::endl;
03813 #endif
03814 va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[4]);
03815
03816 #ifdef MAP_ISO_DEBUG
03817 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 84 << std::endl;
03818 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 84 << std::endl;
03819 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 84 << std::endl;
03820 #endif
03821 va.AddTriN(vertex_id[10],vertex_id[9],vertex_id[8]);
03822
03823 #ifdef MAP_ISO_DEBUG
03824 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 84 << std::endl;
03825 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 84 << std::endl;
03826 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 84 << std::endl;
03827 #endif
03828 va.AddTriN(vertex_id[10],vertex_id[1],vertex_id[9]);
03829
03830 #ifdef MAP_ISO_DEBUG
03831 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 84 << std::endl;
03832 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 84 << std::endl;
03833 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 84 << std::endl;
03834 #endif
03835 va.AddTriN(vertex_id[10],vertex_id[2],vertex_id[1]);
03836
03837 #ifdef MAP_ISO_DEBUG
03838 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 84 << std::endl;
03839 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 84 << std::endl;
03840 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 84 << std::endl;
03841 #endif
03842 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
03843
03844 #ifdef MAP_ISO_DEBUG
03845 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 84 << std::endl;
03846 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 84 << std::endl;
03847 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 84 << std::endl;
03848 #endif
03849 }
03850
03851 template<>
03852 void AddLinesAndFaces<85>(IndexedVertexArray& va,unsigned int vertex_id[12] )
03853 {
03854 va.AddLine(vertex_id[1],vertex_id[0]);
03855 va.AddLine(vertex_id[2],vertex_id[0]);
03856 va.AddLine(vertex_id[2],vertex_id[1]);
03857 va.AddLine(vertex_id[3],vertex_id[0]);
03858 va.AddLine(vertex_id[3],vertex_id[1]);
03859 va.AddLine(vertex_id[3],vertex_id[2]);
03860 va.AddLine(vertex_id[8],vertex_id[0]);
03861 va.AddLine(vertex_id[9],vertex_id[1]);
03862 va.AddLine(vertex_id[9],vertex_id[8]);
03863 va.AddLine(vertex_id[10],vertex_id[2]);
03864 va.AddLine(vertex_id[10],vertex_id[8]);
03865 va.AddLine(vertex_id[10],vertex_id[9]);
03866 va.AddLine(vertex_id[11],vertex_id[3]);
03867 va.AddLine(vertex_id[11],vertex_id[8]);
03868 va.AddLine(vertex_id[11],vertex_id[9]);
03869 va.AddLine(vertex_id[11],vertex_id[10]);
03870 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
03871
03872 #ifdef MAP_ISO_DEBUG
03873 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 85 << std::endl;
03874 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 85 << std::endl;
03875 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 85 << std::endl;
03876 #endif
03877 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
03878
03879 #ifdef MAP_ISO_DEBUG
03880 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 85 << std::endl;
03881 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 85 << std::endl;
03882 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 85 << std::endl;
03883 #endif
03884 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[8]);
03885
03886 #ifdef MAP_ISO_DEBUG
03887 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 85 << std::endl;
03888 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 85 << std::endl;
03889 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 85 << std::endl;
03890 #endif
03891 va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[9]);
03892
03893 #ifdef MAP_ISO_DEBUG
03894 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 85 << std::endl;
03895 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 85 << std::endl;
03896 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 85 << std::endl;
03897 #endif
03898 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
03899
03900 #ifdef MAP_ISO_DEBUG
03901 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 85 << std::endl;
03902 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 85 << std::endl;
03903 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 85 << std::endl;
03904 #endif
03905 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[10]);
03906
03907 #ifdef MAP_ISO_DEBUG
03908 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 85 << std::endl;
03909 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 85 << std::endl;
03910 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 85 << std::endl;
03911 #endif
03912 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
03913
03914 #ifdef MAP_ISO_DEBUG
03915 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 85 << std::endl;
03916 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 85 << std::endl;
03917 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 85 << std::endl;
03918 #endif
03919 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
03920
03921 #ifdef MAP_ISO_DEBUG
03922 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 85 << std::endl;
03923 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 85 << std::endl;
03924 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 85 << std::endl;
03925 #endif
03926 }
03927
03928 template<>
03929 void AddLinesAndFaces<86>(IndexedVertexArray& va,unsigned int vertex_id[12] )
03930 {
03931 va.AddLine(vertex_id[2],vertex_id[0]);
03932 va.AddLine(vertex_id[4],vertex_id[0]);
03933 va.AddLine(vertex_id[5],vertex_id[0]);
03934 va.AddLine(vertex_id[5],vertex_id[4]);
03935 va.AddLine(vertex_id[8],vertex_id[0]);
03936 va.AddLine(vertex_id[8],vertex_id[4]);
03937 va.AddLine(vertex_id[8],vertex_id[5]);
03938 va.AddLine(vertex_id[9],vertex_id[5]);
03939 va.AddLine(vertex_id[9],vertex_id[8]);
03940 va.AddLine(vertex_id[10],vertex_id[2]);
03941 va.AddLine(vertex_id[10],vertex_id[8]);
03942 va.AddLine(vertex_id[10],vertex_id[9]);
03943 va.AddLine(vertex_id[11],vertex_id[4]);
03944 va.AddLine(vertex_id[11],vertex_id[8]);
03945 va.AddLine(vertex_id[11],vertex_id[9]);
03946 va.AddLine(vertex_id[11],vertex_id[10]);
03947 va.AddTriN(vertex_id[10],vertex_id[9],vertex_id[8]);
03948
03949 #ifdef MAP_ISO_DEBUG
03950 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
03951 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 86 << std::endl;
03952 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 86 << std::endl;
03953 #endif
03954 va.AddTriN(vertex_id[10],vertex_id[5],vertex_id[9]);
03955
03956 #ifdef MAP_ISO_DEBUG
03957 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
03958 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 86 << std::endl;
03959 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 86 << std::endl;
03960 #endif
03961 va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[5]);
03962
03963 #ifdef MAP_ISO_DEBUG
03964 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
03965 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 86 << std::endl;
03966 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 86 << std::endl;
03967 #endif
03968 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[8]);
03969
03970 #ifdef MAP_ISO_DEBUG
03971 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
03972 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 86 << std::endl;
03973 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 86 << std::endl;
03974 #endif
03975 va.AddTriN(vertex_id[10],vertex_id[4],vertex_id[11]);
03976
03977 #ifdef MAP_ISO_DEBUG
03978 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
03979 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 86 << std::endl;
03980 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 86 << std::endl;
03981 #endif
03982 va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[4]);
03983
03984 #ifdef MAP_ISO_DEBUG
03985 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
03986 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 86 << std::endl;
03987 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 86 << std::endl;
03988 #endif
03989 va.AddTriN(vertex_id[10],vertex_id[0],vertex_id[8]);
03990
03991 #ifdef MAP_ISO_DEBUG
03992 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
03993 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 86 << std::endl;
03994 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 86 << std::endl;
03995 #endif
03996 va.AddTriN(vertex_id[10],vertex_id[5],vertex_id[0]);
03997
03998 #ifdef MAP_ISO_DEBUG
03999 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
04000 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 86 << std::endl;
04001 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 86 << std::endl;
04002 #endif
04003 va.AddTriN(vertex_id[10],vertex_id[4],vertex_id[5]);
04004
04005 #ifdef MAP_ISO_DEBUG
04006 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
04007 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 86 << std::endl;
04008 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 86 << std::endl;
04009 #endif
04010 va.AddTriN(vertex_id[10],vertex_id[0],vertex_id[4]);
04011
04012 #ifdef MAP_ISO_DEBUG
04013 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
04014 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 86 << std::endl;
04015 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 86 << std::endl;
04016 #endif
04017 va.AddTriN(vertex_id[10],vertex_id[2],vertex_id[0]);
04018
04019 #ifdef MAP_ISO_DEBUG
04020 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
04021 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 86 << std::endl;
04022 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 86 << std::endl;
04023 #endif
04024 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
04025
04026 #ifdef MAP_ISO_DEBUG
04027 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
04028 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 86 << std::endl;
04029 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 86 << std::endl;
04030 #endif
04031 }
04032
04033 template<>
04034 void AddLinesAndFaces<87>(IndexedVertexArray& va,unsigned int vertex_id[12] )
04035 {
04036 va.AddLine(vertex_id[3],vertex_id[2]);
04037 va.AddLine(vertex_id[8],vertex_id[5]);
04038 va.AddLine(vertex_id[9],vertex_id[5]);
04039 va.AddLine(vertex_id[9],vertex_id[8]);
04040 va.AddLine(vertex_id[10],vertex_id[2]);
04041 va.AddLine(vertex_id[10],vertex_id[8]);
04042 va.AddLine(vertex_id[10],vertex_id[9]);
04043 va.AddLine(vertex_id[11],vertex_id[3]);
04044 va.AddLine(vertex_id[11],vertex_id[8]);
04045 va.AddLine(vertex_id[11],vertex_id[9]);
04046 va.AddLine(vertex_id[11],vertex_id[10]);
04047 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
04048
04049 #ifdef MAP_ISO_DEBUG
04050 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 87 << std::endl;
04051 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 87 << std::endl;
04052 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 87 << std::endl;
04053 #endif
04054 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[10]);
04055
04056 #ifdef MAP_ISO_DEBUG
04057 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 87 << std::endl;
04058 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 87 << std::endl;
04059 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 87 << std::endl;
04060 #endif
04061 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[8]);
04062
04063 #ifdef MAP_ISO_DEBUG
04064 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 87 << std::endl;
04065 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 87 << std::endl;
04066 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 87 << std::endl;
04067 #endif
04068 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[5]);
04069
04070 #ifdef MAP_ISO_DEBUG
04071 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 87 << std::endl;
04072 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 87 << std::endl;
04073 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 87 << std::endl;
04074 #endif
04075 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[9]);
04076
04077 #ifdef MAP_ISO_DEBUG
04078 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 87 << std::endl;
04079 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 87 << std::endl;
04080 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 87 << std::endl;
04081 #endif
04082 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
04083
04084 #ifdef MAP_ISO_DEBUG
04085 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 87 << std::endl;
04086 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 87 << std::endl;
04087 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 87 << std::endl;
04088 #endif
04089 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
04090
04091 #ifdef MAP_ISO_DEBUG
04092 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 87 << std::endl;
04093 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 87 << std::endl;
04094 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 87 << std::endl;
04095 #endif
04096 }
04097
04098 template<>
04099 void AddLinesAndFaces<88>(IndexedVertexArray& va,unsigned int vertex_id[12] )
04100 {
04101 va.AddLine(vertex_id[3],vertex_id[2]);
04102 va.AddLine(vertex_id[4],vertex_id[3]);
04103 va.AddLine(vertex_id[6],vertex_id[2]);
04104 va.AddLine(vertex_id[7],vertex_id[2]);
04105 va.AddLine(vertex_id[7],vertex_id[3]);
04106 va.AddLine(vertex_id[7],vertex_id[4]);
04107 va.AddLine(vertex_id[7],vertex_id[6]);
04108 va.AddLine(vertex_id[8],vertex_id[4]);
04109 va.AddLine(vertex_id[9],vertex_id[6]);
04110 va.AddLine(vertex_id[9],vertex_id[8]);
04111 va.AddLine(vertex_id[10],vertex_id[2]);
04112 va.AddLine(vertex_id[10],vertex_id[6]);
04113 va.AddLine(vertex_id[10],vertex_id[7]);
04114 va.AddLine(vertex_id[10],vertex_id[8]);
04115 va.AddLine(vertex_id[10],vertex_id[9]);
04116 va.AddLine(vertex_id[11],vertex_id[3]);
04117 va.AddLine(vertex_id[11],vertex_id[4]);
04118 va.AddLine(vertex_id[11],vertex_id[7]);
04119 va.AddLine(vertex_id[11],vertex_id[8]);
04120 va.AddLine(vertex_id[11],vertex_id[9]);
04121 va.AddLine(vertex_id[11],vertex_id[10]);
04122 va.AddTriN(vertex_id[4],vertex_id[9],vertex_id[8]);
04123
04124 #ifdef MAP_ISO_DEBUG
04125 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
04126 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 88 << std::endl;
04127 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 88 << std::endl;
04128 #endif
04129 va.AddTriN(vertex_id[4],vertex_id[6],vertex_id[9]);
04130
04131 #ifdef MAP_ISO_DEBUG
04132 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
04133 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 88 << std::endl;
04134 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 88 << std::endl;
04135 #endif
04136 va.AddTriN(vertex_id[4],vertex_id[10],vertex_id[6]);
04137
04138 #ifdef MAP_ISO_DEBUG
04139 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
04140 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 88 << std::endl;
04141 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 88 << std::endl;
04142 #endif
04143 va.AddTriN(vertex_id[4],vertex_id[2],vertex_id[10]);
04144
04145 #ifdef MAP_ISO_DEBUG
04146 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
04147 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 88 << std::endl;
04148 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 88 << std::endl;
04149 #endif
04150 va.AddTriN(vertex_id[4],vertex_id[7],vertex_id[2]);
04151
04152 #ifdef MAP_ISO_DEBUG
04153 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
04154 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 88 << std::endl;
04155 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 88 << std::endl;
04156 #endif
04157 va.AddTriN(vertex_id[4],vertex_id[6],vertex_id[7]);
04158
04159 #ifdef MAP_ISO_DEBUG
04160 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
04161 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 88 << std::endl;
04162 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 88 << std::endl;
04163 #endif
04164 va.AddTriN(vertex_id[4],vertex_id[2],vertex_id[6]);
04165
04166 #ifdef MAP_ISO_DEBUG
04167 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
04168 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 88 << std::endl;
04169 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 88 << std::endl;
04170 #endif
04171 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[2]);
04172
04173 #ifdef MAP_ISO_DEBUG
04174 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
04175 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 88 << std::endl;
04176 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 88 << std::endl;
04177 #endif
04178 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
04179
04180 #ifdef MAP_ISO_DEBUG
04181 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 88 << std::endl;
04182 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 88 << std::endl;
04183 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 88 << std::endl;
04184 #endif
04185 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
04186
04187 #ifdef MAP_ISO_DEBUG
04188 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 88 << std::endl;
04189 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
04190 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 88 << std::endl;
04191 #endif
04192 va.AddTriN(vertex_id[8],vertex_id[7],vertex_id[11]);
04193
04194 #ifdef MAP_ISO_DEBUG
04195 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 88 << std::endl;
04196 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 88 << std::endl;
04197 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 88 << std::endl;
04198 #endif
04199 va.AddTriN(vertex_id[8],vertex_id[10],vertex_id[7]);
04200
04201 #ifdef MAP_ISO_DEBUG
04202 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 88 << std::endl;
04203 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 88 << std::endl;
04204 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 88 << std::endl;
04205 #endif
04206 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
04207
04208 #ifdef MAP_ISO_DEBUG
04209 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 88 << std::endl;
04210 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 88 << std::endl;
04211 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 88 << std::endl;
04212 #endif
04213 }
04214
04215 template<>
04216 void AddLinesAndFaces<89>(IndexedVertexArray& va,unsigned int vertex_id[12] )
04217 {
04218 va.AddLine(vertex_id[2],vertex_id[0]);
04219 va.AddLine(vertex_id[6],vertex_id[2]);
04220 va.AddLine(vertex_id[7],vertex_id[2]);
04221 va.AddLine(vertex_id[7],vertex_id[6]);
04222 va.AddLine(vertex_id[8],vertex_id[0]);
04223 va.AddLine(vertex_id[9],vertex_id[6]);
04224 va.AddLine(vertex_id[9],vertex_id[8]);
04225 va.AddLine(vertex_id[10],vertex_id[2]);
04226 va.AddLine(vertex_id[10],vertex_id[6]);
04227 va.AddLine(vertex_id[10],vertex_id[7]);
04228 va.AddLine(vertex_id[10],vertex_id[8]);
04229 va.AddLine(vertex_id[10],vertex_id[9]);
04230 va.AddLine(vertex_id[11],vertex_id[7]);
04231 va.AddLine(vertex_id[11],vertex_id[8]);
04232 va.AddLine(vertex_id[11],vertex_id[9]);
04233 va.AddLine(vertex_id[11],vertex_id[10]);
04234 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[0]);
04235
04236 #ifdef MAP_ISO_DEBUG
04237 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 89 << std::endl;
04238 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 89 << std::endl;
04239 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 89 << std::endl;
04240 #endif
04241 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[8]);
04242
04243 #ifdef MAP_ISO_DEBUG
04244 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 89 << std::endl;
04245 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 89 << std::endl;
04246 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 89 << std::endl;
04247 #endif
04248 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[9]);
04249
04250 #ifdef MAP_ISO_DEBUG
04251 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 89 << std::endl;
04252 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 89 << std::endl;
04253 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 89 << std::endl;
04254 #endif
04255 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
04256
04257 #ifdef MAP_ISO_DEBUG
04258 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 89 << std::endl;
04259 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 89 << std::endl;
04260 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 89 << std::endl;
04261 #endif
04262 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
04263
04264 #ifdef MAP_ISO_DEBUG
04265 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 89 << std::endl;
04266 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 89 << std::endl;
04267 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 89 << std::endl;
04268 #endif
04269 va.AddTriN(vertex_id[8],vertex_id[7],vertex_id[11]);
04270
04271 #ifdef MAP_ISO_DEBUG
04272 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 89 << std::endl;
04273 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 89 << std::endl;
04274 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 89 << std::endl;
04275 #endif
04276 va.AddTriN(vertex_id[8],vertex_id[10],vertex_id[7]);
04277
04278 #ifdef MAP_ISO_DEBUG
04279 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 89 << std::endl;
04280 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 89 << std::endl;
04281 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 89 << std::endl;
04282 #endif
04283 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
04284
04285 #ifdef MAP_ISO_DEBUG
04286 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 89 << std::endl;
04287 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 89 << std::endl;
04288 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 89 << std::endl;
04289 #endif
04290 }
04291
04292 template<>
04293 void AddLinesAndFaces<90>(IndexedVertexArray& va,unsigned int vertex_id[12] )
04294 {
04295 va.AddLine(vertex_id[1],vertex_id[0]);
04296 va.AddLine(vertex_id[2],vertex_id[0]);
04297 va.AddLine(vertex_id[2],vertex_id[1]);
04298 va.AddLine(vertex_id[3],vertex_id[0]);
04299 va.AddLine(vertex_id[3],vertex_id[1]);
04300 va.AddLine(vertex_id[3],vertex_id[2]);
04301 va.AddLine(vertex_id[4],vertex_id[0]);
04302 va.AddLine(vertex_id[4],vertex_id[3]);
04303 va.AddLine(vertex_id[5],vertex_id[0]);
04304 va.AddLine(vertex_id[5],vertex_id[1]);
04305 va.AddLine(vertex_id[5],vertex_id[4]);
04306 va.AddLine(vertex_id[6],vertex_id[1]);
04307 va.AddLine(vertex_id[6],vertex_id[2]);
04308 va.AddLine(vertex_id[6],vertex_id[5]);
04309 va.AddLine(vertex_id[7],vertex_id[2]);
04310 va.AddLine(vertex_id[7],vertex_id[3]);
04311 va.AddLine(vertex_id[7],vertex_id[4]);
04312 va.AddLine(vertex_id[7],vertex_id[6]);
04313 va.AddLine(vertex_id[8],vertex_id[0]);
04314 va.AddLine(vertex_id[8],vertex_id[4]);
04315 va.AddLine(vertex_id[8],vertex_id[5]);
04316 va.AddLine(vertex_id[9],vertex_id[1]);
04317 va.AddLine(vertex_id[9],vertex_id[5]);
04318 va.AddLine(vertex_id[9],vertex_id[6]);
04319 va.AddLine(vertex_id[9],vertex_id[8]);
04320 va.AddLine(vertex_id[10],vertex_id[2]);
04321 va.AddLine(vertex_id[10],vertex_id[6]);
04322 va.AddLine(vertex_id[10],vertex_id[7]);
04323 va.AddLine(vertex_id[10],vertex_id[8]);
04324 va.AddLine(vertex_id[10],vertex_id[9]);
04325 va.AddLine(vertex_id[11],vertex_id[3]);
04326 va.AddLine(vertex_id[11],vertex_id[4]);
04327 va.AddLine(vertex_id[11],vertex_id[7]);
04328 va.AddLine(vertex_id[11],vertex_id[8]);
04329 va.AddLine(vertex_id[11],vertex_id[9]);
04330 va.AddLine(vertex_id[11],vertex_id[10]);
04331 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
04332
04333 #ifdef MAP_ISO_DEBUG
04334 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 90 << std::endl;
04335 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
04336 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 90 << std::endl;
04337 #endif
04338 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
04339
04340 #ifdef MAP_ISO_DEBUG
04341 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 90 << std::endl;
04342 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 90 << std::endl;
04343 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 90 << std::endl;
04344 #endif
04345 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[6]);
04346
04347 #ifdef MAP_ISO_DEBUG
04348 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
04349 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 90 << std::endl;
04350 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 90 << std::endl;
04351 #endif
04352 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[9]);
04353
04354 #ifdef MAP_ISO_DEBUG
04355 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
04356 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 90 << std::endl;
04357 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 90 << std::endl;
04358 #endif
04359 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[8]);
04360
04361 #ifdef MAP_ISO_DEBUG
04362 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
04363 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 90 << std::endl;
04364 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 90 << std::endl;
04365 #endif
04366 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[5]);
04367
04368 #ifdef MAP_ISO_DEBUG
04369 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
04370 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 90 << std::endl;
04371 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 90 << std::endl;
04372 #endif
04373 va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[9]);
04374
04375 #ifdef MAP_ISO_DEBUG
04376 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
04377 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 90 << std::endl;
04378 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 90 << std::endl;
04379 #endif
04380 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[1]);
04381
04382 #ifdef MAP_ISO_DEBUG
04383 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
04384 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 90 << std::endl;
04385 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 90 << std::endl;
04386 #endif
04387 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[6]);
04388
04389 #ifdef MAP_ISO_DEBUG
04390 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
04391 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 90 << std::endl;
04392 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 90 << std::endl;
04393 #endif
04394 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[5]);
04395
04396 #ifdef MAP_ISO_DEBUG
04397 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
04398 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 90 << std::endl;
04399 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 90 << std::endl;
04400 #endif
04401 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[4]);
04402
04403 #ifdef MAP_ISO_DEBUG
04404 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
04405 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 90 << std::endl;
04406 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 90 << std::endl;
04407 #endif
04408 va.AddTriN(vertex_id[2],vertex_id[0],vertex_id[8]);
04409
04410 #ifdef MAP_ISO_DEBUG
04411 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
04412 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 90 << std::endl;
04413 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 90 << std::endl;
04414 #endif
04415 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[0]);
04416
04417 #ifdef MAP_ISO_DEBUG
04418 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
04419 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 90 << std::endl;
04420 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 90 << std::endl;
04421 #endif
04422 va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[5]);
04423
04424 #ifdef MAP_ISO_DEBUG
04425 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
04426 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 90 << std::endl;
04427 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 90 << std::endl;
04428 #endif
04429 va.AddTriN(vertex_id[2],vertex_id[3],vertex_id[1]);
04430
04431 #ifdef MAP_ISO_DEBUG
04432 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
04433 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 90 << std::endl;
04434 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 90 << std::endl;
04435 #endif
04436 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
04437
04438 #ifdef MAP_ISO_DEBUG
04439 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 90 << std::endl;
04440 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 90 << std::endl;
04441 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
04442 #endif
04443 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
04444
04445 #ifdef MAP_ISO_DEBUG
04446 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 90 << std::endl;
04447 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 90 << std::endl;
04448 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 90 << std::endl;
04449 #endif
04450 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
04451
04452 #ifdef MAP_ISO_DEBUG
04453 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 90 << std::endl;
04454 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 90 << std::endl;
04455 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 90 << std::endl;
04456 #endif
04457 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
04458
04459 #ifdef MAP_ISO_DEBUG
04460 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 90 << std::endl;
04461 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 90 << std::endl;
04462 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 90 << std::endl;
04463 #endif
04464 va.AddTriN(vertex_id[8],vertex_id[7],vertex_id[11]);
04465
04466 #ifdef MAP_ISO_DEBUG
04467 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 90 << std::endl;
04468 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 90 << std::endl;
04469 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 90 << std::endl;
04470 #endif
04471 va.AddTriN(vertex_id[8],vertex_id[10],vertex_id[7]);
04472
04473 #ifdef MAP_ISO_DEBUG
04474 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 90 << std::endl;
04475 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 90 << std::endl;
04476 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 90 << std::endl;
04477 #endif
04478 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
04479
04480 #ifdef MAP_ISO_DEBUG
04481 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 90 << std::endl;
04482 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 90 << std::endl;
04483 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 90 << std::endl;
04484 #endif
04485 }
04486
04487 template<>
04488 void AddLinesAndFaces<91>(IndexedVertexArray& va,unsigned int vertex_id[12] )
04489 {
04490 va.AddLine(vertex_id[2],vertex_id[1]);
04491 va.AddLine(vertex_id[5],vertex_id[1]);
04492 va.AddLine(vertex_id[6],vertex_id[1]);
04493 va.AddLine(vertex_id[6],vertex_id[2]);
04494 va.AddLine(vertex_id[6],vertex_id[5]);
04495 va.AddLine(vertex_id[7],vertex_id[2]);
04496 va.AddLine(vertex_id[7],vertex_id[6]);
04497 va.AddLine(vertex_id[8],vertex_id[5]);
04498 va.AddLine(vertex_id[9],vertex_id[1]);
04499 va.AddLine(vertex_id[9],vertex_id[5]);
04500 va.AddLine(vertex_id[9],vertex_id[6]);
04501 va.AddLine(vertex_id[9],vertex_id[8]);
04502 va.AddLine(vertex_id[10],vertex_id[2]);
04503 va.AddLine(vertex_id[10],vertex_id[6]);
04504 va.AddLine(vertex_id[10],vertex_id[7]);
04505 va.AddLine(vertex_id[10],vertex_id[8]);
04506 va.AddLine(vertex_id[10],vertex_id[9]);
04507 va.AddLine(vertex_id[11],vertex_id[7]);
04508 va.AddLine(vertex_id[11],vertex_id[8]);
04509 va.AddLine(vertex_id[11],vertex_id[9]);
04510 va.AddLine(vertex_id[11],vertex_id[10]);
04511 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[1]);
04512
04513 #ifdef MAP_ISO_DEBUG
04514 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
04515 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 91 << std::endl;
04516 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 91 << std::endl;
04517 #endif
04518 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[5]);
04519
04520 #ifdef MAP_ISO_DEBUG
04521 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
04522 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 91 << std::endl;
04523 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 91 << std::endl;
04524 #endif
04525 va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[6]);
04526
04527 #ifdef MAP_ISO_DEBUG
04528 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
04529 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 91 << std::endl;
04530 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 91 << std::endl;
04531 #endif
04532 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[1]);
04533
04534 #ifdef MAP_ISO_DEBUG
04535 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
04536 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 91 << std::endl;
04537 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 91 << std::endl;
04538 #endif
04539 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[9]);
04540
04541 #ifdef MAP_ISO_DEBUG
04542 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
04543 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 91 << std::endl;
04544 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 91 << std::endl;
04545 #endif
04546 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[5]);
04547
04548 #ifdef MAP_ISO_DEBUG
04549 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
04550 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 91 << std::endl;
04551 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 91 << std::endl;
04552 #endif
04553 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[8]);
04554
04555 #ifdef MAP_ISO_DEBUG
04556 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
04557 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 91 << std::endl;
04558 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 91 << std::endl;
04559 #endif
04560 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[9]);
04561
04562 #ifdef MAP_ISO_DEBUG
04563 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
04564 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 91 << std::endl;
04565 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 91 << std::endl;
04566 #endif
04567 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
04568
04569 #ifdef MAP_ISO_DEBUG
04570 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 91 << std::endl;
04571 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 91 << std::endl;
04572 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
04573 #endif
04574 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
04575
04576 #ifdef MAP_ISO_DEBUG
04577 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 91 << std::endl;
04578 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 91 << std::endl;
04579 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 91 << std::endl;
04580 #endif
04581 va.AddTriN(vertex_id[8],vertex_id[7],vertex_id[11]);
04582
04583 #ifdef MAP_ISO_DEBUG
04584 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 91 << std::endl;
04585 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 91 << std::endl;
04586 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 91 << std::endl;
04587 #endif
04588 va.AddTriN(vertex_id[8],vertex_id[10],vertex_id[7]);
04589
04590 #ifdef MAP_ISO_DEBUG
04591 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 91 << std::endl;
04592 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 91 << std::endl;
04593 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 91 << std::endl;
04594 #endif
04595 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
04596
04597 #ifdef MAP_ISO_DEBUG
04598 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 91 << std::endl;
04599 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 91 << std::endl;
04600 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 91 << std::endl;
04601 #endif
04602 }
04603
04604 template<>
04605 void AddLinesAndFaces<92>(IndexedVertexArray& va,unsigned int vertex_id[12] )
04606 {
04607 va.AddLine(vertex_id[3],vertex_id[1]);
04608 va.AddLine(vertex_id[4],vertex_id[3]);
04609 va.AddLine(vertex_id[7],vertex_id[3]);
04610 va.AddLine(vertex_id[7],vertex_id[4]);
04611 va.AddLine(vertex_id[8],vertex_id[4]);
04612 va.AddLine(vertex_id[9],vertex_id[1]);
04613 va.AddLine(vertex_id[9],vertex_id[8]);
04614 va.AddLine(vertex_id[10],vertex_id[7]);
04615 va.AddLine(vertex_id[10],vertex_id[8]);
04616 va.AddLine(vertex_id[10],vertex_id[9]);
04617 va.AddLine(vertex_id[11],vertex_id[3]);
04618 va.AddLine(vertex_id[11],vertex_id[4]);
04619 va.AddLine(vertex_id[11],vertex_id[7]);
04620 va.AddLine(vertex_id[11],vertex_id[8]);
04621 va.AddLine(vertex_id[11],vertex_id[9]);
04622 va.AddLine(vertex_id[11],vertex_id[10]);
04623 va.AddTriN(vertex_id[4],vertex_id[9],vertex_id[8]);
04624
04625 #ifdef MAP_ISO_DEBUG
04626 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 92 << std::endl;
04627 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 92 << std::endl;
04628 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 92 << std::endl;
04629 #endif
04630 va.AddTriN(vertex_id[4],vertex_id[1],vertex_id[9]);
04631
04632 #ifdef MAP_ISO_DEBUG
04633 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 92 << std::endl;
04634 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 92 << std::endl;
04635 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 92 << std::endl;
04636 #endif
04637 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[1]);
04638
04639 #ifdef MAP_ISO_DEBUG
04640 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 92 << std::endl;
04641 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 92 << std::endl;
04642 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 92 << std::endl;
04643 #endif
04644 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
04645
04646 #ifdef MAP_ISO_DEBUG
04647 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 92 << std::endl;
04648 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 92 << std::endl;
04649 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 92 << std::endl;
04650 #endif
04651 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
04652
04653 #ifdef MAP_ISO_DEBUG
04654 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 92 << std::endl;
04655 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 92 << std::endl;
04656 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 92 << std::endl;
04657 #endif
04658 va.AddTriN(vertex_id[8],vertex_id[7],vertex_id[11]);
04659
04660 #ifdef MAP_ISO_DEBUG
04661 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 92 << std::endl;
04662 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 92 << std::endl;
04663 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 92 << std::endl;
04664 #endif
04665 va.AddTriN(vertex_id[8],vertex_id[10],vertex_id[7]);
04666
04667 #ifdef MAP_ISO_DEBUG
04668 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 92 << std::endl;
04669 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 92 << std::endl;
04670 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 92 << std::endl;
04671 #endif
04672 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
04673
04674 #ifdef MAP_ISO_DEBUG
04675 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 92 << std::endl;
04676 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 92 << std::endl;
04677 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 92 << std::endl;
04678 #endif
04679 }
04680
04681 template<>
04682 void AddLinesAndFaces<93>(IndexedVertexArray& va,unsigned int vertex_id[12] )
04683 {
04684 va.AddLine(vertex_id[1],vertex_id[0]);
04685 va.AddLine(vertex_id[8],vertex_id[0]);
04686 va.AddLine(vertex_id[9],vertex_id[1]);
04687 va.AddLine(vertex_id[9],vertex_id[8]);
04688 va.AddLine(vertex_id[10],vertex_id[7]);
04689 va.AddLine(vertex_id[10],vertex_id[8]);
04690 va.AddLine(vertex_id[10],vertex_id[9]);
04691 va.AddLine(vertex_id[11],vertex_id[7]);
04692 va.AddLine(vertex_id[11],vertex_id[8]);
04693 va.AddLine(vertex_id[11],vertex_id[9]);
04694 va.AddLine(vertex_id[11],vertex_id[10]);
04695 va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[0]);
04696
04697 #ifdef MAP_ISO_DEBUG
04698 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 93 << std::endl;
04699 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 93 << std::endl;
04700 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 93 << std::endl;
04701 #endif
04702 va.AddTriN(vertex_id[1],vertex_id[9],vertex_id[8]);
04703
04704 #ifdef MAP_ISO_DEBUG
04705 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 93 << std::endl;
04706 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 93 << std::endl;
04707 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 93 << std::endl;
04708 #endif
04709 va.AddTriN(vertex_id[8],vertex_id[7],vertex_id[11]);
04710
04711 #ifdef MAP_ISO_DEBUG
04712 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 93 << std::endl;
04713 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 93 << std::endl;
04714 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 93 << std::endl;
04715 #endif
04716 va.AddTriN(vertex_id[8],vertex_id[10],vertex_id[7]);
04717
04718 #ifdef MAP_ISO_DEBUG
04719 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 93 << std::endl;
04720 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 93 << std::endl;
04721 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 93 << std::endl;
04722 #endif
04723 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
04724
04725 #ifdef MAP_ISO_DEBUG
04726 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 93 << std::endl;
04727 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 93 << std::endl;
04728 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 93 << std::endl;
04729 #endif
04730 }
04731
04732 template<>
04733 void AddLinesAndFaces<94>(IndexedVertexArray& va,unsigned int vertex_id[12] )
04734 {
04735 va.AddLine(vertex_id[3],vertex_id[0]);
04736 va.AddLine(vertex_id[4],vertex_id[0]);
04737 va.AddLine(vertex_id[4],vertex_id[3]);
04738 va.AddLine(vertex_id[5],vertex_id[0]);
04739 va.AddLine(vertex_id[5],vertex_id[4]);
04740 va.AddLine(vertex_id[7],vertex_id[3]);
04741 va.AddLine(vertex_id[7],vertex_id[4]);
04742 va.AddLine(vertex_id[8],vertex_id[0]);
04743 va.AddLine(vertex_id[8],vertex_id[4]);
04744 va.AddLine(vertex_id[8],vertex_id[5]);
04745 va.AddLine(vertex_id[9],vertex_id[5]);
04746 va.AddLine(vertex_id[9],vertex_id[8]);
04747 va.AddLine(vertex_id[10],vertex_id[7]);
04748 va.AddLine(vertex_id[10],vertex_id[8]);
04749 va.AddLine(vertex_id[10],vertex_id[9]);
04750 va.AddLine(vertex_id[11],vertex_id[3]);
04751 va.AddLine(vertex_id[11],vertex_id[4]);
04752 va.AddLine(vertex_id[11],vertex_id[7]);
04753 va.AddLine(vertex_id[11],vertex_id[8]);
04754 va.AddLine(vertex_id[11],vertex_id[9]);
04755 va.AddLine(vertex_id[11],vertex_id[10]);
04756 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
04757
04758 #ifdef MAP_ISO_DEBUG
04759 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 94 << std::endl;
04760 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 94 << std::endl;
04761 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 94 << std::endl;
04762 #endif
04763 va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[0]);
04764
04765 #ifdef MAP_ISO_DEBUG
04766 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 94 << std::endl;
04767 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 94 << std::endl;
04768 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 94 << std::endl;
04769 #endif
04770 va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[8]);
04771
04772 #ifdef MAP_ISO_DEBUG
04773 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 94 << std::endl;
04774 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 94 << std::endl;
04775 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 94 << std::endl;
04776 #endif
04777 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
04778
04779 #ifdef MAP_ISO_DEBUG
04780 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 94 << std::endl;
04781 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 94 << std::endl;
04782 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 94 << std::endl;
04783 #endif
04784 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
04785
04786 #ifdef MAP_ISO_DEBUG
04787 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 94 << std::endl;
04788 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 94 << std::endl;
04789 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 94 << std::endl;
04790 #endif
04791 va.AddTriN(vertex_id[9],vertex_id[8],vertex_id[5]);
04792
04793 #ifdef MAP_ISO_DEBUG
04794 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 94 << std::endl;
04795 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 94 << std::endl;
04796 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 94 << std::endl;
04797 #endif
04798 va.AddTriN(vertex_id[8],vertex_id[7],vertex_id[11]);
04799
04800 #ifdef MAP_ISO_DEBUG
04801 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 94 << std::endl;
04802 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 94 << std::endl;
04803 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 94 << std::endl;
04804 #endif
04805 va.AddTriN(vertex_id[8],vertex_id[10],vertex_id[7]);
04806
04807 #ifdef MAP_ISO_DEBUG
04808 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 94 << std::endl;
04809 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 94 << std::endl;
04810 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 94 << std::endl;
04811 #endif
04812 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
04813
04814 #ifdef MAP_ISO_DEBUG
04815 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 94 << std::endl;
04816 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 94 << std::endl;
04817 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 94 << std::endl;
04818 #endif
04819 }
04820
04821 template<>
04822 void AddLinesAndFaces<95>(IndexedVertexArray& va,unsigned int vertex_id[12] )
04823 {
04824 va.AddLine(vertex_id[8],vertex_id[5]);
04825 va.AddLine(vertex_id[9],vertex_id[5]);
04826 va.AddLine(vertex_id[9],vertex_id[8]);
04827 va.AddLine(vertex_id[10],vertex_id[7]);
04828 va.AddLine(vertex_id[10],vertex_id[8]);
04829 va.AddLine(vertex_id[10],vertex_id[9]);
04830 va.AddLine(vertex_id[11],vertex_id[7]);
04831 va.AddLine(vertex_id[11],vertex_id[8]);
04832 va.AddLine(vertex_id[11],vertex_id[9]);
04833 va.AddLine(vertex_id[11],vertex_id[10]);
04834 va.AddTriN(vertex_id[9],vertex_id[8],vertex_id[5]);
04835
04836 #ifdef MAP_ISO_DEBUG
04837 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 95 << std::endl;
04838 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 95 << std::endl;
04839 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 95 << std::endl;
04840 #endif
04841 va.AddTriN(vertex_id[8],vertex_id[7],vertex_id[11]);
04842
04843 #ifdef MAP_ISO_DEBUG
04844 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 95 << std::endl;
04845 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 95 << std::endl;
04846 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 95 << std::endl;
04847 #endif
04848 va.AddTriN(vertex_id[8],vertex_id[10],vertex_id[7]);
04849
04850 #ifdef MAP_ISO_DEBUG
04851 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 95 << std::endl;
04852 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 95 << std::endl;
04853 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 95 << std::endl;
04854 #endif
04855 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
04856
04857 #ifdef MAP_ISO_DEBUG
04858 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 95 << std::endl;
04859 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 95 << std::endl;
04860 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 95 << std::endl;
04861 #endif
04862 }
04863
04864 template<>
04865 void AddLinesAndFaces<96>(IndexedVertexArray& va,unsigned int vertex_id[12] )
04866 {
04867 va.AddLine(vertex_id[6],vertex_id[5]);
04868 va.AddLine(vertex_id[8],vertex_id[5]);
04869 va.AddLine(vertex_id[10],vertex_id[6]);
04870 va.AddLine(vertex_id[10],vertex_id[8]);
04871 va.AddTriN(vertex_id[10],vertex_id[5],vertex_id[8]);
04872
04873 #ifdef MAP_ISO_DEBUG
04874 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 96 << std::endl;
04875 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 96 << std::endl;
04876 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 96 << std::endl;
04877 #endif
04878 va.AddTriN(vertex_id[10],vertex_id[6],vertex_id[5]);
04879
04880 #ifdef MAP_ISO_DEBUG
04881 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 96 << std::endl;
04882 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 96 << std::endl;
04883 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 96 << std::endl;
04884 #endif
04885 }
04886
04887 template<>
04888 void AddLinesAndFaces<97>(IndexedVertexArray& va,unsigned int vertex_id[12] )
04889 {
04890 va.AddLine(vertex_id[3],vertex_id[0]);
04891 va.AddLine(vertex_id[4],vertex_id[0]);
04892 va.AddLine(vertex_id[4],vertex_id[3]);
04893 va.AddLine(vertex_id[5],vertex_id[0]);
04894 va.AddLine(vertex_id[5],vertex_id[4]);
04895 va.AddLine(vertex_id[6],vertex_id[5]);
04896 va.AddLine(vertex_id[8],vertex_id[0]);
04897 va.AddLine(vertex_id[8],vertex_id[4]);
04898 va.AddLine(vertex_id[8],vertex_id[5]);
04899 va.AddLine(vertex_id[10],vertex_id[6]);
04900 va.AddLine(vertex_id[10],vertex_id[8]);
04901 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
04902
04903 #ifdef MAP_ISO_DEBUG
04904 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 97 << std::endl;
04905 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 97 << std::endl;
04906 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 97 << std::endl;
04907 #endif
04908 va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[0]);
04909
04910 #ifdef MAP_ISO_DEBUG
04911 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 97 << std::endl;
04912 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 97 << std::endl;
04913 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 97 << std::endl;
04914 #endif
04915 va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[8]);
04916
04917 #ifdef MAP_ISO_DEBUG
04918 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 97 << std::endl;
04919 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 97 << std::endl;
04920 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 97 << std::endl;
04921 #endif
04922 va.AddTriN(vertex_id[10],vertex_id[5],vertex_id[8]);
04923
04924 #ifdef MAP_ISO_DEBUG
04925 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 97 << std::endl;
04926 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 97 << std::endl;
04927 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 97 << std::endl;
04928 #endif
04929 va.AddTriN(vertex_id[10],vertex_id[6],vertex_id[5]);
04930
04931 #ifdef MAP_ISO_DEBUG
04932 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 97 << std::endl;
04933 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 97 << std::endl;
04934 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 97 << std::endl;
04935 #endif
04936 }
04937
04938 template<>
04939 void AddLinesAndFaces<98>(IndexedVertexArray& va,unsigned int vertex_id[12] )
04940 {
04941 va.AddLine(vertex_id[1],vertex_id[0]);
04942 va.AddLine(vertex_id[6],vertex_id[1]);
04943 va.AddLine(vertex_id[8],vertex_id[0]);
04944 va.AddLine(vertex_id[10],vertex_id[6]);
04945 va.AddLine(vertex_id[10],vertex_id[8]);
04946 va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[10]);
04947
04948 #ifdef MAP_ISO_DEBUG
04949 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 98 << std::endl;
04950 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 98 << std::endl;
04951 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 98 << std::endl;
04952 #endif
04953 va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[8]);
04954
04955 #ifdef MAP_ISO_DEBUG
04956 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 98 << std::endl;
04957 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 98 << std::endl;
04958 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 98 << std::endl;
04959 #endif
04960 va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[0]);
04961
04962 #ifdef MAP_ISO_DEBUG
04963 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 98 << std::endl;
04964 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 98 << std::endl;
04965 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 98 << std::endl;
04966 #endif
04967 }
04968
04969 template<>
04970 void AddLinesAndFaces<99>(IndexedVertexArray& va,unsigned int vertex_id[12] )
04971 {
04972 va.AddLine(vertex_id[3],vertex_id[1]);
04973 va.AddLine(vertex_id[4],vertex_id[3]);
04974 va.AddLine(vertex_id[6],vertex_id[1]);
04975 va.AddLine(vertex_id[8],vertex_id[4]);
04976 va.AddLine(vertex_id[10],vertex_id[6]);
04977 va.AddLine(vertex_id[10],vertex_id[8]);
04978 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[1]);
04979
04980 #ifdef MAP_ISO_DEBUG
04981 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 99 << std::endl;
04982 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 99 << std::endl;
04983 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 99 << std::endl;
04984 #endif
04985 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[6]);
04986
04987 #ifdef MAP_ISO_DEBUG
04988 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 99 << std::endl;
04989 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 99 << std::endl;
04990 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 99 << std::endl;
04991 #endif
04992 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[10]);
04993
04994 #ifdef MAP_ISO_DEBUG
04995 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 99 << std::endl;
04996 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 99 << std::endl;
04997 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 99 << std::endl;
04998 #endif
04999 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
05000
05001 #ifdef MAP_ISO_DEBUG
05002 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 99 << std::endl;
05003 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 99 << std::endl;
05004 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 99 << std::endl;
05005 #endif
05006 }
05007
05008 template<>
05009 void AddLinesAndFaces<100>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05010 {
05011 va.AddLine(vertex_id[2],vertex_id[1]);
05012 va.AddLine(vertex_id[5],vertex_id[1]);
05013 va.AddLine(vertex_id[8],vertex_id[5]);
05014 va.AddLine(vertex_id[10],vertex_id[2]);
05015 va.AddLine(vertex_id[10],vertex_id[8]);
05016 va.AddTriN(vertex_id[10],vertex_id[5],vertex_id[8]);
05017
05018 #ifdef MAP_ISO_DEBUG
05019 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 100 << std::endl;
05020 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 100 << std::endl;
05021 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 100 << std::endl;
05022 #endif
05023 va.AddTriN(vertex_id[10],vertex_id[1],vertex_id[5]);
05024
05025 #ifdef MAP_ISO_DEBUG
05026 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 100 << std::endl;
05027 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 100 << std::endl;
05028 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 100 << std::endl;
05029 #endif
05030 va.AddTriN(vertex_id[10],vertex_id[2],vertex_id[1]);
05031
05032 #ifdef MAP_ISO_DEBUG
05033 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 100 << std::endl;
05034 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 100 << std::endl;
05035 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 100 << std::endl;
05036 #endif
05037 }
05038
05039 template<>
05040 void AddLinesAndFaces<101>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05041 {
05042 va.AddLine(vertex_id[1],vertex_id[0]);
05043 va.AddLine(vertex_id[2],vertex_id[0]);
05044 va.AddLine(vertex_id[2],vertex_id[1]);
05045 va.AddLine(vertex_id[3],vertex_id[0]);
05046 va.AddLine(vertex_id[3],vertex_id[1]);
05047 va.AddLine(vertex_id[3],vertex_id[2]);
05048 va.AddLine(vertex_id[4],vertex_id[0]);
05049 va.AddLine(vertex_id[4],vertex_id[3]);
05050 va.AddLine(vertex_id[5],vertex_id[0]);
05051 va.AddLine(vertex_id[5],vertex_id[1]);
05052 va.AddLine(vertex_id[5],vertex_id[4]);
05053 va.AddLine(vertex_id[8],vertex_id[0]);
05054 va.AddLine(vertex_id[8],vertex_id[4]);
05055 va.AddLine(vertex_id[8],vertex_id[5]);
05056 va.AddLine(vertex_id[10],vertex_id[2]);
05057 va.AddLine(vertex_id[10],vertex_id[8]);
05058 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
05059
05060 #ifdef MAP_ISO_DEBUG
05061 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 101 << std::endl;
05062 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 101 << std::endl;
05063 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 101 << std::endl;
05064 #endif
05065 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
05066
05067 #ifdef MAP_ISO_DEBUG
05068 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
05069 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 101 << std::endl;
05070 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 101 << std::endl;
05071 #endif
05072 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
05073
05074 #ifdef MAP_ISO_DEBUG
05075 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
05076 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 101 << std::endl;
05077 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 101 << std::endl;
05078 #endif
05079 va.AddTriN(vertex_id[3],vertex_id[0],vertex_id[5]);
05080
05081 #ifdef MAP_ISO_DEBUG
05082 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
05083 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 101 << std::endl;
05084 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 101 << std::endl;
05085 #endif
05086 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
05087
05088 #ifdef MAP_ISO_DEBUG
05089 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
05090 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 101 << std::endl;
05091 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 101 << std::endl;
05092 #endif
05093 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
05094
05095 #ifdef MAP_ISO_DEBUG
05096 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
05097 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 101 << std::endl;
05098 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 101 << std::endl;
05099 #endif
05100 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[4]);
05101
05102 #ifdef MAP_ISO_DEBUG
05103 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
05104 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 101 << std::endl;
05105 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 101 << std::endl;
05106 #endif
05107 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
05108
05109 #ifdef MAP_ISO_DEBUG
05110 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
05111 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 101 << std::endl;
05112 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 101 << std::endl;
05113 #endif
05114 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[8]);
05115
05116 #ifdef MAP_ISO_DEBUG
05117 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
05118 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 101 << std::endl;
05119 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 101 << std::endl;
05120 #endif
05121 va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[10]);
05122
05123 #ifdef MAP_ISO_DEBUG
05124 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
05125 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 101 << std::endl;
05126 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 101 << std::endl;
05127 #endif
05128 }
05129
05130 template<>
05131 void AddLinesAndFaces<102>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05132 {
05133 va.AddLine(vertex_id[2],vertex_id[0]);
05134 va.AddLine(vertex_id[8],vertex_id[0]);
05135 va.AddLine(vertex_id[10],vertex_id[2]);
05136 va.AddLine(vertex_id[10],vertex_id[8]);
05137 va.AddTriN(vertex_id[10],vertex_id[0],vertex_id[8]);
05138
05139 #ifdef MAP_ISO_DEBUG
05140 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 102 << std::endl;
05141 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 102 << std::endl;
05142 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 102 << std::endl;
05143 #endif
05144 va.AddTriN(vertex_id[10],vertex_id[2],vertex_id[0]);
05145
05146 #ifdef MAP_ISO_DEBUG
05147 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 102 << std::endl;
05148 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 102 << std::endl;
05149 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 102 << std::endl;
05150 #endif
05151 }
05152
05153 template<>
05154 void AddLinesAndFaces<103>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05155 {
05156 va.AddLine(vertex_id[3],vertex_id[2]);
05157 va.AddLine(vertex_id[4],vertex_id[3]);
05158 va.AddLine(vertex_id[8],vertex_id[4]);
05159 va.AddLine(vertex_id[10],vertex_id[2]);
05160 va.AddLine(vertex_id[10],vertex_id[8]);
05161 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
05162
05163 #ifdef MAP_ISO_DEBUG
05164 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 103 << std::endl;
05165 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 103 << std::endl;
05166 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 103 << std::endl;
05167 #endif
05168 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[10]);
05169
05170 #ifdef MAP_ISO_DEBUG
05171 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 103 << std::endl;
05172 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 103 << std::endl;
05173 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 103 << std::endl;
05174 #endif
05175 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
05176
05177 #ifdef MAP_ISO_DEBUG
05178 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 103 << std::endl;
05179 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 103 << std::endl;
05180 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 103 << std::endl;
05181 #endif
05182 }
05183
05184 template<>
05185 void AddLinesAndFaces<104>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05186 {
05187 va.AddLine(vertex_id[3],vertex_id[2]);
05188 va.AddLine(vertex_id[6],vertex_id[2]);
05189 va.AddLine(vertex_id[6],vertex_id[5]);
05190 va.AddLine(vertex_id[7],vertex_id[2]);
05191 va.AddLine(vertex_id[7],vertex_id[3]);
05192 va.AddLine(vertex_id[7],vertex_id[6]);
05193 va.AddLine(vertex_id[8],vertex_id[5]);
05194 va.AddLine(vertex_id[10],vertex_id[2]);
05195 va.AddLine(vertex_id[10],vertex_id[6]);
05196 va.AddLine(vertex_id[10],vertex_id[7]);
05197 va.AddLine(vertex_id[10],vertex_id[8]);
05198 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
05199
05200 #ifdef MAP_ISO_DEBUG
05201 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 104 << std::endl;
05202 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 104 << std::endl;
05203 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 104 << std::endl;
05204 #endif
05205 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[10]);
05206
05207 #ifdef MAP_ISO_DEBUG
05208 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 104 << std::endl;
05209 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 104 << std::endl;
05210 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 104 << std::endl;
05211 #endif
05212 va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[8]);
05213
05214 #ifdef MAP_ISO_DEBUG
05215 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 104 << std::endl;
05216 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 104 << std::endl;
05217 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 104 << std::endl;
05218 #endif
05219 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[5]);
05220
05221 #ifdef MAP_ISO_DEBUG
05222 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 104 << std::endl;
05223 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 104 << std::endl;
05224 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 104 << std::endl;
05225 #endif
05226 va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[6]);
05227
05228 #ifdef MAP_ISO_DEBUG
05229 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 104 << std::endl;
05230 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 104 << std::endl;
05231 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 104 << std::endl;
05232 #endif
05233 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
05234
05235 #ifdef MAP_ISO_DEBUG
05236 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 104 << std::endl;
05237 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 104 << std::endl;
05238 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 104 << std::endl;
05239 #endif
05240 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[6]);
05241
05242 #ifdef MAP_ISO_DEBUG
05243 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 104 << std::endl;
05244 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 104 << std::endl;
05245 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 104 << std::endl;
05246 #endif
05247 }
05248
05249 template<>
05250 void AddLinesAndFaces<105>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05251 {
05252 va.AddLine(vertex_id[2],vertex_id[0]);
05253 va.AddLine(vertex_id[4],vertex_id[0]);
05254 va.AddLine(vertex_id[5],vertex_id[0]);
05255 va.AddLine(vertex_id[5],vertex_id[4]);
05256 va.AddLine(vertex_id[6],vertex_id[2]);
05257 va.AddLine(vertex_id[6],vertex_id[5]);
05258 va.AddLine(vertex_id[7],vertex_id[2]);
05259 va.AddLine(vertex_id[7],vertex_id[4]);
05260 va.AddLine(vertex_id[7],vertex_id[6]);
05261 va.AddLine(vertex_id[8],vertex_id[0]);
05262 va.AddLine(vertex_id[8],vertex_id[4]);
05263 va.AddLine(vertex_id[8],vertex_id[5]);
05264 va.AddLine(vertex_id[10],vertex_id[2]);
05265 va.AddLine(vertex_id[10],vertex_id[6]);
05266 va.AddLine(vertex_id[10],vertex_id[7]);
05267 va.AddLine(vertex_id[10],vertex_id[8]);
05268 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[0]);
05269
05270 #ifdef MAP_ISO_DEBUG
05271 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 105 << std::endl;
05272 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 105 << std::endl;
05273 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 105 << std::endl;
05274 #endif
05275 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[4]);
05276
05277 #ifdef MAP_ISO_DEBUG
05278 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 105 << std::endl;
05279 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 105 << std::endl;
05280 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 105 << std::endl;
05281 #endif
05282 va.AddTriN(vertex_id[2],vertex_id[0],vertex_id[5]);
05283
05284 #ifdef MAP_ISO_DEBUG
05285 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 105 << std::endl;
05286 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 105 << std::endl;
05287 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 105 << std::endl;
05288 #endif
05289 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[0]);
05290
05291 #ifdef MAP_ISO_DEBUG
05292 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 105 << std::endl;
05293 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 105 << std::endl;
05294 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 105 << std::endl;
05295 #endif
05296 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[8]);
05297
05298 #ifdef MAP_ISO_DEBUG
05299 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 105 << std::endl;
05300 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 105 << std::endl;
05301 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 105 << std::endl;
05302 #endif
05303 va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[4]);
05304
05305 #ifdef MAP_ISO_DEBUG
05306 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 105 << std::endl;
05307 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 105 << std::endl;
05308 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 105 << std::endl;
05309 #endif
05310 va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[2]);
05311
05312 #ifdef MAP_ISO_DEBUG
05313 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 105 << std::endl;
05314 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 105 << std::endl;
05315 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 105 << std::endl;
05316 #endif
05317 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[10]);
05318
05319 #ifdef MAP_ISO_DEBUG
05320 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 105 << std::endl;
05321 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 105 << std::endl;
05322 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 105 << std::endl;
05323 #endif
05324 va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[8]);
05325
05326 #ifdef MAP_ISO_DEBUG
05327 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 105 << std::endl;
05328 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 105 << std::endl;
05329 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 105 << std::endl;
05330 #endif
05331 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[5]);
05332
05333 #ifdef MAP_ISO_DEBUG
05334 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 105 << std::endl;
05335 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 105 << std::endl;
05336 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 105 << std::endl;
05337 #endif
05338 }
05339
05340 template<>
05341 void AddLinesAndFaces<106>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05342 {
05343 va.AddLine(vertex_id[1],vertex_id[0]);
05344 va.AddLine(vertex_id[2],vertex_id[0]);
05345 va.AddLine(vertex_id[2],vertex_id[1]);
05346 va.AddLine(vertex_id[3],vertex_id[0]);
05347 va.AddLine(vertex_id[3],vertex_id[1]);
05348 va.AddLine(vertex_id[3],vertex_id[2]);
05349 va.AddLine(vertex_id[6],vertex_id[1]);
05350 va.AddLine(vertex_id[6],vertex_id[2]);
05351 va.AddLine(vertex_id[7],vertex_id[2]);
05352 va.AddLine(vertex_id[7],vertex_id[3]);
05353 va.AddLine(vertex_id[7],vertex_id[6]);
05354 va.AddLine(vertex_id[8],vertex_id[0]);
05355 va.AddLine(vertex_id[10],vertex_id[2]);
05356 va.AddLine(vertex_id[10],vertex_id[6]);
05357 va.AddLine(vertex_id[10],vertex_id[7]);
05358 va.AddLine(vertex_id[10],vertex_id[8]);
05359 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
05360
05361 #ifdef MAP_ISO_DEBUG
05362 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 106 << std::endl;
05363 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 106 << std::endl;
05364 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 106 << std::endl;
05365 #endif
05366 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[10]);
05367
05368 #ifdef MAP_ISO_DEBUG
05369 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 106 << std::endl;
05370 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 106 << std::endl;
05371 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 106 << std::endl;
05372 #endif
05373 va.AddTriN(vertex_id[2],vertex_id[0],vertex_id[8]);
05374
05375 #ifdef MAP_ISO_DEBUG
05376 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 106 << std::endl;
05377 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 106 << std::endl;
05378 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 106 << std::endl;
05379 #endif
05380 va.AddTriN(vertex_id[2],vertex_id[3],vertex_id[0]);
05381
05382 #ifdef MAP_ISO_DEBUG
05383 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 106 << std::endl;
05384 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 106 << std::endl;
05385 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 106 << std::endl;
05386 #endif
05387 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[2]);
05388
05389 #ifdef MAP_ISO_DEBUG
05390 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 106 << std::endl;
05391 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 106 << std::endl;
05392 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 106 << std::endl;
05393 #endif
05394 va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[6]);
05395
05396 #ifdef MAP_ISO_DEBUG
05397 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 106 << std::endl;
05398 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 106 << std::endl;
05399 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 106 << std::endl;
05400 #endif
05401 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[1]);
05402
05403 #ifdef MAP_ISO_DEBUG
05404 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 106 << std::endl;
05405 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 106 << std::endl;
05406 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 106 << std::endl;
05407 #endif
05408 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[6]);
05409
05410 #ifdef MAP_ISO_DEBUG
05411 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 106 << std::endl;
05412 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 106 << std::endl;
05413 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 106 << std::endl;
05414 #endif
05415 }
05416
05417 template<>
05418 void AddLinesAndFaces<107>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05419 {
05420 va.AddLine(vertex_id[2],vertex_id[1]);
05421 va.AddLine(vertex_id[6],vertex_id[1]);
05422 va.AddLine(vertex_id[6],vertex_id[2]);
05423 va.AddLine(vertex_id[7],vertex_id[2]);
05424 va.AddLine(vertex_id[7],vertex_id[4]);
05425 va.AddLine(vertex_id[7],vertex_id[6]);
05426 va.AddLine(vertex_id[8],vertex_id[4]);
05427 va.AddLine(vertex_id[10],vertex_id[2]);
05428 va.AddLine(vertex_id[10],vertex_id[6]);
05429 va.AddLine(vertex_id[10],vertex_id[7]);
05430 va.AddLine(vertex_id[10],vertex_id[8]);
05431 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[1]);
05432
05433 #ifdef MAP_ISO_DEBUG
05434 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 107 << std::endl;
05435 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 107 << std::endl;
05436 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 107 << std::endl;
05437 #endif
05438 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
05439
05440 #ifdef MAP_ISO_DEBUG
05441 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 107 << std::endl;
05442 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 107 << std::endl;
05443 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 107 << std::endl;
05444 #endif
05445 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
05446
05447 #ifdef MAP_ISO_DEBUG
05448 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 107 << std::endl;
05449 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 107 << std::endl;
05450 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 107 << std::endl;
05451 #endif
05452 va.AddTriN(vertex_id[10],vertex_id[4],vertex_id[8]);
05453
05454 #ifdef MAP_ISO_DEBUG
05455 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 107 << std::endl;
05456 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 107 << std::endl;
05457 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 107 << std::endl;
05458 #endif
05459 va.AddTriN(vertex_id[10],vertex_id[7],vertex_id[4]);
05460
05461 #ifdef MAP_ISO_DEBUG
05462 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 107 << std::endl;
05463 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 107 << std::endl;
05464 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 107 << std::endl;
05465 #endif
05466 }
05467
05468 template<>
05469 void AddLinesAndFaces<108>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05470 {
05471 va.AddLine(vertex_id[3],vertex_id[1]);
05472 va.AddLine(vertex_id[5],vertex_id[1]);
05473 va.AddLine(vertex_id[7],vertex_id[3]);
05474 va.AddLine(vertex_id[8],vertex_id[5]);
05475 va.AddLine(vertex_id[10],vertex_id[7]);
05476 va.AddLine(vertex_id[10],vertex_id[8]);
05477 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[10]);
05478
05479 #ifdef MAP_ISO_DEBUG
05480 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 108 << std::endl;
05481 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 108 << std::endl;
05482 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 108 << std::endl;
05483 #endif
05484 va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[8]);
05485
05486 #ifdef MAP_ISO_DEBUG
05487 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 108 << std::endl;
05488 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 108 << std::endl;
05489 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 108 << std::endl;
05490 #endif
05491 va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[5]);
05492
05493 #ifdef MAP_ISO_DEBUG
05494 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 108 << std::endl;
05495 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 108 << std::endl;
05496 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 108 << std::endl;
05497 #endif
05498 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[1]);
05499
05500 #ifdef MAP_ISO_DEBUG
05501 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 108 << std::endl;
05502 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 108 << std::endl;
05503 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 108 << std::endl;
05504 #endif
05505 }
05506
05507 template<>
05508 void AddLinesAndFaces<109>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05509 {
05510 va.AddLine(vertex_id[1],vertex_id[0]);
05511 va.AddLine(vertex_id[4],vertex_id[0]);
05512 va.AddLine(vertex_id[5],vertex_id[0]);
05513 va.AddLine(vertex_id[5],vertex_id[1]);
05514 va.AddLine(vertex_id[5],vertex_id[4]);
05515 va.AddLine(vertex_id[7],vertex_id[4]);
05516 va.AddLine(vertex_id[8],vertex_id[0]);
05517 va.AddLine(vertex_id[8],vertex_id[4]);
05518 va.AddLine(vertex_id[8],vertex_id[5]);
05519 va.AddLine(vertex_id[10],vertex_id[7]);
05520 va.AddLine(vertex_id[10],vertex_id[8]);
05521 va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[0]);
05522
05523 #ifdef MAP_ISO_DEBUG
05524 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
05525 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 109 << std::endl;
05526 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 109 << std::endl;
05527 #endif
05528 va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[4]);
05529
05530 #ifdef MAP_ISO_DEBUG
05531 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
05532 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 109 << std::endl;
05533 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 109 << std::endl;
05534 #endif
05535 va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[5]);
05536
05537 #ifdef MAP_ISO_DEBUG
05538 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
05539 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 109 << std::endl;
05540 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 109 << std::endl;
05541 #endif
05542 va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[0]);
05543
05544 #ifdef MAP_ISO_DEBUG
05545 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
05546 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 109 << std::endl;
05547 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 109 << std::endl;
05548 #endif
05549 va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[8]);
05550
05551 #ifdef MAP_ISO_DEBUG
05552 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
05553 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 109 << std::endl;
05554 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 109 << std::endl;
05555 #endif
05556 va.AddTriN(vertex_id[1],vertex_id[7],vertex_id[4]);
05557
05558 #ifdef MAP_ISO_DEBUG
05559 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
05560 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 109 << std::endl;
05561 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 109 << std::endl;
05562 #endif
05563 va.AddTriN(vertex_id[1],vertex_id[10],vertex_id[7]);
05564
05565 #ifdef MAP_ISO_DEBUG
05566 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
05567 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 109 << std::endl;
05568 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 109 << std::endl;
05569 #endif
05570 va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[10]);
05571
05572 #ifdef MAP_ISO_DEBUG
05573 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
05574 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 109 << std::endl;
05575 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 109 << std::endl;
05576 #endif
05577 va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[8]);
05578
05579 #ifdef MAP_ISO_DEBUG
05580 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
05581 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 109 << std::endl;
05582 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 109 << std::endl;
05583 #endif
05584 }
05585
05586 template<>
05587 void AddLinesAndFaces<110>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05588 {
05589 va.AddLine(vertex_id[3],vertex_id[0]);
05590 va.AddLine(vertex_id[7],vertex_id[3]);
05591 va.AddLine(vertex_id[8],vertex_id[0]);
05592 va.AddLine(vertex_id[10],vertex_id[7]);
05593 va.AddLine(vertex_id[10],vertex_id[8]);
05594 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[10]);
05595
05596 #ifdef MAP_ISO_DEBUG
05597 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 110 << std::endl;
05598 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 110 << std::endl;
05599 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 110 << std::endl;
05600 #endif
05601 va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[8]);
05602
05603 #ifdef MAP_ISO_DEBUG
05604 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 110 << std::endl;
05605 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 110 << std::endl;
05606 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 110 << std::endl;
05607 #endif
05608 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[0]);
05609
05610 #ifdef MAP_ISO_DEBUG
05611 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 110 << std::endl;
05612 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 110 << std::endl;
05613 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 110 << std::endl;
05614 #endif
05615 }
05616
05617 template<>
05618 void AddLinesAndFaces<111>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05619 {
05620 va.AddLine(vertex_id[7],vertex_id[4]);
05621 va.AddLine(vertex_id[8],vertex_id[4]);
05622 va.AddLine(vertex_id[10],vertex_id[7]);
05623 va.AddLine(vertex_id[10],vertex_id[8]);
05624 va.AddTriN(vertex_id[10],vertex_id[4],vertex_id[8]);
05625
05626 #ifdef MAP_ISO_DEBUG
05627 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 111 << std::endl;
05628 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 111 << std::endl;
05629 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 111 << std::endl;
05630 #endif
05631 va.AddTriN(vertex_id[10],vertex_id[7],vertex_id[4]);
05632
05633 #ifdef MAP_ISO_DEBUG
05634 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 111 << std::endl;
05635 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 111 << std::endl;
05636 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 111 << std::endl;
05637 #endif
05638 }
05639
05640 template<>
05641 void AddLinesAndFaces<112>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05642 {
05643 va.AddLine(vertex_id[5],vertex_id[4]);
05644 va.AddLine(vertex_id[6],vertex_id[5]);
05645 va.AddLine(vertex_id[10],vertex_id[6]);
05646 va.AddLine(vertex_id[11],vertex_id[4]);
05647 va.AddLine(vertex_id[11],vertex_id[10]);
05648 va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[10]);
05649
05650 #ifdef MAP_ISO_DEBUG
05651 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 112 << std::endl;
05652 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 112 << std::endl;
05653 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 112 << std::endl;
05654 #endif
05655 va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[11]);
05656
05657 #ifdef MAP_ISO_DEBUG
05658 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 112 << std::endl;
05659 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 112 << std::endl;
05660 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 112 << std::endl;
05661 #endif
05662 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[4]);
05663
05664 #ifdef MAP_ISO_DEBUG
05665 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 112 << std::endl;
05666 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 112 << std::endl;
05667 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 112 << std::endl;
05668 #endif
05669 }
05670
05671 template<>
05672 void AddLinesAndFaces<113>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05673 {
05674 va.AddLine(vertex_id[3],vertex_id[0]);
05675 va.AddLine(vertex_id[5],vertex_id[0]);
05676 va.AddLine(vertex_id[6],vertex_id[5]);
05677 va.AddLine(vertex_id[10],vertex_id[6]);
05678 va.AddLine(vertex_id[11],vertex_id[3]);
05679 va.AddLine(vertex_id[11],vertex_id[10]);
05680 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[0]);
05681
05682 #ifdef MAP_ISO_DEBUG
05683 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 113 << std::endl;
05684 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 113 << std::endl;
05685 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 113 << std::endl;
05686 #endif
05687 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[5]);
05688
05689 #ifdef MAP_ISO_DEBUG
05690 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 113 << std::endl;
05691 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 113 << std::endl;
05692 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 113 << std::endl;
05693 #endif
05694 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[6]);
05695
05696 #ifdef MAP_ISO_DEBUG
05697 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 113 << std::endl;
05698 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 113 << std::endl;
05699 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 113 << std::endl;
05700 #endif
05701 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[10]);
05702
05703 #ifdef MAP_ISO_DEBUG
05704 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 113 << std::endl;
05705 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 113 << std::endl;
05706 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 113 << std::endl;
05707 #endif
05708 }
05709
05710 template<>
05711 void AddLinesAndFaces<114>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05712 {
05713 va.AddLine(vertex_id[1],vertex_id[0]);
05714 va.AddLine(vertex_id[4],vertex_id[0]);
05715 va.AddLine(vertex_id[6],vertex_id[1]);
05716 va.AddLine(vertex_id[10],vertex_id[6]);
05717 va.AddLine(vertex_id[11],vertex_id[4]);
05718 va.AddLine(vertex_id[11],vertex_id[10]);
05719 va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[10]);
05720
05721 #ifdef MAP_ISO_DEBUG
05722 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 114 << std::endl;
05723 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 114 << std::endl;
05724 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 114 << std::endl;
05725 #endif
05726 va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[11]);
05727
05728 #ifdef MAP_ISO_DEBUG
05729 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 114 << std::endl;
05730 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 114 << std::endl;
05731 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 114 << std::endl;
05732 #endif
05733 va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[4]);
05734
05735 #ifdef MAP_ISO_DEBUG
05736 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 114 << std::endl;
05737 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 114 << std::endl;
05738 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 114 << std::endl;
05739 #endif
05740 va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[0]);
05741
05742 #ifdef MAP_ISO_DEBUG
05743 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 114 << std::endl;
05744 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 114 << std::endl;
05745 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 114 << std::endl;
05746 #endif
05747 }
05748
05749 template<>
05750 void AddLinesAndFaces<115>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05751 {
05752 va.AddLine(vertex_id[3],vertex_id[1]);
05753 va.AddLine(vertex_id[6],vertex_id[1]);
05754 va.AddLine(vertex_id[10],vertex_id[6]);
05755 va.AddLine(vertex_id[11],vertex_id[3]);
05756 va.AddLine(vertex_id[11],vertex_id[10]);
05757 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[1]);
05758
05759 #ifdef MAP_ISO_DEBUG
05760 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 115 << std::endl;
05761 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 115 << std::endl;
05762 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 115 << std::endl;
05763 #endif
05764 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[6]);
05765
05766 #ifdef MAP_ISO_DEBUG
05767 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 115 << std::endl;
05768 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 115 << std::endl;
05769 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 115 << std::endl;
05770 #endif
05771 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[10]);
05772
05773 #ifdef MAP_ISO_DEBUG
05774 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 115 << std::endl;
05775 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 115 << std::endl;
05776 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 115 << std::endl;
05777 #endif
05778 }
05779
05780 template<>
05781 void AddLinesAndFaces<116>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05782 {
05783 va.AddLine(vertex_id[2],vertex_id[1]);
05784 va.AddLine(vertex_id[5],vertex_id[1]);
05785 va.AddLine(vertex_id[5],vertex_id[4]);
05786 va.AddLine(vertex_id[10],vertex_id[2]);
05787 va.AddLine(vertex_id[11],vertex_id[4]);
05788 va.AddLine(vertex_id[11],vertex_id[10]);
05789 va.AddTriN(vertex_id[10],vertex_id[4],vertex_id[11]);
05790
05791 #ifdef MAP_ISO_DEBUG
05792 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 116 << std::endl;
05793 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 116 << std::endl;
05794 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 116 << std::endl;
05795 #endif
05796 va.AddTriN(vertex_id[10],vertex_id[5],vertex_id[4]);
05797
05798 #ifdef MAP_ISO_DEBUG
05799 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 116 << std::endl;
05800 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 116 << std::endl;
05801 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 116 << std::endl;
05802 #endif
05803 va.AddTriN(vertex_id[10],vertex_id[1],vertex_id[5]);
05804
05805 #ifdef MAP_ISO_DEBUG
05806 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 116 << std::endl;
05807 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 116 << std::endl;
05808 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 116 << std::endl;
05809 #endif
05810 va.AddTriN(vertex_id[10],vertex_id[2],vertex_id[1]);
05811
05812 #ifdef MAP_ISO_DEBUG
05813 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 116 << std::endl;
05814 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 116 << std::endl;
05815 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 116 << std::endl;
05816 #endif
05817 }
05818
05819 template<>
05820 void AddLinesAndFaces<117>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05821 {
05822 va.AddLine(vertex_id[1],vertex_id[0]);
05823 va.AddLine(vertex_id[2],vertex_id[0]);
05824 va.AddLine(vertex_id[2],vertex_id[1]);
05825 va.AddLine(vertex_id[3],vertex_id[0]);
05826 va.AddLine(vertex_id[3],vertex_id[1]);
05827 va.AddLine(vertex_id[3],vertex_id[2]);
05828 va.AddLine(vertex_id[5],vertex_id[0]);
05829 va.AddLine(vertex_id[5],vertex_id[1]);
05830 va.AddLine(vertex_id[10],vertex_id[2]);
05831 va.AddLine(vertex_id[11],vertex_id[3]);
05832 va.AddLine(vertex_id[11],vertex_id[10]);
05833 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
05834
05835 #ifdef MAP_ISO_DEBUG
05836 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 117 << std::endl;
05837 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 117 << std::endl;
05838 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 117 << std::endl;
05839 #endif
05840 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[0]);
05841
05842 #ifdef MAP_ISO_DEBUG
05843 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 117 << std::endl;
05844 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 117 << std::endl;
05845 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 117 << std::endl;
05846 #endif
05847 va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[5]);
05848
05849 #ifdef MAP_ISO_DEBUG
05850 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 117 << std::endl;
05851 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 117 << std::endl;
05852 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 117 << std::endl;
05853 #endif
05854 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
05855
05856 #ifdef MAP_ISO_DEBUG
05857 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 117 << std::endl;
05858 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 117 << std::endl;
05859 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 117 << std::endl;
05860 #endif
05861 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[10]);
05862
05863 #ifdef MAP_ISO_DEBUG
05864 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 117 << std::endl;
05865 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 117 << std::endl;
05866 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 117 << std::endl;
05867 #endif
05868 }
05869
05870 template<>
05871 void AddLinesAndFaces<118>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05872 {
05873 va.AddLine(vertex_id[2],vertex_id[0]);
05874 va.AddLine(vertex_id[4],vertex_id[0]);
05875 va.AddLine(vertex_id[10],vertex_id[2]);
05876 va.AddLine(vertex_id[11],vertex_id[4]);
05877 va.AddLine(vertex_id[11],vertex_id[10]);
05878 va.AddTriN(vertex_id[10],vertex_id[4],vertex_id[11]);
05879
05880 #ifdef MAP_ISO_DEBUG
05881 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 118 << std::endl;
05882 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 118 << std::endl;
05883 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 118 << std::endl;
05884 #endif
05885 va.AddTriN(vertex_id[10],vertex_id[0],vertex_id[4]);
05886
05887 #ifdef MAP_ISO_DEBUG
05888 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 118 << std::endl;
05889 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 118 << std::endl;
05890 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 118 << std::endl;
05891 #endif
05892 va.AddTriN(vertex_id[10],vertex_id[2],vertex_id[0]);
05893
05894 #ifdef MAP_ISO_DEBUG
05895 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 118 << std::endl;
05896 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 118 << std::endl;
05897 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 118 << std::endl;
05898 #endif
05899 }
05900
05901 template<>
05902 void AddLinesAndFaces<119>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05903 {
05904 va.AddLine(vertex_id[3],vertex_id[2]);
05905 va.AddLine(vertex_id[10],vertex_id[2]);
05906 va.AddLine(vertex_id[11],vertex_id[3]);
05907 va.AddLine(vertex_id[11],vertex_id[10]);
05908 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
05909
05910 #ifdef MAP_ISO_DEBUG
05911 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 119 << std::endl;
05912 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 119 << std::endl;
05913 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 119 << std::endl;
05914 #endif
05915 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[10]);
05916
05917 #ifdef MAP_ISO_DEBUG
05918 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 119 << std::endl;
05919 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 119 << std::endl;
05920 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 119 << std::endl;
05921 #endif
05922 }
05923
05924 template<>
05925 void AddLinesAndFaces<120>(IndexedVertexArray& va,unsigned int vertex_id[12] )
05926 {
05927 va.AddLine(vertex_id[3],vertex_id[2]);
05928 va.AddLine(vertex_id[4],vertex_id[3]);
05929 va.AddLine(vertex_id[5],vertex_id[4]);
05930 va.AddLine(vertex_id[6],vertex_id[2]);
05931 va.AddLine(vertex_id[6],vertex_id[5]);
05932 va.AddLine(vertex_id[7],vertex_id[2]);
05933 va.AddLine(vertex_id[7],vertex_id[3]);
05934 va.AddLine(vertex_id[7],vertex_id[4]);
05935 va.AddLine(vertex_id[7],vertex_id[6]);
05936 va.AddLine(vertex_id[10],vertex_id[2]);
05937 va.AddLine(vertex_id[10],vertex_id[6]);
05938 va.AddLine(vertex_id[10],vertex_id[7]);
05939 va.AddLine(vertex_id[11],vertex_id[3]);
05940 va.AddLine(vertex_id[11],vertex_id[4]);
05941 va.AddLine(vertex_id[11],vertex_id[7]);
05942 va.AddLine(vertex_id[11],vertex_id[10]);
05943 va.AddTriN(vertex_id[4],vertex_id[6],vertex_id[5]);
05944
05945 #ifdef MAP_ISO_DEBUG
05946 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 120 << std::endl;
05947 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 120 << std::endl;
05948 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 120 << std::endl;
05949 #endif
05950 va.AddTriN(vertex_id[4],vertex_id[2],vertex_id[6]);
05951
05952 #ifdef MAP_ISO_DEBUG
05953 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 120 << std::endl;
05954 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 120 << std::endl;
05955 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 120 << std::endl;
05956 #endif
05957 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[2]);
05958
05959 #ifdef MAP_ISO_DEBUG
05960 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 120 << std::endl;
05961 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 120 << std::endl;
05962 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 120 << std::endl;
05963 #endif
05964 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
05965
05966 #ifdef MAP_ISO_DEBUG
05967 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 120 << std::endl;
05968 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 120 << std::endl;
05969 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 120 << std::endl;
05970 #endif
05971 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
05972
05973 #ifdef MAP_ISO_DEBUG
05974 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 120 << std::endl;
05975 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 120 << std::endl;
05976 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 120 << std::endl;
05977 #endif
05978 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
05979
05980 #ifdef MAP_ISO_DEBUG
05981 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 120 << std::endl;
05982 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 120 << std::endl;
05983 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 120 << std::endl;
05984 #endif
05985 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
05986
05987 #ifdef MAP_ISO_DEBUG
05988 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 120 << std::endl;
05989 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 120 << std::endl;
05990 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 120 << std::endl;
05991 #endif
05992 va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[7]);
05993
05994 #ifdef MAP_ISO_DEBUG
05995 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 120 << std::endl;
05996 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 120 << std::endl;
05997 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 120 << std::endl;
05998 #endif
05999 }
06000
06001 template<>
06002 void AddLinesAndFaces<121>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06003 {
06004 va.AddLine(vertex_id[2],vertex_id[0]);
06005 va.AddLine(vertex_id[5],vertex_id[0]);
06006 va.AddLine(vertex_id[6],vertex_id[2]);
06007 va.AddLine(vertex_id[6],vertex_id[5]);
06008 va.AddLine(vertex_id[7],vertex_id[2]);
06009 va.AddLine(vertex_id[7],vertex_id[6]);
06010 va.AddLine(vertex_id[10],vertex_id[2]);
06011 va.AddLine(vertex_id[10],vertex_id[6]);
06012 va.AddLine(vertex_id[10],vertex_id[7]);
06013 va.AddLine(vertex_id[11],vertex_id[7]);
06014 va.AddLine(vertex_id[11],vertex_id[10]);
06015 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[0]);
06016
06017 #ifdef MAP_ISO_DEBUG
06018 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 121 << std::endl;
06019 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 121 << std::endl;
06020 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 121 << std::endl;
06021 #endif
06022 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[5]);
06023
06024 #ifdef MAP_ISO_DEBUG
06025 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 121 << std::endl;
06026 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 121 << std::endl;
06027 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 121 << std::endl;
06028 #endif
06029 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
06030
06031 #ifdef MAP_ISO_DEBUG
06032 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 121 << std::endl;
06033 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 121 << std::endl;
06034 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 121 << std::endl;
06035 #endif
06036 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
06037
06038 #ifdef MAP_ISO_DEBUG
06039 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 121 << std::endl;
06040 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 121 << std::endl;
06041 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 121 << std::endl;
06042 #endif
06043 va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[7]);
06044
06045 #ifdef MAP_ISO_DEBUG
06046 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 121 << std::endl;
06047 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 121 << std::endl;
06048 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 121 << std::endl;
06049 #endif
06050 }
06051
06052 template<>
06053 void AddLinesAndFaces<122>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06054 {
06055 va.AddLine(vertex_id[1],vertex_id[0]);
06056 va.AddLine(vertex_id[2],vertex_id[0]);
06057 va.AddLine(vertex_id[2],vertex_id[1]);
06058 va.AddLine(vertex_id[3],vertex_id[0]);
06059 va.AddLine(vertex_id[3],vertex_id[1]);
06060 va.AddLine(vertex_id[3],vertex_id[2]);
06061 va.AddLine(vertex_id[4],vertex_id[0]);
06062 va.AddLine(vertex_id[4],vertex_id[3]);
06063 va.AddLine(vertex_id[6],vertex_id[1]);
06064 va.AddLine(vertex_id[6],vertex_id[2]);
06065 va.AddLine(vertex_id[7],vertex_id[2]);
06066 va.AddLine(vertex_id[7],vertex_id[3]);
06067 va.AddLine(vertex_id[7],vertex_id[4]);
06068 va.AddLine(vertex_id[7],vertex_id[6]);
06069 va.AddLine(vertex_id[10],vertex_id[2]);
06070 va.AddLine(vertex_id[10],vertex_id[6]);
06071 va.AddLine(vertex_id[10],vertex_id[7]);
06072 va.AddLine(vertex_id[11],vertex_id[3]);
06073 va.AddLine(vertex_id[11],vertex_id[4]);
06074 va.AddLine(vertex_id[11],vertex_id[7]);
06075 va.AddLine(vertex_id[11],vertex_id[10]);
06076 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
06077
06078 #ifdef MAP_ISO_DEBUG
06079 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 122 << std::endl;
06080 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 122 << std::endl;
06081 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 122 << std::endl;
06082 #endif
06083 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
06084
06085 #ifdef MAP_ISO_DEBUG
06086 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 122 << std::endl;
06087 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 122 << std::endl;
06088 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 122 << std::endl;
06089 #endif
06090 va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[6]);
06091
06092 #ifdef MAP_ISO_DEBUG
06093 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 122 << std::endl;
06094 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 122 << std::endl;
06095 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 122 << std::endl;
06096 #endif
06097 va.AddTriN(vertex_id[2],vertex_id[3],vertex_id[1]);
06098
06099 #ifdef MAP_ISO_DEBUG
06100 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 122 << std::endl;
06101 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 122 << std::endl;
06102 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 122 << std::endl;
06103 #endif
06104 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
06105
06106 #ifdef MAP_ISO_DEBUG
06107 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 122 << std::endl;
06108 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 122 << std::endl;
06109 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 122 << std::endl;
06110 #endif
06111 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
06112
06113 #ifdef MAP_ISO_DEBUG
06114 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 122 << std::endl;
06115 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 122 << std::endl;
06116 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 122 << std::endl;
06117 #endif
06118 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
06119
06120 #ifdef MAP_ISO_DEBUG
06121 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 122 << std::endl;
06122 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 122 << std::endl;
06123 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 122 << std::endl;
06124 #endif
06125 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
06126
06127 #ifdef MAP_ISO_DEBUG
06128 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 122 << std::endl;
06129 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 122 << std::endl;
06130 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 122 << std::endl;
06131 #endif
06132 va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[7]);
06133
06134 #ifdef MAP_ISO_DEBUG
06135 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 122 << std::endl;
06136 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 122 << std::endl;
06137 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 122 << std::endl;
06138 #endif
06139 }
06140
06141 template<>
06142 void AddLinesAndFaces<123>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06143 {
06144 va.AddLine(vertex_id[2],vertex_id[1]);
06145 va.AddLine(vertex_id[6],vertex_id[1]);
06146 va.AddLine(vertex_id[6],vertex_id[2]);
06147 va.AddLine(vertex_id[7],vertex_id[2]);
06148 va.AddLine(vertex_id[7],vertex_id[6]);
06149 va.AddLine(vertex_id[10],vertex_id[2]);
06150 va.AddLine(vertex_id[10],vertex_id[6]);
06151 va.AddLine(vertex_id[10],vertex_id[7]);
06152 va.AddLine(vertex_id[11],vertex_id[7]);
06153 va.AddLine(vertex_id[11],vertex_id[10]);
06154 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[1]);
06155
06156 #ifdef MAP_ISO_DEBUG
06157 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 123 << std::endl;
06158 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 123 << std::endl;
06159 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 123 << std::endl;
06160 #endif
06161 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
06162
06163 #ifdef MAP_ISO_DEBUG
06164 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 123 << std::endl;
06165 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 123 << std::endl;
06166 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 123 << std::endl;
06167 #endif
06168 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
06169
06170 #ifdef MAP_ISO_DEBUG
06171 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 123 << std::endl;
06172 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 123 << std::endl;
06173 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 123 << std::endl;
06174 #endif
06175 va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[7]);
06176
06177 #ifdef MAP_ISO_DEBUG
06178 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 123 << std::endl;
06179 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 123 << std::endl;
06180 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 123 << std::endl;
06181 #endif
06182 }
06183
06184 template<>
06185 void AddLinesAndFaces<124>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06186 {
06187 va.AddLine(vertex_id[3],vertex_id[1]);
06188 va.AddLine(vertex_id[4],vertex_id[3]);
06189 va.AddLine(vertex_id[5],vertex_id[1]);
06190 va.AddLine(vertex_id[5],vertex_id[4]);
06191 va.AddLine(vertex_id[7],vertex_id[3]);
06192 va.AddLine(vertex_id[7],vertex_id[4]);
06193 va.AddLine(vertex_id[10],vertex_id[7]);
06194 va.AddLine(vertex_id[11],vertex_id[3]);
06195 va.AddLine(vertex_id[11],vertex_id[4]);
06196 va.AddLine(vertex_id[11],vertex_id[7]);
06197 va.AddLine(vertex_id[11],vertex_id[10]);
06198 va.AddTriN(vertex_id[4],vertex_id[1],vertex_id[5]);
06199
06200 #ifdef MAP_ISO_DEBUG
06201 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 124 << std::endl;
06202 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 124 << std::endl;
06203 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 124 << std::endl;
06204 #endif
06205 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[1]);
06206
06207 #ifdef MAP_ISO_DEBUG
06208 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 124 << std::endl;
06209 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 124 << std::endl;
06210 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 124 << std::endl;
06211 #endif
06212 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
06213
06214 #ifdef MAP_ISO_DEBUG
06215 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 124 << std::endl;
06216 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 124 << std::endl;
06217 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 124 << std::endl;
06218 #endif
06219 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
06220
06221 #ifdef MAP_ISO_DEBUG
06222 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 124 << std::endl;
06223 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 124 << std::endl;
06224 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 124 << std::endl;
06225 #endif
06226 va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[7]);
06227
06228 #ifdef MAP_ISO_DEBUG
06229 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 124 << std::endl;
06230 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 124 << std::endl;
06231 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 124 << std::endl;
06232 #endif
06233 }
06234
06235 template<>
06236 void AddLinesAndFaces<125>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06237 {
06238 va.AddLine(vertex_id[1],vertex_id[0]);
06239 va.AddLine(vertex_id[5],vertex_id[0]);
06240 va.AddLine(vertex_id[5],vertex_id[1]);
06241 va.AddLine(vertex_id[10],vertex_id[7]);
06242 va.AddLine(vertex_id[11],vertex_id[7]);
06243 va.AddLine(vertex_id[11],vertex_id[10]);
06244 va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[0]);
06245
06246 #ifdef MAP_ISO_DEBUG
06247 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 125 << std::endl;
06248 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 125 << std::endl;
06249 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 125 << std::endl;
06250 #endif
06251 va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[7]);
06252
06253 #ifdef MAP_ISO_DEBUG
06254 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 125 << std::endl;
06255 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 125 << std::endl;
06256 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 125 << std::endl;
06257 #endif
06258 }
06259
06260 template<>
06261 void AddLinesAndFaces<126>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06262 {
06263 va.AddLine(vertex_id[3],vertex_id[0]);
06264 va.AddLine(vertex_id[4],vertex_id[0]);
06265 va.AddLine(vertex_id[4],vertex_id[3]);
06266 va.AddLine(vertex_id[7],vertex_id[3]);
06267 va.AddLine(vertex_id[7],vertex_id[4]);
06268 va.AddLine(vertex_id[10],vertex_id[7]);
06269 va.AddLine(vertex_id[11],vertex_id[3]);
06270 va.AddLine(vertex_id[11],vertex_id[4]);
06271 va.AddLine(vertex_id[11],vertex_id[7]);
06272 va.AddLine(vertex_id[11],vertex_id[10]);
06273 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
06274
06275 #ifdef MAP_ISO_DEBUG
06276 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 126 << std::endl;
06277 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 126 << std::endl;
06278 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 126 << std::endl;
06279 #endif
06280 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
06281
06282 #ifdef MAP_ISO_DEBUG
06283 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 126 << std::endl;
06284 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 126 << std::endl;
06285 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 126 << std::endl;
06286 #endif
06287 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
06288
06289 #ifdef MAP_ISO_DEBUG
06290 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 126 << std::endl;
06291 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 126 << std::endl;
06292 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 126 << std::endl;
06293 #endif
06294 va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[7]);
06295
06296 #ifdef MAP_ISO_DEBUG
06297 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 126 << std::endl;
06298 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 126 << std::endl;
06299 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 126 << std::endl;
06300 #endif
06301 }
06302
06303 template<>
06304 void AddLinesAndFaces<127>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06305 {
06306 va.AddLine(vertex_id[10],vertex_id[7]);
06307 va.AddLine(vertex_id[11],vertex_id[7]);
06308 va.AddLine(vertex_id[11],vertex_id[10]);
06309 va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[7]);
06310
06311 #ifdef MAP_ISO_DEBUG
06312 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 127 << std::endl;
06313 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 127 << std::endl;
06314 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 127 << std::endl;
06315 #endif
06316 }
06317
06318 template<>
06319 void AddLinesAndFaces<128>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06320 {
06321 va.AddLine(vertex_id[10],vertex_id[7]);
06322 va.AddLine(vertex_id[11],vertex_id[7]);
06323 va.AddLine(vertex_id[11],vertex_id[10]);
06324 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
06325
06326 #ifdef MAP_ISO_DEBUG
06327 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 128 << std::endl;
06328 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 128 << std::endl;
06329 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 128 << std::endl;
06330 #endif
06331 }
06332
06333 template<>
06334 void AddLinesAndFaces<129>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06335 {
06336 va.AddLine(vertex_id[3],vertex_id[0]);
06337 va.AddLine(vertex_id[4],vertex_id[0]);
06338 va.AddLine(vertex_id[4],vertex_id[3]);
06339 va.AddLine(vertex_id[7],vertex_id[3]);
06340 va.AddLine(vertex_id[7],vertex_id[4]);
06341 va.AddLine(vertex_id[10],vertex_id[7]);
06342 va.AddLine(vertex_id[11],vertex_id[3]);
06343 va.AddLine(vertex_id[11],vertex_id[4]);
06344 va.AddLine(vertex_id[11],vertex_id[7]);
06345 va.AddLine(vertex_id[11],vertex_id[10]);
06346 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
06347
06348 #ifdef MAP_ISO_DEBUG
06349 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 129 << std::endl;
06350 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 129 << std::endl;
06351 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 129 << std::endl;
06352 #endif
06353 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
06354
06355 #ifdef MAP_ISO_DEBUG
06356 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 129 << std::endl;
06357 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 129 << std::endl;
06358 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 129 << std::endl;
06359 #endif
06360 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
06361
06362 #ifdef MAP_ISO_DEBUG
06363 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 129 << std::endl;
06364 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 129 << std::endl;
06365 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 129 << std::endl;
06366 #endif
06367 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
06368
06369 #ifdef MAP_ISO_DEBUG
06370 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 129 << std::endl;
06371 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 129 << std::endl;
06372 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 129 << std::endl;
06373 #endif
06374 }
06375
06376 template<>
06377 void AddLinesAndFaces<130>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06378 {
06379 va.AddLine(vertex_id[1],vertex_id[0]);
06380 va.AddLine(vertex_id[5],vertex_id[0]);
06381 va.AddLine(vertex_id[5],vertex_id[1]);
06382 va.AddLine(vertex_id[10],vertex_id[7]);
06383 va.AddLine(vertex_id[11],vertex_id[7]);
06384 va.AddLine(vertex_id[11],vertex_id[10]);
06385 va.AddTriN(vertex_id[5],vertex_id[1],vertex_id[0]);
06386
06387 #ifdef MAP_ISO_DEBUG
06388 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 130 << std::endl;
06389 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 130 << std::endl;
06390 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 130 << std::endl;
06391 #endif
06392 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
06393
06394 #ifdef MAP_ISO_DEBUG
06395 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 130 << std::endl;
06396 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 130 << std::endl;
06397 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 130 << std::endl;
06398 #endif
06399 }
06400
06401 template<>
06402 void AddLinesAndFaces<131>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06403 {
06404 va.AddLine(vertex_id[3],vertex_id[1]);
06405 va.AddLine(vertex_id[4],vertex_id[3]);
06406 va.AddLine(vertex_id[5],vertex_id[1]);
06407 va.AddLine(vertex_id[5],vertex_id[4]);
06408 va.AddLine(vertex_id[7],vertex_id[3]);
06409 va.AddLine(vertex_id[7],vertex_id[4]);
06410 va.AddLine(vertex_id[10],vertex_id[7]);
06411 va.AddLine(vertex_id[11],vertex_id[3]);
06412 va.AddLine(vertex_id[11],vertex_id[4]);
06413 va.AddLine(vertex_id[11],vertex_id[7]);
06414 va.AddLine(vertex_id[11],vertex_id[10]);
06415 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
06416
06417 #ifdef MAP_ISO_DEBUG
06418 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 131 << std::endl;
06419 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 131 << std::endl;
06420 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 131 << std::endl;
06421 #endif
06422 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[5]);
06423
06424 #ifdef MAP_ISO_DEBUG
06425 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 131 << std::endl;
06426 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 131 << std::endl;
06427 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 131 << std::endl;
06428 #endif
06429 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
06430
06431 #ifdef MAP_ISO_DEBUG
06432 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 131 << std::endl;
06433 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 131 << std::endl;
06434 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 131 << std::endl;
06435 #endif
06436 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
06437
06438 #ifdef MAP_ISO_DEBUG
06439 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 131 << std::endl;
06440 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 131 << std::endl;
06441 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 131 << std::endl;
06442 #endif
06443 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
06444
06445 #ifdef MAP_ISO_DEBUG
06446 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 131 << std::endl;
06447 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 131 << std::endl;
06448 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 131 << std::endl;
06449 #endif
06450 }
06451
06452 template<>
06453 void AddLinesAndFaces<132>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06454 {
06455 va.AddLine(vertex_id[2],vertex_id[1]);
06456 va.AddLine(vertex_id[6],vertex_id[1]);
06457 va.AddLine(vertex_id[6],vertex_id[2]);
06458 va.AddLine(vertex_id[7],vertex_id[2]);
06459 va.AddLine(vertex_id[7],vertex_id[6]);
06460 va.AddLine(vertex_id[10],vertex_id[2]);
06461 va.AddLine(vertex_id[10],vertex_id[6]);
06462 va.AddLine(vertex_id[10],vertex_id[7]);
06463 va.AddLine(vertex_id[11],vertex_id[7]);
06464 va.AddLine(vertex_id[11],vertex_id[10]);
06465 va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[1]);
06466
06467 #ifdef MAP_ISO_DEBUG
06468 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 132 << std::endl;
06469 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 132 << std::endl;
06470 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 132 << std::endl;
06471 #endif
06472 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
06473
06474 #ifdef MAP_ISO_DEBUG
06475 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 132 << std::endl;
06476 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 132 << std::endl;
06477 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 132 << std::endl;
06478 #endif
06479 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
06480
06481 #ifdef MAP_ISO_DEBUG
06482 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 132 << std::endl;
06483 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 132 << std::endl;
06484 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 132 << std::endl;
06485 #endif
06486 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
06487
06488 #ifdef MAP_ISO_DEBUG
06489 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 132 << std::endl;
06490 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 132 << std::endl;
06491 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 132 << std::endl;
06492 #endif
06493 }
06494
06495 template<>
06496 void AddLinesAndFaces<133>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06497 {
06498 va.AddLine(vertex_id[1],vertex_id[0]);
06499 va.AddLine(vertex_id[2],vertex_id[0]);
06500 va.AddLine(vertex_id[2],vertex_id[1]);
06501 va.AddLine(vertex_id[3],vertex_id[0]);
06502 va.AddLine(vertex_id[3],vertex_id[1]);
06503 va.AddLine(vertex_id[3],vertex_id[2]);
06504 va.AddLine(vertex_id[4],vertex_id[0]);
06505 va.AddLine(vertex_id[4],vertex_id[3]);
06506 va.AddLine(vertex_id[6],vertex_id[1]);
06507 va.AddLine(vertex_id[6],vertex_id[2]);
06508 va.AddLine(vertex_id[7],vertex_id[2]);
06509 va.AddLine(vertex_id[7],vertex_id[3]);
06510 va.AddLine(vertex_id[7],vertex_id[4]);
06511 va.AddLine(vertex_id[7],vertex_id[6]);
06512 va.AddLine(vertex_id[10],vertex_id[2]);
06513 va.AddLine(vertex_id[10],vertex_id[6]);
06514 va.AddLine(vertex_id[10],vertex_id[7]);
06515 va.AddLine(vertex_id[11],vertex_id[3]);
06516 va.AddLine(vertex_id[11],vertex_id[4]);
06517 va.AddLine(vertex_id[11],vertex_id[7]);
06518 va.AddLine(vertex_id[11],vertex_id[10]);
06519 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
06520
06521 #ifdef MAP_ISO_DEBUG
06522 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 133 << std::endl;
06523 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 133 << std::endl;
06524 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 133 << std::endl;
06525 #endif
06526 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
06527
06528 #ifdef MAP_ISO_DEBUG
06529 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 133 << std::endl;
06530 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 133 << std::endl;
06531 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 133 << std::endl;
06532 #endif
06533 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[1]);
06534
06535 #ifdef MAP_ISO_DEBUG
06536 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 133 << std::endl;
06537 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 133 << std::endl;
06538 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 133 << std::endl;
06539 #endif
06540 va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[6]);
06541
06542 #ifdef MAP_ISO_DEBUG
06543 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 133 << std::endl;
06544 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 133 << std::endl;
06545 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 133 << std::endl;
06546 #endif
06547 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
06548
06549 #ifdef MAP_ISO_DEBUG
06550 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 133 << std::endl;
06551 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 133 << std::endl;
06552 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 133 << std::endl;
06553 #endif
06554 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
06555
06556 #ifdef MAP_ISO_DEBUG
06557 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 133 << std::endl;
06558 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 133 << std::endl;
06559 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 133 << std::endl;
06560 #endif
06561 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
06562
06563 #ifdef MAP_ISO_DEBUG
06564 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 133 << std::endl;
06565 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 133 << std::endl;
06566 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 133 << std::endl;
06567 #endif
06568 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
06569
06570 #ifdef MAP_ISO_DEBUG
06571 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 133 << std::endl;
06572 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 133 << std::endl;
06573 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 133 << std::endl;
06574 #endif
06575 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
06576
06577 #ifdef MAP_ISO_DEBUG
06578 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 133 << std::endl;
06579 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 133 << std::endl;
06580 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 133 << std::endl;
06581 #endif
06582 }
06583
06584 template<>
06585 void AddLinesAndFaces<134>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06586 {
06587 va.AddLine(vertex_id[2],vertex_id[0]);
06588 va.AddLine(vertex_id[5],vertex_id[0]);
06589 va.AddLine(vertex_id[6],vertex_id[2]);
06590 va.AddLine(vertex_id[6],vertex_id[5]);
06591 va.AddLine(vertex_id[7],vertex_id[2]);
06592 va.AddLine(vertex_id[7],vertex_id[6]);
06593 va.AddLine(vertex_id[10],vertex_id[2]);
06594 va.AddLine(vertex_id[10],vertex_id[6]);
06595 va.AddLine(vertex_id[10],vertex_id[7]);
06596 va.AddLine(vertex_id[11],vertex_id[7]);
06597 va.AddLine(vertex_id[11],vertex_id[10]);
06598 va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[5]);
06599
06600 #ifdef MAP_ISO_DEBUG
06601 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 134 << std::endl;
06602 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 134 << std::endl;
06603 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 134 << std::endl;
06604 #endif
06605 va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[0]);
06606
06607 #ifdef MAP_ISO_DEBUG
06608 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 134 << std::endl;
06609 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 134 << std::endl;
06610 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 134 << std::endl;
06611 #endif
06612 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
06613
06614 #ifdef MAP_ISO_DEBUG
06615 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 134 << std::endl;
06616 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 134 << std::endl;
06617 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 134 << std::endl;
06618 #endif
06619 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
06620
06621 #ifdef MAP_ISO_DEBUG
06622 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 134 << std::endl;
06623 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 134 << std::endl;
06624 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 134 << std::endl;
06625 #endif
06626 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
06627
06628 #ifdef MAP_ISO_DEBUG
06629 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 134 << std::endl;
06630 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 134 << std::endl;
06631 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 134 << std::endl;
06632 #endif
06633 }
06634
06635 template<>
06636 void AddLinesAndFaces<135>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06637 {
06638 va.AddLine(vertex_id[3],vertex_id[2]);
06639 va.AddLine(vertex_id[4],vertex_id[3]);
06640 va.AddLine(vertex_id[5],vertex_id[4]);
06641 va.AddLine(vertex_id[6],vertex_id[2]);
06642 va.AddLine(vertex_id[6],vertex_id[5]);
06643 va.AddLine(vertex_id[7],vertex_id[2]);
06644 va.AddLine(vertex_id[7],vertex_id[3]);
06645 va.AddLine(vertex_id[7],vertex_id[4]);
06646 va.AddLine(vertex_id[7],vertex_id[6]);
06647 va.AddLine(vertex_id[10],vertex_id[2]);
06648 va.AddLine(vertex_id[10],vertex_id[6]);
06649 va.AddLine(vertex_id[10],vertex_id[7]);
06650 va.AddLine(vertex_id[11],vertex_id[3]);
06651 va.AddLine(vertex_id[11],vertex_id[4]);
06652 va.AddLine(vertex_id[11],vertex_id[7]);
06653 va.AddLine(vertex_id[11],vertex_id[10]);
06654 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
06655
06656 #ifdef MAP_ISO_DEBUG
06657 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 135 << std::endl;
06658 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 135 << std::endl;
06659 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 135 << std::endl;
06660 #endif
06661 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[6]);
06662
06663 #ifdef MAP_ISO_DEBUG
06664 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 135 << std::endl;
06665 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 135 << std::endl;
06666 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 135 << std::endl;
06667 #endif
06668 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[5]);
06669
06670 #ifdef MAP_ISO_DEBUG
06671 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 135 << std::endl;
06672 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 135 << std::endl;
06673 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 135 << std::endl;
06674 #endif
06675 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
06676
06677 #ifdef MAP_ISO_DEBUG
06678 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 135 << std::endl;
06679 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 135 << std::endl;
06680 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 135 << std::endl;
06681 #endif
06682 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
06683
06684 #ifdef MAP_ISO_DEBUG
06685 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 135 << std::endl;
06686 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 135 << std::endl;
06687 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 135 << std::endl;
06688 #endif
06689 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
06690
06691 #ifdef MAP_ISO_DEBUG
06692 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 135 << std::endl;
06693 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 135 << std::endl;
06694 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 135 << std::endl;
06695 #endif
06696 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
06697
06698 #ifdef MAP_ISO_DEBUG
06699 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 135 << std::endl;
06700 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 135 << std::endl;
06701 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 135 << std::endl;
06702 #endif
06703 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
06704
06705 #ifdef MAP_ISO_DEBUG
06706 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 135 << std::endl;
06707 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 135 << std::endl;
06708 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 135 << std::endl;
06709 #endif
06710 }
06711
06712 template<>
06713 void AddLinesAndFaces<136>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06714 {
06715 va.AddLine(vertex_id[3],vertex_id[2]);
06716 va.AddLine(vertex_id[10],vertex_id[2]);
06717 va.AddLine(vertex_id[11],vertex_id[3]);
06718 va.AddLine(vertex_id[11],vertex_id[10]);
06719 va.AddTriN(vertex_id[11],vertex_id[2],vertex_id[10]);
06720
06721 #ifdef MAP_ISO_DEBUG
06722 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 136 << std::endl;
06723 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 136 << std::endl;
06724 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 136 << std::endl;
06725 #endif
06726 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[2]);
06727
06728 #ifdef MAP_ISO_DEBUG
06729 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 136 << std::endl;
06730 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 136 << std::endl;
06731 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 136 << std::endl;
06732 #endif
06733 }
06734
06735 template<>
06736 void AddLinesAndFaces<137>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06737 {
06738 va.AddLine(vertex_id[2],vertex_id[0]);
06739 va.AddLine(vertex_id[4],vertex_id[0]);
06740 va.AddLine(vertex_id[10],vertex_id[2]);
06741 va.AddLine(vertex_id[11],vertex_id[4]);
06742 va.AddLine(vertex_id[11],vertex_id[10]);
06743 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[0]);
06744
06745 #ifdef MAP_ISO_DEBUG
06746 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 137 << std::endl;
06747 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 137 << std::endl;
06748 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 137 << std::endl;
06749 #endif
06750 va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[4]);
06751
06752 #ifdef MAP_ISO_DEBUG
06753 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 137 << std::endl;
06754 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 137 << std::endl;
06755 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 137 << std::endl;
06756 #endif
06757 va.AddTriN(vertex_id[2],vertex_id[10],vertex_id[11]);
06758
06759 #ifdef MAP_ISO_DEBUG
06760 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 137 << std::endl;
06761 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 137 << std::endl;
06762 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 137 << std::endl;
06763 #endif
06764 }
06765
06766 template<>
06767 void AddLinesAndFaces<138>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06768 {
06769 va.AddLine(vertex_id[1],vertex_id[0]);
06770 va.AddLine(vertex_id[2],vertex_id[0]);
06771 va.AddLine(vertex_id[2],vertex_id[1]);
06772 va.AddLine(vertex_id[3],vertex_id[0]);
06773 va.AddLine(vertex_id[3],vertex_id[1]);
06774 va.AddLine(vertex_id[3],vertex_id[2]);
06775 va.AddLine(vertex_id[5],vertex_id[0]);
06776 va.AddLine(vertex_id[5],vertex_id[1]);
06777 va.AddLine(vertex_id[10],vertex_id[2]);
06778 va.AddLine(vertex_id[11],vertex_id[3]);
06779 va.AddLine(vertex_id[11],vertex_id[10]);
06780 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
06781
06782 #ifdef MAP_ISO_DEBUG
06783 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 138 << std::endl;
06784 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 138 << std::endl;
06785 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 138 << std::endl;
06786 #endif
06787 va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[5]);
06788
06789 #ifdef MAP_ISO_DEBUG
06790 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 138 << std::endl;
06791 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 138 << std::endl;
06792 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 138 << std::endl;
06793 #endif
06794 va.AddTriN(vertex_id[1],vertex_id[3],vertex_id[0]);
06795
06796 #ifdef MAP_ISO_DEBUG
06797 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 138 << std::endl;
06798 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 138 << std::endl;
06799 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 138 << std::endl;
06800 #endif
06801 va.AddTriN(vertex_id[11],vertex_id[2],vertex_id[10]);
06802
06803 #ifdef MAP_ISO_DEBUG
06804 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 138 << std::endl;
06805 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 138 << std::endl;
06806 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 138 << std::endl;
06807 #endif
06808 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[2]);
06809
06810 #ifdef MAP_ISO_DEBUG
06811 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 138 << std::endl;
06812 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 138 << std::endl;
06813 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 138 << std::endl;
06814 #endif
06815 }
06816
06817 template<>
06818 void AddLinesAndFaces<139>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06819 {
06820 va.AddLine(vertex_id[2],vertex_id[1]);
06821 va.AddLine(vertex_id[5],vertex_id[1]);
06822 va.AddLine(vertex_id[5],vertex_id[4]);
06823 va.AddLine(vertex_id[10],vertex_id[2]);
06824 va.AddLine(vertex_id[11],vertex_id[4]);
06825 va.AddLine(vertex_id[11],vertex_id[10]);
06826 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[1]);
06827
06828 #ifdef MAP_ISO_DEBUG
06829 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 139 << std::endl;
06830 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 139 << std::endl;
06831 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 139 << std::endl;
06832 #endif
06833 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[5]);
06834
06835 #ifdef MAP_ISO_DEBUG
06836 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 139 << std::endl;
06837 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 139 << std::endl;
06838 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 139 << std::endl;
06839 #endif
06840 va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[4]);
06841
06842 #ifdef MAP_ISO_DEBUG
06843 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 139 << std::endl;
06844 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 139 << std::endl;
06845 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 139 << std::endl;
06846 #endif
06847 va.AddTriN(vertex_id[2],vertex_id[10],vertex_id[11]);
06848
06849 #ifdef MAP_ISO_DEBUG
06850 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 139 << std::endl;
06851 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 139 << std::endl;
06852 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 139 << std::endl;
06853 #endif
06854 }
06855
06856 template<>
06857 void AddLinesAndFaces<140>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06858 {
06859 va.AddLine(vertex_id[3],vertex_id[1]);
06860 va.AddLine(vertex_id[6],vertex_id[1]);
06861 va.AddLine(vertex_id[10],vertex_id[6]);
06862 va.AddLine(vertex_id[11],vertex_id[3]);
06863 va.AddLine(vertex_id[11],vertex_id[10]);
06864 va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[10]);
06865
06866 #ifdef MAP_ISO_DEBUG
06867 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 140 << std::endl;
06868 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 140 << std::endl;
06869 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 140 << std::endl;
06870 #endif
06871 va.AddTriN(vertex_id[11],vertex_id[1],vertex_id[6]);
06872
06873 #ifdef MAP_ISO_DEBUG
06874 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 140 << std::endl;
06875 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 140 << std::endl;
06876 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 140 << std::endl;
06877 #endif
06878 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[1]);
06879
06880 #ifdef MAP_ISO_DEBUG
06881 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 140 << std::endl;
06882 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 140 << std::endl;
06883 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 140 << std::endl;
06884 #endif
06885 }
06886
06887 template<>
06888 void AddLinesAndFaces<141>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06889 {
06890 va.AddLine(vertex_id[1],vertex_id[0]);
06891 va.AddLine(vertex_id[4],vertex_id[0]);
06892 va.AddLine(vertex_id[6],vertex_id[1]);
06893 va.AddLine(vertex_id[10],vertex_id[6]);
06894 va.AddLine(vertex_id[11],vertex_id[4]);
06895 va.AddLine(vertex_id[11],vertex_id[10]);
06896 va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[0]);
06897
06898 #ifdef MAP_ISO_DEBUG
06899 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 141 << std::endl;
06900 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 141 << std::endl;
06901 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 141 << std::endl;
06902 #endif
06903 va.AddTriN(vertex_id[1],vertex_id[11],vertex_id[4]);
06904
06905 #ifdef MAP_ISO_DEBUG
06906 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 141 << std::endl;
06907 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 141 << std::endl;
06908 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 141 << std::endl;
06909 #endif
06910 va.AddTriN(vertex_id[1],vertex_id[10],vertex_id[11]);
06911
06912 #ifdef MAP_ISO_DEBUG
06913 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 141 << std::endl;
06914 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 141 << std::endl;
06915 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 141 << std::endl;
06916 #endif
06917 va.AddTriN(vertex_id[1],vertex_id[6],vertex_id[10]);
06918
06919 #ifdef MAP_ISO_DEBUG
06920 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 141 << std::endl;
06921 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 141 << std::endl;
06922 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 141 << std::endl;
06923 #endif
06924 }
06925
06926 template<>
06927 void AddLinesAndFaces<142>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06928 {
06929 va.AddLine(vertex_id[3],vertex_id[0]);
06930 va.AddLine(vertex_id[5],vertex_id[0]);
06931 va.AddLine(vertex_id[6],vertex_id[5]);
06932 va.AddLine(vertex_id[10],vertex_id[6]);
06933 va.AddLine(vertex_id[11],vertex_id[3]);
06934 va.AddLine(vertex_id[11],vertex_id[10]);
06935 va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[10]);
06936
06937 #ifdef MAP_ISO_DEBUG
06938 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 142 << std::endl;
06939 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 142 << std::endl;
06940 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 142 << std::endl;
06941 #endif
06942 va.AddTriN(vertex_id[11],vertex_id[5],vertex_id[6]);
06943
06944 #ifdef MAP_ISO_DEBUG
06945 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 142 << std::endl;
06946 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 142 << std::endl;
06947 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 142 << std::endl;
06948 #endif
06949 va.AddTriN(vertex_id[11],vertex_id[0],vertex_id[5]);
06950
06951 #ifdef MAP_ISO_DEBUG
06952 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 142 << std::endl;
06953 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 142 << std::endl;
06954 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 142 << std::endl;
06955 #endif
06956 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[0]);
06957
06958 #ifdef MAP_ISO_DEBUG
06959 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 142 << std::endl;
06960 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 142 << std::endl;
06961 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 142 << std::endl;
06962 #endif
06963 }
06964
06965 template<>
06966 void AddLinesAndFaces<143>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06967 {
06968 va.AddLine(vertex_id[5],vertex_id[4]);
06969 va.AddLine(vertex_id[6],vertex_id[5]);
06970 va.AddLine(vertex_id[10],vertex_id[6]);
06971 va.AddLine(vertex_id[11],vertex_id[4]);
06972 va.AddLine(vertex_id[11],vertex_id[10]);
06973 va.AddTriN(vertex_id[5],vertex_id[11],vertex_id[4]);
06974
06975 #ifdef MAP_ISO_DEBUG
06976 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 143 << std::endl;
06977 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 143 << std::endl;
06978 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 143 << std::endl;
06979 #endif
06980 va.AddTriN(vertex_id[5],vertex_id[10],vertex_id[11]);
06981
06982 #ifdef MAP_ISO_DEBUG
06983 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 143 << std::endl;
06984 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 143 << std::endl;
06985 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 143 << std::endl;
06986 #endif
06987 va.AddTriN(vertex_id[5],vertex_id[6],vertex_id[10]);
06988
06989 #ifdef MAP_ISO_DEBUG
06990 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 143 << std::endl;
06991 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 143 << std::endl;
06992 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 143 << std::endl;
06993 #endif
06994 }
06995
06996 template<>
06997 void AddLinesAndFaces<144>(IndexedVertexArray& va,unsigned int vertex_id[12] )
06998 {
06999 va.AddLine(vertex_id[7],vertex_id[4]);
07000 va.AddLine(vertex_id[8],vertex_id[4]);
07001 va.AddLine(vertex_id[10],vertex_id[7]);
07002 va.AddLine(vertex_id[10],vertex_id[8]);
07003 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[4]);
07004
07005 #ifdef MAP_ISO_DEBUG
07006 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 144 << std::endl;
07007 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 144 << std::endl;
07008 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 144 << std::endl;
07009 #endif
07010 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[8]);
07011
07012 #ifdef MAP_ISO_DEBUG
07013 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 144 << std::endl;
07014 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 144 << std::endl;
07015 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 144 << std::endl;
07016 #endif
07017 }
07018
07019 template<>
07020 void AddLinesAndFaces<145>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07021 {
07022 va.AddLine(vertex_id[3],vertex_id[0]);
07023 va.AddLine(vertex_id[7],vertex_id[3]);
07024 va.AddLine(vertex_id[8],vertex_id[0]);
07025 va.AddLine(vertex_id[10],vertex_id[7]);
07026 va.AddLine(vertex_id[10],vertex_id[8]);
07027 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
07028
07029 #ifdef MAP_ISO_DEBUG
07030 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 145 << std::endl;
07031 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 145 << std::endl;
07032 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 145 << std::endl;
07033 #endif
07034 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[8]);
07035
07036 #ifdef MAP_ISO_DEBUG
07037 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 145 << std::endl;
07038 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 145 << std::endl;
07039 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 145 << std::endl;
07040 #endif
07041 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[10]);
07042
07043 #ifdef MAP_ISO_DEBUG
07044 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 145 << std::endl;
07045 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 145 << std::endl;
07046 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 145 << std::endl;
07047 #endif
07048 }
07049
07050 template<>
07051 void AddLinesAndFaces<146>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07052 {
07053 va.AddLine(vertex_id[1],vertex_id[0]);
07054 va.AddLine(vertex_id[4],vertex_id[0]);
07055 va.AddLine(vertex_id[5],vertex_id[0]);
07056 va.AddLine(vertex_id[5],vertex_id[1]);
07057 va.AddLine(vertex_id[5],vertex_id[4]);
07058 va.AddLine(vertex_id[7],vertex_id[4]);
07059 va.AddLine(vertex_id[8],vertex_id[0]);
07060 va.AddLine(vertex_id[8],vertex_id[4]);
07061 va.AddLine(vertex_id[8],vertex_id[5]);
07062 va.AddLine(vertex_id[10],vertex_id[7]);
07063 va.AddLine(vertex_id[10],vertex_id[8]);
07064 va.AddTriN(vertex_id[5],vertex_id[10],vertex_id[8]);
07065
07066 #ifdef MAP_ISO_DEBUG
07067 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
07068 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 146 << std::endl;
07069 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 146 << std::endl;
07070 #endif
07071 va.AddTriN(vertex_id[5],vertex_id[7],vertex_id[10]);
07072
07073 #ifdef MAP_ISO_DEBUG
07074 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
07075 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 146 << std::endl;
07076 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 146 << std::endl;
07077 #endif
07078 va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[7]);
07079
07080 #ifdef MAP_ISO_DEBUG
07081 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
07082 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 146 << std::endl;
07083 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 146 << std::endl;
07084 #endif
07085 va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[4]);
07086
07087 #ifdef MAP_ISO_DEBUG
07088 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
07089 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 146 << std::endl;
07090 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 146 << std::endl;
07091 #endif
07092 va.AddTriN(vertex_id[5],vertex_id[0],vertex_id[8]);
07093
07094 #ifdef MAP_ISO_DEBUG
07095 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
07096 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 146 << std::endl;
07097 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 146 << std::endl;
07098 #endif
07099 va.AddTriN(vertex_id[5],vertex_id[5],vertex_id[0]);
07100
07101 #ifdef MAP_ISO_DEBUG
07102 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
07103 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
07104 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 146 << std::endl;
07105 #endif
07106 va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[5]);
07107
07108 #ifdef MAP_ISO_DEBUG
07109 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
07110 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 146 << std::endl;
07111 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
07112 #endif
07113 va.AddTriN(vertex_id[5],vertex_id[0],vertex_id[4]);
07114
07115 #ifdef MAP_ISO_DEBUG
07116 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
07117 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 146 << std::endl;
07118 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 146 << std::endl;
07119 #endif
07120 va.AddTriN(vertex_id[5],vertex_id[1],vertex_id[0]);
07121
07122 #ifdef MAP_ISO_DEBUG
07123 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
07124 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 146 << std::endl;
07125 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 146 << std::endl;
07126 #endif
07127 }
07128
07129 template<>
07130 void AddLinesAndFaces<147>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07131 {
07132 va.AddLine(vertex_id[3],vertex_id[1]);
07133 va.AddLine(vertex_id[5],vertex_id[1]);
07134 va.AddLine(vertex_id[7],vertex_id[3]);
07135 va.AddLine(vertex_id[8],vertex_id[5]);
07136 va.AddLine(vertex_id[10],vertex_id[7]);
07137 va.AddLine(vertex_id[10],vertex_id[8]);
07138 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
07139
07140 #ifdef MAP_ISO_DEBUG
07141 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 147 << std::endl;
07142 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 147 << std::endl;
07143 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 147 << std::endl;
07144 #endif
07145 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
07146
07147 #ifdef MAP_ISO_DEBUG
07148 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 147 << std::endl;
07149 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 147 << std::endl;
07150 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 147 << std::endl;
07151 #endif
07152 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[8]);
07153
07154 #ifdef MAP_ISO_DEBUG
07155 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 147 << std::endl;
07156 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 147 << std::endl;
07157 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 147 << std::endl;
07158 #endif
07159 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[10]);
07160
07161 #ifdef MAP_ISO_DEBUG
07162 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 147 << std::endl;
07163 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 147 << std::endl;
07164 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 147 << std::endl;
07165 #endif
07166 }
07167
07168 template<>
07169 void AddLinesAndFaces<148>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07170 {
07171 va.AddLine(vertex_id[2],vertex_id[1]);
07172 va.AddLine(vertex_id[6],vertex_id[1]);
07173 va.AddLine(vertex_id[6],vertex_id[2]);
07174 va.AddLine(vertex_id[7],vertex_id[2]);
07175 va.AddLine(vertex_id[7],vertex_id[4]);
07176 va.AddLine(vertex_id[7],vertex_id[6]);
07177 va.AddLine(vertex_id[8],vertex_id[4]);
07178 va.AddLine(vertex_id[10],vertex_id[2]);
07179 va.AddLine(vertex_id[10],vertex_id[6]);
07180 va.AddLine(vertex_id[10],vertex_id[7]);
07181 va.AddLine(vertex_id[10],vertex_id[8]);
07182 va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[1]);
07183
07184 #ifdef MAP_ISO_DEBUG
07185 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 148 << std::endl;
07186 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 148 << std::endl;
07187 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 148 << std::endl;
07188 #endif
07189 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
07190
07191 #ifdef MAP_ISO_DEBUG
07192 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 148 << std::endl;
07193 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 148 << std::endl;
07194 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 148 << std::endl;
07195 #endif
07196 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
07197
07198 #ifdef MAP_ISO_DEBUG
07199 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 148 << std::endl;
07200 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 148 << std::endl;
07201 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 148 << std::endl;
07202 #endif
07203 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[4]);
07204
07205 #ifdef MAP_ISO_DEBUG
07206 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 148 << std::endl;
07207 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 148 << std::endl;
07208 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 148 << std::endl;
07209 #endif
07210 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[8]);
07211
07212 #ifdef MAP_ISO_DEBUG
07213 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 148 << std::endl;
07214 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 148 << std::endl;
07215 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 148 << std::endl;
07216 #endif
07217 }
07218
07219 template<>
07220 void AddLinesAndFaces<149>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07221 {
07222 va.AddLine(vertex_id[1],vertex_id[0]);
07223 va.AddLine(vertex_id[2],vertex_id[0]);
07224 va.AddLine(vertex_id[2],vertex_id[1]);
07225 va.AddLine(vertex_id[3],vertex_id[0]);
07226 va.AddLine(vertex_id[3],vertex_id[1]);
07227 va.AddLine(vertex_id[3],vertex_id[2]);
07228 va.AddLine(vertex_id[6],vertex_id[1]);
07229 va.AddLine(vertex_id[6],vertex_id[2]);
07230 va.AddLine(vertex_id[7],vertex_id[2]);
07231 va.AddLine(vertex_id[7],vertex_id[3]);
07232 va.AddLine(vertex_id[7],vertex_id[6]);
07233 va.AddLine(vertex_id[8],vertex_id[0]);
07234 va.AddLine(vertex_id[10],vertex_id[2]);
07235 va.AddLine(vertex_id[10],vertex_id[6]);
07236 va.AddLine(vertex_id[10],vertex_id[7]);
07237 va.AddLine(vertex_id[10],vertex_id[8]);
07238 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
07239
07240 #ifdef MAP_ISO_DEBUG
07241 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 149 << std::endl;
07242 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 149 << std::endl;
07243 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 149 << std::endl;
07244 #endif
07245 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
07246
07247 #ifdef MAP_ISO_DEBUG
07248 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 149 << std::endl;
07249 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 149 << std::endl;
07250 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 149 << std::endl;
07251 #endif
07252 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[8]);
07253
07254 #ifdef MAP_ISO_DEBUG
07255 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 149 << std::endl;
07256 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 149 << std::endl;
07257 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 149 << std::endl;
07258 #endif
07259 va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[10]);
07260
07261 #ifdef MAP_ISO_DEBUG
07262 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 149 << std::endl;
07263 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 149 << std::endl;
07264 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 149 << std::endl;
07265 #endif
07266 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[1]);
07267
07268 #ifdef MAP_ISO_DEBUG
07269 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 149 << std::endl;
07270 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 149 << std::endl;
07271 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 149 << std::endl;
07272 #endif
07273 va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[6]);
07274
07275 #ifdef MAP_ISO_DEBUG
07276 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 149 << std::endl;
07277 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 149 << std::endl;
07278 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 149 << std::endl;
07279 #endif
07280 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[2]);
07281
07282 #ifdef MAP_ISO_DEBUG
07283 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 149 << std::endl;
07284 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 149 << std::endl;
07285 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 149 << std::endl;
07286 #endif
07287 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[6]);
07288
07289 #ifdef MAP_ISO_DEBUG
07290 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 149 << std::endl;
07291 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 149 << std::endl;
07292 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 149 << std::endl;
07293 #endif
07294 }
07295
07296 template<>
07297 void AddLinesAndFaces<150>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07298 {
07299 va.AddLine(vertex_id[2],vertex_id[0]);
07300 va.AddLine(vertex_id[4],vertex_id[0]);
07301 va.AddLine(vertex_id[5],vertex_id[0]);
07302 va.AddLine(vertex_id[5],vertex_id[4]);
07303 va.AddLine(vertex_id[6],vertex_id[2]);
07304 va.AddLine(vertex_id[6],vertex_id[5]);
07305 va.AddLine(vertex_id[7],vertex_id[2]);
07306 va.AddLine(vertex_id[7],vertex_id[4]);
07307 va.AddLine(vertex_id[7],vertex_id[6]);
07308 va.AddLine(vertex_id[8],vertex_id[0]);
07309 va.AddLine(vertex_id[8],vertex_id[4]);
07310 va.AddLine(vertex_id[8],vertex_id[5]);
07311 va.AddLine(vertex_id[10],vertex_id[2]);
07312 va.AddLine(vertex_id[10],vertex_id[6]);
07313 va.AddLine(vertex_id[10],vertex_id[7]);
07314 va.AddLine(vertex_id[10],vertex_id[8]);
07315 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[4]);
07316
07317 #ifdef MAP_ISO_DEBUG
07318 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 150 << std::endl;
07319 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 150 << std::endl;
07320 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 150 << std::endl;
07321 #endif
07322 va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[8]);
07323
07324 #ifdef MAP_ISO_DEBUG
07325 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 150 << std::endl;
07326 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 150 << std::endl;
07327 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 150 << std::endl;
07328 #endif
07329 va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[0]);
07330
07331 #ifdef MAP_ISO_DEBUG
07332 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 150 << std::endl;
07333 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 150 << std::endl;
07334 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 150 << std::endl;
07335 #endif
07336 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[5]);
07337
07338 #ifdef MAP_ISO_DEBUG
07339 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 150 << std::endl;
07340 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 150 << std::endl;
07341 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 150 << std::endl;
07342 #endif
07343 va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[4]);
07344
07345 #ifdef MAP_ISO_DEBUG
07346 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 150 << std::endl;
07347 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 150 << std::endl;
07348 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 150 << std::endl;
07349 #endif
07350 va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[0]);
07351
07352 #ifdef MAP_ISO_DEBUG
07353 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 150 << std::endl;
07354 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 150 << std::endl;
07355 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 150 << std::endl;
07356 #endif
07357 va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[2]);
07358
07359 #ifdef MAP_ISO_DEBUG
07360 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 150 << std::endl;
07361 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 150 << std::endl;
07362 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 150 << std::endl;
07363 #endif
07364 va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[5]);
07365
07366 #ifdef MAP_ISO_DEBUG
07367 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 150 << std::endl;
07368 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 150 << std::endl;
07369 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 150 << std::endl;
07370 #endif
07371 va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[8]);
07372
07373 #ifdef MAP_ISO_DEBUG
07374 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 150 << std::endl;
07375 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 150 << std::endl;
07376 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 150 << std::endl;
07377 #endif
07378 va.AddTriN(vertex_id[6],vertex_id[7],vertex_id[10]);
07379
07380 #ifdef MAP_ISO_DEBUG
07381 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 150 << std::endl;
07382 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 150 << std::endl;
07383 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 150 << std::endl;
07384 #endif
07385 }
07386
07387 template<>
07388 void AddLinesAndFaces<151>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07389 {
07390 va.AddLine(vertex_id[3],vertex_id[2]);
07391 va.AddLine(vertex_id[6],vertex_id[2]);
07392 va.AddLine(vertex_id[6],vertex_id[5]);
07393 va.AddLine(vertex_id[7],vertex_id[2]);
07394 va.AddLine(vertex_id[7],vertex_id[3]);
07395 va.AddLine(vertex_id[7],vertex_id[6]);
07396 va.AddLine(vertex_id[8],vertex_id[5]);
07397 va.AddLine(vertex_id[10],vertex_id[2]);
07398 va.AddLine(vertex_id[10],vertex_id[6]);
07399 va.AddLine(vertex_id[10],vertex_id[7]);
07400 va.AddLine(vertex_id[10],vertex_id[8]);
07401 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
07402
07403 #ifdef MAP_ISO_DEBUG
07404 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 151 << std::endl;
07405 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 151 << std::endl;
07406 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 151 << std::endl;
07407 #endif
07408 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[6]);
07409
07410 #ifdef MAP_ISO_DEBUG
07411 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 151 << std::endl;
07412 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 151 << std::endl;
07413 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 151 << std::endl;
07414 #endif
07415 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
07416
07417 #ifdef MAP_ISO_DEBUG
07418 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 151 << std::endl;
07419 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 151 << std::endl;
07420 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 151 << std::endl;
07421 #endif
07422 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[8]);
07423
07424 #ifdef MAP_ISO_DEBUG
07425 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 151 << std::endl;
07426 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 151 << std::endl;
07427 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 151 << std::endl;
07428 #endif
07429 va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[10]);
07430
07431 #ifdef MAP_ISO_DEBUG
07432 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 151 << std::endl;
07433 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 151 << std::endl;
07434 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 151 << std::endl;
07435 #endif
07436 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[2]);
07437
07438 #ifdef MAP_ISO_DEBUG
07439 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 151 << std::endl;
07440 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 151 << std::endl;
07441 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 151 << std::endl;
07442 #endif
07443 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[6]);
07444
07445 #ifdef MAP_ISO_DEBUG
07446 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 151 << std::endl;
07447 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 151 << std::endl;
07448 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 151 << std::endl;
07449 #endif
07450 }
07451
07452 template<>
07453 void AddLinesAndFaces<152>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07454 {
07455 va.AddLine(vertex_id[3],vertex_id[2]);
07456 va.AddLine(vertex_id[4],vertex_id[3]);
07457 va.AddLine(vertex_id[8],vertex_id[4]);
07458 va.AddLine(vertex_id[10],vertex_id[2]);
07459 va.AddLine(vertex_id[10],vertex_id[8]);
07460 va.AddTriN(vertex_id[4],vertex_id[10],vertex_id[8]);
07461
07462 #ifdef MAP_ISO_DEBUG
07463 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 152 << std::endl;
07464 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 152 << std::endl;
07465 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 152 << std::endl;
07466 #endif
07467 va.AddTriN(vertex_id[4],vertex_id[2],vertex_id[10]);
07468
07469 #ifdef MAP_ISO_DEBUG
07470 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 152 << std::endl;
07471 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 152 << std::endl;
07472 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 152 << std::endl;
07473 #endif
07474 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[2]);
07475
07476 #ifdef MAP_ISO_DEBUG
07477 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 152 << std::endl;
07478 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 152 << std::endl;
07479 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 152 << std::endl;
07480 #endif
07481 }
07482
07483 template<>
07484 void AddLinesAndFaces<153>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07485 {
07486 va.AddLine(vertex_id[2],vertex_id[0]);
07487 va.AddLine(vertex_id[8],vertex_id[0]);
07488 va.AddLine(vertex_id[10],vertex_id[2]);
07489 va.AddLine(vertex_id[10],vertex_id[8]);
07490 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[0]);
07491
07492 #ifdef MAP_ISO_DEBUG
07493 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 153 << std::endl;
07494 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 153 << std::endl;
07495 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 153 << std::endl;
07496 #endif
07497 va.AddTriN(vertex_id[2],vertex_id[10],vertex_id[8]);
07498
07499 #ifdef MAP_ISO_DEBUG
07500 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 153 << std::endl;
07501 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 153 << std::endl;
07502 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 153 << std::endl;
07503 #endif
07504 }
07505
07506 template<>
07507 void AddLinesAndFaces<154>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07508 {
07509 va.AddLine(vertex_id[1],vertex_id[0]);
07510 va.AddLine(vertex_id[2],vertex_id[0]);
07511 va.AddLine(vertex_id[2],vertex_id[1]);
07512 va.AddLine(vertex_id[3],vertex_id[0]);
07513 va.AddLine(vertex_id[3],vertex_id[1]);
07514 va.AddLine(vertex_id[3],vertex_id[2]);
07515 va.AddLine(vertex_id[4],vertex_id[0]);
07516 va.AddLine(vertex_id[4],vertex_id[3]);
07517 va.AddLine(vertex_id[5],vertex_id[0]);
07518 va.AddLine(vertex_id[5],vertex_id[1]);
07519 va.AddLine(vertex_id[5],vertex_id[4]);
07520 va.AddLine(vertex_id[8],vertex_id[0]);
07521 va.AddLine(vertex_id[8],vertex_id[4]);
07522 va.AddLine(vertex_id[8],vertex_id[5]);
07523 va.AddLine(vertex_id[10],vertex_id[2]);
07524 va.AddLine(vertex_id[10],vertex_id[8]);
07525 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
07526
07527 #ifdef MAP_ISO_DEBUG
07528 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 154 << std::endl;
07529 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
07530 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 154 << std::endl;
07531 #endif
07532 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
07533
07534 #ifdef MAP_ISO_DEBUG
07535 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 154 << std::endl;
07536 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 154 << std::endl;
07537 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 154 << std::endl;
07538 #endif
07539 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[10]);
07540
07541 #ifdef MAP_ISO_DEBUG
07542 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
07543 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 154 << std::endl;
07544 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 154 << std::endl;
07545 #endif
07546 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[8]);
07547
07548 #ifdef MAP_ISO_DEBUG
07549 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
07550 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 154 << std::endl;
07551 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 154 << std::endl;
07552 #endif
07553 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[5]);
07554
07555 #ifdef MAP_ISO_DEBUG
07556 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
07557 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 154 << std::endl;
07558 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 154 << std::endl;
07559 #endif
07560 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[4]);
07561
07562 #ifdef MAP_ISO_DEBUG
07563 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
07564 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 154 << std::endl;
07565 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 154 << std::endl;
07566 #endif
07567 va.AddTriN(vertex_id[2],vertex_id[0],vertex_id[8]);
07568
07569 #ifdef MAP_ISO_DEBUG
07570 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
07571 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 154 << std::endl;
07572 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 154 << std::endl;
07573 #endif
07574 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[0]);
07575
07576 #ifdef MAP_ISO_DEBUG
07577 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
07578 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 154 << std::endl;
07579 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 154 << std::endl;
07580 #endif
07581 va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[5]);
07582
07583 #ifdef MAP_ISO_DEBUG
07584 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
07585 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 154 << std::endl;
07586 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 154 << std::endl;
07587 #endif
07588 va.AddTriN(vertex_id[2],vertex_id[3],vertex_id[1]);
07589
07590 #ifdef MAP_ISO_DEBUG
07591 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
07592 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 154 << std::endl;
07593 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 154 << std::endl;
07594 #endif
07595 }
07596
07597 template<>
07598 void AddLinesAndFaces<155>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07599 {
07600 va.AddLine(vertex_id[2],vertex_id[1]);
07601 va.AddLine(vertex_id[5],vertex_id[1]);
07602 va.AddLine(vertex_id[8],vertex_id[5]);
07603 va.AddLine(vertex_id[10],vertex_id[2]);
07604 va.AddLine(vertex_id[10],vertex_id[8]);
07605 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[1]);
07606
07607 #ifdef MAP_ISO_DEBUG
07608 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 155 << std::endl;
07609 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 155 << std::endl;
07610 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 155 << std::endl;
07611 #endif
07612 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[5]);
07613
07614 #ifdef MAP_ISO_DEBUG
07615 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 155 << std::endl;
07616 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 155 << std::endl;
07617 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 155 << std::endl;
07618 #endif
07619 va.AddTriN(vertex_id[2],vertex_id[10],vertex_id[8]);
07620
07621 #ifdef MAP_ISO_DEBUG
07622 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 155 << std::endl;
07623 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 155 << std::endl;
07624 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 155 << std::endl;
07625 #endif
07626 }
07627
07628 template<>
07629 void AddLinesAndFaces<156>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07630 {
07631 va.AddLine(vertex_id[3],vertex_id[1]);
07632 va.AddLine(vertex_id[4],vertex_id[3]);
07633 va.AddLine(vertex_id[6],vertex_id[1]);
07634 va.AddLine(vertex_id[8],vertex_id[4]);
07635 va.AddLine(vertex_id[10],vertex_id[6]);
07636 va.AddLine(vertex_id[10],vertex_id[8]);
07637 va.AddTriN(vertex_id[4],vertex_id[10],vertex_id[8]);
07638
07639 #ifdef MAP_ISO_DEBUG
07640 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 156 << std::endl;
07641 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 156 << std::endl;
07642 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 156 << std::endl;
07643 #endif
07644 va.AddTriN(vertex_id[4],vertex_id[6],vertex_id[10]);
07645
07646 #ifdef MAP_ISO_DEBUG
07647 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 156 << std::endl;
07648 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 156 << std::endl;
07649 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 156 << std::endl;
07650 #endif
07651 va.AddTriN(vertex_id[4],vertex_id[1],vertex_id[6]);
07652
07653 #ifdef MAP_ISO_DEBUG
07654 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 156 << std::endl;
07655 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 156 << std::endl;
07656 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 156 << std::endl;
07657 #endif
07658 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[1]);
07659
07660 #ifdef MAP_ISO_DEBUG
07661 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 156 << std::endl;
07662 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 156 << std::endl;
07663 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 156 << std::endl;
07664 #endif
07665 }
07666
07667 template<>
07668 void AddLinesAndFaces<157>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07669 {
07670 va.AddLine(vertex_id[1],vertex_id[0]);
07671 va.AddLine(vertex_id[6],vertex_id[1]);
07672 va.AddLine(vertex_id[8],vertex_id[0]);
07673 va.AddLine(vertex_id[10],vertex_id[6]);
07674 va.AddLine(vertex_id[10],vertex_id[8]);
07675 va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[0]);
07676
07677 #ifdef MAP_ISO_DEBUG
07678 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 157 << std::endl;
07679 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 157 << std::endl;
07680 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 157 << std::endl;
07681 #endif
07682 va.AddTriN(vertex_id[1],vertex_id[10],vertex_id[8]);
07683
07684 #ifdef MAP_ISO_DEBUG
07685 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 157 << std::endl;
07686 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 157 << std::endl;
07687 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 157 << std::endl;
07688 #endif
07689 va.AddTriN(vertex_id[1],vertex_id[6],vertex_id[10]);
07690
07691 #ifdef MAP_ISO_DEBUG
07692 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 157 << std::endl;
07693 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 157 << std::endl;
07694 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 157 << std::endl;
07695 #endif
07696 }
07697
07698 template<>
07699 void AddLinesAndFaces<158>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07700 {
07701 va.AddLine(vertex_id[3],vertex_id[0]);
07702 va.AddLine(vertex_id[4],vertex_id[0]);
07703 va.AddLine(vertex_id[4],vertex_id[3]);
07704 va.AddLine(vertex_id[5],vertex_id[0]);
07705 va.AddLine(vertex_id[5],vertex_id[4]);
07706 va.AddLine(vertex_id[6],vertex_id[5]);
07707 va.AddLine(vertex_id[8],vertex_id[0]);
07708 va.AddLine(vertex_id[8],vertex_id[4]);
07709 va.AddLine(vertex_id[8],vertex_id[5]);
07710 va.AddLine(vertex_id[10],vertex_id[6]);
07711 va.AddLine(vertex_id[10],vertex_id[8]);
07712 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
07713
07714 #ifdef MAP_ISO_DEBUG
07715 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 158 << std::endl;
07716 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 158 << std::endl;
07717 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 158 << std::endl;
07718 #endif
07719 va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[0]);
07720
07721 #ifdef MAP_ISO_DEBUG
07722 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 158 << std::endl;
07723 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 158 << std::endl;
07724 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 158 << std::endl;
07725 #endif
07726 va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[8]);
07727
07728 #ifdef MAP_ISO_DEBUG
07729 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 158 << std::endl;
07730 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 158 << std::endl;
07731 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 158 << std::endl;
07732 #endif
07733 va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[5]);
07734
07735 #ifdef MAP_ISO_DEBUG
07736 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 158 << std::endl;
07737 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 158 << std::endl;
07738 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 158 << std::endl;
07739 #endif
07740 va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[8]);
07741
07742 #ifdef MAP_ISO_DEBUG
07743 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 158 << std::endl;
07744 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 158 << std::endl;
07745 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 158 << std::endl;
07746 #endif
07747 }
07748
07749 template<>
07750 void AddLinesAndFaces<159>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07751 {
07752 va.AddLine(vertex_id[6],vertex_id[5]);
07753 va.AddLine(vertex_id[8],vertex_id[5]);
07754 va.AddLine(vertex_id[10],vertex_id[6]);
07755 va.AddLine(vertex_id[10],vertex_id[8]);
07756 va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[5]);
07757
07758 #ifdef MAP_ISO_DEBUG
07759 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 159 << std::endl;
07760 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 159 << std::endl;
07761 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 159 << std::endl;
07762 #endif
07763 va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[8]);
07764
07765 #ifdef MAP_ISO_DEBUG
07766 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 159 << std::endl;
07767 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 159 << std::endl;
07768 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 159 << std::endl;
07769 #endif
07770 }
07771
07772 template<>
07773 void AddLinesAndFaces<160>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07774 {
07775 va.AddLine(vertex_id[8],vertex_id[5]);
07776 va.AddLine(vertex_id[9],vertex_id[5]);
07777 va.AddLine(vertex_id[9],vertex_id[8]);
07778 va.AddLine(vertex_id[10],vertex_id[7]);
07779 va.AddLine(vertex_id[10],vertex_id[8]);
07780 va.AddLine(vertex_id[10],vertex_id[9]);
07781 va.AddLine(vertex_id[11],vertex_id[7]);
07782 va.AddLine(vertex_id[11],vertex_id[8]);
07783 va.AddLine(vertex_id[11],vertex_id[9]);
07784 va.AddLine(vertex_id[11],vertex_id[10]);
07785 va.AddTriN(vertex_id[8],vertex_id[9],vertex_id[5]);
07786
07787 #ifdef MAP_ISO_DEBUG
07788 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 160 << std::endl;
07789 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 160 << std::endl;
07790 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 160 << std::endl;
07791 #endif
07792 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
07793
07794 #ifdef MAP_ISO_DEBUG
07795 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 160 << std::endl;
07796 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 160 << std::endl;
07797 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 160 << std::endl;
07798 #endif
07799 va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[11]);
07800
07801 #ifdef MAP_ISO_DEBUG
07802 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 160 << std::endl;
07803 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 160 << std::endl;
07804 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 160 << std::endl;
07805 #endif
07806 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
07807
07808 #ifdef MAP_ISO_DEBUG
07809 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 160 << std::endl;
07810 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 160 << std::endl;
07811 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 160 << std::endl;
07812 #endif
07813 }
07814
07815 template<>
07816 void AddLinesAndFaces<161>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07817 {
07818 va.AddLine(vertex_id[3],vertex_id[0]);
07819 va.AddLine(vertex_id[4],vertex_id[0]);
07820 va.AddLine(vertex_id[4],vertex_id[3]);
07821 va.AddLine(vertex_id[5],vertex_id[0]);
07822 va.AddLine(vertex_id[5],vertex_id[4]);
07823 va.AddLine(vertex_id[7],vertex_id[3]);
07824 va.AddLine(vertex_id[7],vertex_id[4]);
07825 va.AddLine(vertex_id[8],vertex_id[0]);
07826 va.AddLine(vertex_id[8],vertex_id[4]);
07827 va.AddLine(vertex_id[8],vertex_id[5]);
07828 va.AddLine(vertex_id[9],vertex_id[5]);
07829 va.AddLine(vertex_id[9],vertex_id[8]);
07830 va.AddLine(vertex_id[10],vertex_id[7]);
07831 va.AddLine(vertex_id[10],vertex_id[8]);
07832 va.AddLine(vertex_id[10],vertex_id[9]);
07833 va.AddLine(vertex_id[11],vertex_id[3]);
07834 va.AddLine(vertex_id[11],vertex_id[4]);
07835 va.AddLine(vertex_id[11],vertex_id[7]);
07836 va.AddLine(vertex_id[11],vertex_id[8]);
07837 va.AddLine(vertex_id[11],vertex_id[9]);
07838 va.AddLine(vertex_id[11],vertex_id[10]);
07839 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
07840
07841 #ifdef MAP_ISO_DEBUG
07842 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 161 << std::endl;
07843 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 161 << std::endl;
07844 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 161 << std::endl;
07845 #endif
07846 va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[0]);
07847
07848 #ifdef MAP_ISO_DEBUG
07849 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 161 << std::endl;
07850 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 161 << std::endl;
07851 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 161 << std::endl;
07852 #endif
07853 va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[8]);
07854
07855 #ifdef MAP_ISO_DEBUG
07856 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 161 << std::endl;
07857 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 161 << std::endl;
07858 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 161 << std::endl;
07859 #endif
07860 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
07861
07862 #ifdef MAP_ISO_DEBUG
07863 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 161 << std::endl;
07864 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 161 << std::endl;
07865 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 161 << std::endl;
07866 #endif
07867 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
07868
07869 #ifdef MAP_ISO_DEBUG
07870 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 161 << std::endl;
07871 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 161 << std::endl;
07872 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 161 << std::endl;
07873 #endif
07874 va.AddTriN(vertex_id[8],vertex_id[9],vertex_id[5]);
07875
07876 #ifdef MAP_ISO_DEBUG
07877 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 161 << std::endl;
07878 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 161 << std::endl;
07879 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 161 << std::endl;
07880 #endif
07881 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
07882
07883 #ifdef MAP_ISO_DEBUG
07884 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 161 << std::endl;
07885 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 161 << std::endl;
07886 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 161 << std::endl;
07887 #endif
07888 va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[11]);
07889
07890 #ifdef MAP_ISO_DEBUG
07891 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 161 << std::endl;
07892 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 161 << std::endl;
07893 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 161 << std::endl;
07894 #endif
07895 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
07896
07897 #ifdef MAP_ISO_DEBUG
07898 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 161 << std::endl;
07899 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 161 << std::endl;
07900 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 161 << std::endl;
07901 #endif
07902 }
07903
07904 template<>
07905 void AddLinesAndFaces<162>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07906 {
07907 va.AddLine(vertex_id[1],vertex_id[0]);
07908 va.AddLine(vertex_id[8],vertex_id[0]);
07909 va.AddLine(vertex_id[9],vertex_id[1]);
07910 va.AddLine(vertex_id[9],vertex_id[8]);
07911 va.AddLine(vertex_id[10],vertex_id[7]);
07912 va.AddLine(vertex_id[10],vertex_id[8]);
07913 va.AddLine(vertex_id[10],vertex_id[9]);
07914 va.AddLine(vertex_id[11],vertex_id[7]);
07915 va.AddLine(vertex_id[11],vertex_id[8]);
07916 va.AddLine(vertex_id[11],vertex_id[9]);
07917 va.AddLine(vertex_id[11],vertex_id[10]);
07918 va.AddTriN(vertex_id[9],vertex_id[0],vertex_id[8]);
07919
07920 #ifdef MAP_ISO_DEBUG
07921 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 162 << std::endl;
07922 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 162 << std::endl;
07923 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 162 << std::endl;
07924 #endif
07925 va.AddTriN(vertex_id[9],vertex_id[1],vertex_id[0]);
07926
07927 #ifdef MAP_ISO_DEBUG
07928 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 162 << std::endl;
07929 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 162 << std::endl;
07930 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 162 << std::endl;
07931 #endif
07932 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
07933
07934 #ifdef MAP_ISO_DEBUG
07935 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 162 << std::endl;
07936 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 162 << std::endl;
07937 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 162 << std::endl;
07938 #endif
07939 va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[11]);
07940
07941 #ifdef MAP_ISO_DEBUG
07942 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 162 << std::endl;
07943 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 162 << std::endl;
07944 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 162 << std::endl;
07945 #endif
07946 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
07947
07948 #ifdef MAP_ISO_DEBUG
07949 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 162 << std::endl;
07950 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 162 << std::endl;
07951 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 162 << std::endl;
07952 #endif
07953 }
07954
07955 template<>
07956 void AddLinesAndFaces<163>(IndexedVertexArray& va,unsigned int vertex_id[12] )
07957 {
07958 va.AddLine(vertex_id[3],vertex_id[1]);
07959 va.AddLine(vertex_id[4],vertex_id[3]);
07960 va.AddLine(vertex_id[7],vertex_id[3]);
07961 va.AddLine(vertex_id[7],vertex_id[4]);
07962 va.AddLine(vertex_id[8],vertex_id[4]);
07963 va.AddLine(vertex_id[9],vertex_id[1]);
07964 va.AddLine(vertex_id[9],vertex_id[8]);
07965 va.AddLine(vertex_id[10],vertex_id[7]);
07966 va.AddLine(vertex_id[10],vertex_id[8]);
07967 va.AddLine(vertex_id[10],vertex_id[9]);
07968 va.AddLine(vertex_id[11],vertex_id[3]);
07969 va.AddLine(vertex_id[11],vertex_id[4]);
07970 va.AddLine(vertex_id[11],vertex_id[7]);
07971 va.AddLine(vertex_id[11],vertex_id[8]);
07972 va.AddLine(vertex_id[11],vertex_id[9]);
07973 va.AddLine(vertex_id[11],vertex_id[10]);
07974 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
07975
07976 #ifdef MAP_ISO_DEBUG
07977 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 163 << std::endl;
07978 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 163 << std::endl;
07979 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 163 << std::endl;
07980 #endif
07981 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[9]);
07982
07983 #ifdef MAP_ISO_DEBUG
07984 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 163 << std::endl;
07985 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 163 << std::endl;
07986 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 163 << std::endl;
07987 #endif
07988 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
07989
07990 #ifdef MAP_ISO_DEBUG
07991 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 163 << std::endl;
07992 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 163 << std::endl;
07993 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 163 << std::endl;
07994 #endif
07995 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
07996
07997 #ifdef MAP_ISO_DEBUG
07998 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 163 << std::endl;
07999 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 163 << std::endl;
08000 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 163 << std::endl;
08001 #endif
08002 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
08003
08004 #ifdef MAP_ISO_DEBUG
08005 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 163 << std::endl;
08006 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 163 << std::endl;
08007 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 163 << std::endl;
08008 #endif
08009 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
08010
08011 #ifdef MAP_ISO_DEBUG
08012 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 163 << std::endl;
08013 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 163 << std::endl;
08014 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 163 << std::endl;
08015 #endif
08016 va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[11]);
08017
08018 #ifdef MAP_ISO_DEBUG
08019 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 163 << std::endl;
08020 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 163 << std::endl;
08021 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 163 << std::endl;
08022 #endif
08023 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
08024
08025 #ifdef MAP_ISO_DEBUG
08026 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 163 << std::endl;
08027 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 163 << std::endl;
08028 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 163 << std::endl;
08029 #endif
08030 }
08031
08032 template<>
08033 void AddLinesAndFaces<164>(IndexedVertexArray& va,unsigned int vertex_id[12] )
08034 {
08035 va.AddLine(vertex_id[2],vertex_id[1]);
08036 va.AddLine(vertex_id[5],vertex_id[1]);
08037 va.AddLine(vertex_id[6],vertex_id[1]);
08038 va.AddLine(vertex_id[6],vertex_id[2]);
08039 va.AddLine(vertex_id[6],vertex_id[5]);
08040 va.AddLine(vertex_id[7],vertex_id[2]);
08041 va.AddLine(vertex_id[7],vertex_id[6]);
08042 va.AddLine(vertex_id[8],vertex_id[5]);
08043 va.AddLine(vertex_id[9],vertex_id[1]);
08044 va.AddLine(vertex_id[9],vertex_id[5]);
08045 va.AddLine(vertex_id[9],vertex_id[6]);
08046 va.AddLine(vertex_id[9],vertex_id[8]);
08047 va.AddLine(vertex_id[10],vertex_id[2]);
08048 va.AddLine(vertex_id[10],vertex_id[6]);
08049 va.AddLine(vertex_id[10],vertex_id[7]);
08050 va.AddLine(vertex_id[10],vertex_id[8]);
08051 va.AddLine(vertex_id[10],vertex_id[9]);
08052 va.AddLine(vertex_id[11],vertex_id[7]);
08053 va.AddLine(vertex_id[11],vertex_id[8]);
08054 va.AddLine(vertex_id[11],vertex_id[9]);
08055 va.AddLine(vertex_id[11],vertex_id[10]);
08056 va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[9]);
08057
08058 #ifdef MAP_ISO_DEBUG
08059 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
08060 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 164 << std::endl;
08061 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 164 << std::endl;
08062 #endif
08063 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[8]);
08064
08065 #ifdef MAP_ISO_DEBUG
08066 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
08067 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 164 << std::endl;
08068 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 164 << std::endl;
08069 #endif
08070 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[5]);
08071
08072 #ifdef MAP_ISO_DEBUG
08073 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
08074 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 164 << std::endl;
08075 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 164 << std::endl;
08076 #endif
08077 va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[9]);
08078
08079 #ifdef MAP_ISO_DEBUG
08080 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
08081 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 164 << std::endl;
08082 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 164 << std::endl;
08083 #endif
08084 va.AddTriN(vertex_id[6],vertex_id[6],vertex_id[1]);
08085
08086 #ifdef MAP_ISO_DEBUG
08087 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
08088 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
08089 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 164 << std::endl;
08090 #endif
08091 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[6]);
08092
08093 #ifdef MAP_ISO_DEBUG
08094 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
08095 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 164 << std::endl;
08096 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
08097 #endif
08098 va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[5]);
08099
08100 #ifdef MAP_ISO_DEBUG
08101 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
08102 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 164 << std::endl;
08103 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 164 << std::endl;
08104 #endif
08105 va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[1]);
08106
08107 #ifdef MAP_ISO_DEBUG
08108 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
08109 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 164 << std::endl;
08110 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 164 << std::endl;
08111 #endif
08112 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
08113
08114 #ifdef MAP_ISO_DEBUG
08115 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 164 << std::endl;
08116 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 164 << std::endl;
08117 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 164 << std::endl;
08118 #endif
08119 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
08120
08121 #ifdef MAP_ISO_DEBUG
08122 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 164 << std::endl;
08123 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
08124 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 164 << std::endl;
08125 #endif
08126 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
08127
08128 #ifdef MAP_ISO_DEBUG
08129 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 164 << std::endl;
08130 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 164 << std::endl;
08131 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 164 << std::endl;
08132 #endif
08133 va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[11]);
08134
08135 #ifdef MAP_ISO_DEBUG
08136 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 164 << std::endl;
08137 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 164 << std::endl;
08138 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 164 << std::endl;
08139 #endif
08140 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
08141
08142 #ifdef MAP_ISO_DEBUG
08143 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 164 << std::endl;
08144 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 164 << std::endl;
08145 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 164 << std::endl;
08146 #endif
08147 }
08148
08149 template<>
08150 void AddLinesAndFaces<165>(IndexedVertexArray& va,unsigned int vertex_id[12] )
08151 {
08152 va.AddLine(vertex_id[1],vertex_id[0]);
08153 va.AddLine(vertex_id[2],vertex_id[0]);
08154 va.AddLine(vertex_id[2],vertex_id[1]);
08155 va.AddLine(vertex_id[3],vertex_id[0]);
08156 va.AddLine(vertex_id[3],vertex_id[1]);
08157 va.AddLine(vertex_id[3],vertex_id[2]);
08158 va.AddLine(vertex_id[4],vertex_id[0]);
08159 va.AddLine(vertex_id[4],vertex_id[3]);
08160 va.AddLine(vertex_id[5],vertex_id[0]);
08161 va.AddLine(vertex_id[5],vertex_id[1]);
08162 va.AddLine(vertex_id[5],vertex_id[4]);
08163 va.AddLine(vertex_id[6],vertex_id[1]);
08164 va.AddLine(vertex_id[6],vertex_id[2]);
08165 va.AddLine(vertex_id[6],vertex_id[5]);
08166 va.AddLine(vertex_id[7],vertex_id[2]);
08167 va.AddLine(vertex_id[7],vertex_id[3]);
08168 va.AddLine(vertex_id[7],vertex_id[4]);
08169 va.AddLine(vertex_id[7],vertex_id[6]);
08170 va.AddLine(vertex_id[8],vertex_id[0]);
08171 va.AddLine(vertex_id[8],vertex_id[4]);
08172 va.AddLine(vertex_id[8],vertex_id[5]);
08173 va.AddLine(vertex_id[9],vertex_id[1]);
08174 va.AddLine(vertex_id[9],vertex_id[5]);
08175 va.AddLine(vertex_id[9],vertex_id[6]);
08176 va.AddLine(vertex_id[9],vertex_id[8]);
08177 va.AddLine(vertex_id[10],vertex_id[2]);
08178 va.AddLine(vertex_id[10],vertex_id[6]);
08179 va.AddLine(vertex_id[10],vertex_id[7]);
08180 va.AddLine(vertex_id[10],vertex_id[8]);
08181 va.AddLine(vertex_id[10],vertex_id[9]);
08182 va.AddLine(vertex_id[11],vertex_id[3]);
08183 va.AddLine(vertex_id[11],vertex_id[4]);
08184 va.AddLine(vertex_id[11],vertex_id[7]);
08185 va.AddLine(vertex_id[11],vertex_id[8]);
08186 va.AddLine(vertex_id[11],vertex_id[9]);
08187 va.AddLine(vertex_id[11],vertex_id[10]);
08188 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
08189
08190 #ifdef MAP_ISO_DEBUG
08191 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 165 << std::endl;
08192 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 165 << std::endl;
08193 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 165 << std::endl;
08194 #endif
08195 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
08196
08197 #ifdef MAP_ISO_DEBUG
08198 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
08199 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 165 << std::endl;
08200 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 165 << std::endl;
08201 #endif
08202 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
08203
08204 #ifdef MAP_ISO_DEBUG
08205 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
08206 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 165 << std::endl;
08207 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 165 << std::endl;
08208 #endif
08209 va.AddTriN(vertex_id[3],vertex_id[0],vertex_id[5]);
08210
08211 #ifdef MAP_ISO_DEBUG
08212 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
08213 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 165 << std::endl;
08214 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 165 << std::endl;
08215 #endif
08216 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
08217
08218 #ifdef MAP_ISO_DEBUG
08219 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
08220 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 165 << std::endl;
08221 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 165 << std::endl;
08222 #endif
08223 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
08224
08225 #ifdef MAP_ISO_DEBUG
08226 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
08227 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 165 << std::endl;
08228 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 165 << std::endl;
08229 #endif
08230 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[4]);
08231
08232 #ifdef MAP_ISO_DEBUG
08233 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
08234 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 165 << std::endl;
08235 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 165 << std::endl;
08236 #endif
08237 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[5]);
08238
08239 #ifdef MAP_ISO_DEBUG
08240 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
08241 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 165 << std::endl;
08242 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 165 << std::endl;
08243 #endif
08244 va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[6]);
08245
08246 #ifdef MAP_ISO_DEBUG
08247 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
08248 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 165 << std::endl;
08249 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 165 << std::endl;
08250 #endif
08251 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
08252
08253 #ifdef MAP_ISO_DEBUG
08254 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
08255 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 165 << std::endl;
08256 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 165 << std::endl;
08257 #endif
08258 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[9]);
08259
08260 #ifdef MAP_ISO_DEBUG
08261 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
08262 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 165 << std::endl;
08263 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 165 << std::endl;
08264 #endif
08265 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
08266
08267 #ifdef MAP_ISO_DEBUG
08268 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
08269 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 165 << std::endl;
08270 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 165 << std::endl;
08271 #endif
08272 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[8]);
08273
08274 #ifdef MAP_ISO_DEBUG
08275 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
08276 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 165 << std::endl;
08277 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 165 << std::endl;
08278 #endif
08279 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[9]);
08280
08281 #ifdef MAP_ISO_DEBUG
08282 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
08283 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 165 << std::endl;
08284 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 165 << std::endl;
08285 #endif
08286 va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[6]);
08287
08288 #ifdef MAP_ISO_DEBUG
08289 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
08290 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 165 << std::endl;
08291 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 165 << std::endl;
08292 #endif
08293 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
08294
08295 #ifdef MAP_ISO_DEBUG
08296 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 165 << std::endl;
08297 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 165 << std::endl;
08298 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 165 << std::endl;
08299 #endif
08300 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
08301
08302 #ifdef MAP_ISO_DEBUG
08303 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 165 << std::endl;
08304 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 165 << std::endl;
08305 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 165 << std::endl;
08306 #endif
08307 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
08308
08309 #ifdef MAP_ISO_DEBUG
08310 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 165 << std::endl;
08311 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 165 << std::endl;
08312 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
08313 #endif
08314 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
08315
08316 #ifdef MAP_ISO_DEBUG
08317 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 165 << std::endl;
08318 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 165 << std::endl;
08319 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 165 << std::endl;
08320 #endif
08321 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
08322
08323 #ifdef MAP_ISO_DEBUG
08324 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 165 << std::endl;
08325 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 165 << std::endl;
08326 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 165 << std::endl;
08327 #endif
08328 va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[11]);
08329
08330 #ifdef MAP_ISO_DEBUG
08331 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 165 << std::endl;
08332 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 165 << std::endl;
08333 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 165 << std::endl;
08334 #endif
08335 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
08336
08337 #ifdef MAP_ISO_DEBUG
08338 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 165 << std::endl;
08339 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 165 << std::endl;
08340 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 165 << std::endl;
08341 #endif
08342 }
08343
08344 template<>
08345 void AddLinesAndFaces<166>(IndexedVertexArray& va,unsigned int vertex_id[12] )
08346 {
08347 va.AddLine(vertex_id[2],vertex_id[0]);
08348 va.AddLine(vertex_id[6],vertex_id[2]);
08349 va.AddLine(vertex_id[7],vertex_id[2]);
08350 va.AddLine(vertex_id[7],vertex_id[6]);
08351 va.AddLine(vertex_id[8],vertex_id[0]);
08352 va.AddLine(vertex_id[9],vertex_id[6]);
08353 va.AddLine(vertex_id[9],vertex_id[8]);
08354 va.AddLine(vertex_id[10],vertex_id[2]);
08355 va.AddLine(vertex_id[10],vertex_id[6]);
08356 va.AddLine(vertex_id[10],vertex_id[7]);
08357 va.AddLine(vertex_id[10],vertex_id[8]);
08358 va.AddLine(vertex_id[10],vertex_id[9]);
08359 va.AddLine(vertex_id[11],vertex_id[7]);
08360 va.AddLine(vertex_id[11],vertex_id[8]);
08361 va.AddLine(vertex_id[11],vertex_id[9]);
08362 va.AddLine(vertex_id[11],vertex_id[10]);
08363 va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[9]);
08364
08365 #ifdef MAP_ISO_DEBUG
08366 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 166 << std::endl;
08367 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 166 << std::endl;
08368 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 166 << std::endl;
08369 #endif
08370 va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[8]);
08371
08372 #ifdef MAP_ISO_DEBUG
08373 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 166 << std::endl;
08374 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 166 << std::endl;
08375 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 166 << std::endl;
08376 #endif
08377 va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[0]);
08378
08379 #ifdef MAP_ISO_DEBUG
08380 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 166 << std::endl;
08381 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 166 << std::endl;
08382 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 166 << std::endl;
08383 #endif
08384 va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
08385
08386 #ifdef MAP_ISO_DEBUG
08387 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 166 << std::endl;
08388 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 166 << std::endl;
08389 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 166 << std::endl;
08390 #endif
08391 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
08392
08393 #ifdef MAP_ISO_DEBUG
08394 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 166 << std::endl;
08395 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 166 << std::endl;
08396 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 166 << std::endl;
08397 #endif
08398 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
08399
08400 #ifdef MAP_ISO_DEBUG
08401 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 166 << std::endl;
08402 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 166 << std::endl;
08403 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 166 << std::endl;
08404 #endif
08405 va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[11]);
08406
08407 #ifdef MAP_ISO_DEBUG
08408 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 166 << std::endl;
08409 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 166 << std::endl;
08410 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 166 << std::endl;
08411 #endif
08412 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
08413
08414 #ifdef MAP_ISO_DEBUG
08415 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 166 << std::endl;
08416 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 166 << std::endl;
08417 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 166 << std::endl;
08418 #endif
08419 }
08420
08421 template<>
08422 void AddLinesAndFaces<167>(IndexedVertexArray& va,unsigned int vertex_id[12] )
08423 {
08424 va.AddLine(vertex_id[3],vertex_id[2]);
08425 va.AddLine(vertex_id[4],vertex_id[3]);
08426 va.AddLine(vertex_id[6],vertex_id[2]);
08427 va.AddLine(vertex_id[7],vertex_id[2]);
08428 va.AddLine(vertex_id[7],vertex_id[3]);
08429 va.AddLine(vertex_id[7],vertex_id[4]);
08430 va.AddLine(vertex_id[7],vertex_id[6]);
08431 va.AddLine(vertex_id[8],vertex_id[4]);
08432 va.AddLine(vertex_id[9],vertex_id[6]);
08433 va.AddLine(vertex_id[9],vertex_id[8]);
08434 va.AddLine(vertex_id[10],vertex_id[2]);
08435 va.AddLine(vertex_id[10],vertex_id[6]);
08436 va.AddLine(vertex_id[10],vertex_id[7]);
08437 va.AddLine(vertex_id[10],vertex_id[8]);
08438 va.AddLine(vertex_id[10],vertex_id[9]);
08439 va.AddLine(vertex_id[11],vertex_id[3]);
08440 va.AddLine(vertex_id[11],vertex_id[4]);
08441 va.AddLine(vertex_id[11],vertex_id[7]);
08442 va.AddLine(vertex_id[11],vertex_id[8]);
08443 va.AddLine(vertex_id[11],vertex_id[9]);
08444 va.AddLine(vertex_id[11],vertex_id[10]);
08445 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
08446
08447 #ifdef MAP_ISO_DEBUG
08448 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
08449 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 167 << std::endl;
08450 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 167 << std::endl;
08451 #endif
08452 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[6]);
08453
08454 #ifdef MAP_ISO_DEBUG
08455 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
08456 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 167 << std::endl;
08457 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 167 << std::endl;
08458 #endif
08459 va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[7]);
08460
08461 #ifdef MAP_ISO_DEBUG
08462 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
08463 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 167 << std::endl;
08464 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 167 << std::endl;
08465 #endif
08466 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
08467
08468 #ifdef MAP_ISO_DEBUG
08469 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
08470 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 167 << std::endl;
08471 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 167 << std::endl;
08472 #endif
08473 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[10]);
08474
08475 #ifdef MAP_ISO_DEBUG
08476 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
08477 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 167 << std::endl;
08478 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 167 << std::endl;
08479 #endif
08480 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[6]);
08481
08482 #ifdef MAP_ISO_DEBUG
08483 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
08484 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 167 << std::endl;
08485 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 167 << std::endl;
08486 #endif
08487 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[9]);
08488
08489 #ifdef MAP_ISO_DEBUG
08490 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
08491 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 167 << std::endl;
08492 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 167 << std::endl;
08493 #endif
08494 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
08495
08496 #ifdef MAP_ISO_DEBUG
08497 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
08498 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 167 << std::endl;
08499 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 167 << std::endl;
08500 #endif
08501 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
08502
08503 #ifdef MAP_ISO_DEBUG
08504 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 167 << std::endl;
08505 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 167 << std::endl;
08506 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
08507 #endif
08508 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
08509
08510 #ifdef MAP_ISO_DEBUG
08511 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 167 << std::endl;
08512 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 167 << std::endl;
08513 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 167 << std::endl;
08514 #endif
08515 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
08516
08517 #ifdef MAP_ISO_DEBUG
08518 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 167 << std::endl;
08519 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 167 << std::endl;
08520 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 167 << std::endl;
08521 #endif
08522 va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[11]);
08523
08524 #ifdef MAP_ISO_DEBUG
08525 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 167 << std::endl;
08526 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 167 << std::endl;
08527 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 167 << std::endl;
08528 #endif
08529 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
08530
08531 #ifdef MAP_ISO_DEBUG
08532 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 167 << std::endl;
08533 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 167 << std::endl;
08534 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 167 << std::endl;
08535 #endif
08536 }
08537
08538 template<>
08539 void AddLinesAndFaces<168>(IndexedVertexArray& va,unsigned int vertex_id[12] )
08540 {
08541 va.AddLine(vertex_id[3],vertex_id[2]);
08542 va.AddLine(vertex_id[8],vertex_id[5]);
08543 va.AddLine(vertex_id[9],vertex_id[5]);
08544 va.AddLine(vertex_id[9],vertex_id[8]);
08545 va.AddLine(vertex_id[10],vertex_id[2]);
08546 va.AddLine(vertex_id[10],vertex_id[8]);
08547 va.AddLine(vertex_id[10],vertex_id[9]);
08548 va.AddLine(vertex_id[11],vertex_id[3]);
08549 va.AddLine(vertex_id[11],vertex_id[8]);
08550 va.AddLine(vertex_id[11],vertex_id[9]);
08551 va.AddLine(vertex_id[11],vertex_id[10]);
08552 va.AddTriN(vertex_id[11],vertex_id[9],vertex_id[8]);
08553
08554 #ifdef MAP_ISO_DEBUG
08555 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 168 << std::endl;
08556 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 168 << std::endl;
08557 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 168 << std::endl;
08558 #endif
08559 va.AddTriN(vertex_id[11],vertex_id[5],vertex_id[9]);
08560
08561 #ifdef MAP_ISO_DEBUG
08562 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 168 << std::endl;
08563 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 168 << std::endl;
08564 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 168 << std::endl;
08565 #endif
08566 va.AddTriN(vertex_id[11],vertex_id[8],vertex_id[5]);
08567
08568 #ifdef MAP_ISO_DEBUG
08569 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 168 << std::endl;
08570 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 168 << std::endl;
08571 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 168 << std::endl;
08572 #endif
08573 va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[8]);
08574
08575 #ifdef MAP_ISO_DEBUG
08576 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 168 << std::endl;
08577 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 168 << std::endl;
08578 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 168 << std::endl;
08579 #endif
08580 va.AddTriN(vertex_id[11],vertex_id[2],vertex_id[10]);
08581
08582 #ifdef MAP_ISO_DEBUG
08583 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 168 << std::endl;
08584 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 168 << std::endl;
08585 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 168 << std::endl;
08586 #endif
08587 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[2]);
08588
08589 #ifdef MAP_ISO_DEBUG
08590 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 168 << std::endl;
08591 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 168 << std::endl;
08592 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 168 << std::endl;
08593 #endif
08594 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
08595
08596 #ifdef MAP_ISO_DEBUG
08597 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 168 << std::endl;
08598 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 168 << std::endl;
08599 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 168 << std::endl;
08600 #endif
08601 }
08602
08603 template<>
08604 void AddLinesAndFaces<169>(IndexedVertexArray& va,unsigned int vertex_id[12] )
08605 {
08606 va.AddLine(vertex_id[2],vertex_id[0]);
08607 va.AddLine(vertex_id[4],vertex_id[0]);
08608 va.AddLine(vertex_id[5],vertex_id[0]);
08609 va.AddLine(vertex_id[5],vertex_id[4]);
08610 va.AddLine(vertex_id[8],vertex_id[0]);
08611 va.AddLine(vertex_id[8],vertex_id[4]);
08612 va.AddLine(vertex_id[8],vertex_id[5]);
08613 va.AddLine(vertex_id[9],vertex_id[5]);
08614 va.AddLine(vertex_id[9],vertex_id[8]);
08615 va.AddLine(vertex_id[10],vertex_id[2]);
08616 va.AddLine(vertex_id[10],vertex_id[8]);
08617 va.AddLine(vertex_id[10],vertex_id[9]);
08618 va.AddLine(vertex_id[11],vertex_id[4]);
08619 va.AddLine(vertex_id[11],vertex_id[8]);
08620 va.AddLine(vertex_id[11],vertex_id[9]);
08621 va.AddLine(vertex_id[11],vertex_id[10]);
08622 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[0]);
08623
08624 #ifdef MAP_ISO_DEBUG
08625 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
08626 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 169 << std::endl;
08627 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 169 << std::endl;
08628 #endif
08629 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[4]);
08630
08631 #ifdef MAP_ISO_DEBUG
08632 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
08633 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 169 << std::endl;
08634 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 169 << std::endl;
08635 #endif
08636 va.AddTriN(vertex_id[2],vertex_id[0],vertex_id[5]);
08637
08638 #ifdef MAP_ISO_DEBUG
08639 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
08640 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 169 << std::endl;
08641 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 169 << std::endl;
08642 #endif
08643 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[0]);
08644
08645 #ifdef MAP_ISO_DEBUG
08646 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
08647 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 169 << std::endl;
08648 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 169 << std::endl;
08649 #endif
08650 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[8]);
08651
08652 #ifdef MAP_ISO_DEBUG
08653 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
08654 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 169 << std::endl;
08655 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 169 << std::endl;
08656 #endif
08657 va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[4]);
08658
08659 #ifdef MAP_ISO_DEBUG
08660 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
08661 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 169 << std::endl;
08662 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 169 << std::endl;
08663 #endif
08664 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[11]);
08665
08666 #ifdef MAP_ISO_DEBUG
08667 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
08668 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 169 << std::endl;
08669 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 169 << std::endl;
08670 #endif
08671 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[8]);
08672
08673 #ifdef MAP_ISO_DEBUG
08674 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
08675 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 169 << std::endl;
08676 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 169 << std::endl;
08677 #endif
08678 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[5]);
08679
08680 #ifdef MAP_ISO_DEBUG
08681 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
08682 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 169 << std::endl;
08683 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 169 << std::endl;
08684 #endif
08685 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[9]);
08686
08687 #ifdef MAP_ISO_DEBUG
08688 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
08689 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 169 << std::endl;
08690 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 169 << std::endl;
08691 #endif
08692 va.AddTriN(vertex_id[2],vertex_id[10],vertex_id[8]);
08693
08694 #ifdef MAP_ISO_DEBUG
08695 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
08696 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 169 << std::endl;
08697 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 169 << std::endl;
08698 #endif
08699 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
08700
08701 #ifdef MAP_ISO_DEBUG
08702 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 169 << std::endl;
08703 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 169 << std::endl;
08704 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 169 << std::endl;
08705 #endif
08706 }
08707
08708 template<>
08709 void AddLinesAndFaces<170>(IndexedVertexArray& va,unsigned int vertex_id[12] )
08710 {
08711 va.AddLine(vertex_id[1],vertex_id[0]);
08712 va.AddLine(vertex_id[2],vertex_id[0]);
08713 va.AddLine(vertex_id[2],vertex_id[1]);
08714 va.AddLine(vertex_id[3],vertex_id[0]);
08715 va.AddLine(vertex_id[3],vertex_id[1]);
08716 va.AddLine(vertex_id[3],vertex_id[2]);
08717 va.AddLine(vertex_id[8],vertex_id[0]);
08718 va.AddLine(vertex_id[9],vertex_id[1]);
08719 va.AddLine(vertex_id[9],vertex_id[8]);
08720 va.AddLine(vertex_id[10],vertex_id[2]);
08721 va.AddLine(vertex_id[10],vertex_id[8]);
08722 va.AddLine(vertex_id[10],vertex_id[9]);
08723 va.AddLine(vertex_id[11],vertex_id[3]);
08724 va.AddLine(vertex_id[11],vertex_id[8]);
08725 va.AddLine(vertex_id[11],vertex_id[9]);
08726 va.AddLine(vertex_id[11],vertex_id[10]);
08727 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
08728
08729 #ifdef MAP_ISO_DEBUG
08730 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 170 << std::endl;
08731 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 170 << std::endl;
08732 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 170 << std::endl;
08733 #endif
08734 va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[9]);
08735
08736 #ifdef MAP_ISO_DEBUG
08737 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 170 << std::endl;
08738 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 170 << std::endl;
08739 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 170 << std::endl;
08740 #endif
08741 va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[8]);
08742
08743 #ifdef MAP_ISO_DEBUG
08744 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 170 << std::endl;
08745 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 170 << std::endl;
08746 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 170 << std::endl;
08747 #endif
08748 va.AddTriN(vertex_id[1],vertex_id[3],vertex_id[0]);
08749
08750 #ifdef MAP_ISO_DEBUG
08751 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 170 << std::endl;
08752 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 170 << std::endl;
08753 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 170 << std::endl;
08754 #endif
08755 va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[8]);
08756
08757 #ifdef MAP_ISO_DEBUG
08758 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 170 << std::endl;
08759 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 170 << std::endl;
08760 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 170 << std::endl;
08761 #endif
08762 va.AddTriN(vertex_id[11],vertex_id[2],vertex_id[10]);
08763
08764 #ifdef MAP_ISO_DEBUG
08765 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 170 << std::endl;
08766 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 170 << std::endl;
08767 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 170 << std::endl;
08768 #endif
08769 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[2]);
08770
08771 #ifdef MAP_ISO_DEBUG
08772 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 170 << std::endl;
08773 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 170 << std::endl;
08774 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 170 << std::endl;
08775 #endif
08776 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
08777
08778 #ifdef MAP_ISO_DEBUG
08779 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 170 << std::endl;
08780 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 170 << std::endl;
08781 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 170 << std::endl;
08782 #endif
08783 }
08784
08785 template<>
08786 void AddLinesAndFaces<171>(IndexedVertexArray& va,unsigned int vertex_id[12] )
08787 {
08788 va.AddLine(vertex_id[2],vertex_id[1]);
08789 va.AddLine(vertex_id[8],vertex_id[4]);
08790 va.AddLine(vertex_id[9],vertex_id[1]);
08791 va.AddLine(vertex_id[9],vertex_id[8]);
08792 va.AddLine(vertex_id[10],vertex_id[2]);
08793 va.AddLine(vertex_id[10],vertex_id[8]);
08794 va.AddLine(vertex_id[10],vertex_id[9]);
08795 va.AddLine(vertex_id[11],vertex_id[4]);
08796 va.AddLine(vertex_id[11],vertex_id[8]);
08797 va.AddLine(vertex_id[11],vertex_id[9]);
08798 va.AddLine(vertex_id[11],vertex_id[10]);
08799 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[1]);
08800
08801 #ifdef MAP_ISO_DEBUG
08802 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 171 << std::endl;
08803 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 171 << std::endl;
08804 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 171 << std::endl;
08805 #endif
08806 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[9]);
08807
08808 #ifdef MAP_ISO_DEBUG
08809 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 171 << std::endl;
08810 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 171 << std::endl;
08811 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 171 << std::endl;
08812 #endif
08813 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[8]);
08814
08815 #ifdef MAP_ISO_DEBUG
08816 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 171 << std::endl;
08817 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 171 << std::endl;
08818 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 171 << std::endl;
08819 #endif
08820 va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[4]);
08821
08822 #ifdef MAP_ISO_DEBUG
08823 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 171 << std::endl;
08824 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 171 << std::endl;
08825 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 171 << std::endl;
08826 #endif
08827 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[11]);
08828
08829 #ifdef MAP_ISO_DEBUG
08830 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 171 << std::endl;
08831 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 171 << std::endl;
08832 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 171 << std::endl;
08833 #endif
08834 va.AddTriN(vertex_id[2],vertex_id[10],vertex_id[8]);
08835
08836 #ifdef MAP_ISO_DEBUG
08837 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 171 << std::endl;
08838 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 171 << std::endl;
08839 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 171 << std::endl;
08840 #endif
08841 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
08842
08843 #ifdef MAP_ISO_DEBUG
08844 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 171 << std::endl;
08845 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 171 << std::endl;
08846 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 171 << std::endl;
08847 #endif
08848 }
08849
08850 template<>
08851 void AddLinesAndFaces<172>(IndexedVertexArray& va,unsigned int vertex_id[12] )
08852 {
08853 va.AddLine(vertex_id[3],vertex_id[1]);
08854 va.AddLine(vertex_id[5],vertex_id[1]);
08855 va.AddLine(vertex_id[6],vertex_id[1]);
08856 va.AddLine(vertex_id[6],vertex_id[5]);
08857 va.AddLine(vertex_id[8],vertex_id[5]);
08858 va.AddLine(vertex_id[9],vertex_id[1]);
08859 va.AddLine(vertex_id[9],vertex_id[5]);
08860 va.AddLine(vertex_id[9],vertex_id[6]);
08861 va.AddLine(vertex_id[9],vertex_id[8]);
08862 va.AddLine(vertex_id[10],vertex_id[6]);
08863 va.AddLine(vertex_id[10],vertex_id[8]);
08864 va.AddLine(vertex_id[10],vertex_id[9]);
08865 va.AddLine(vertex_id[11],vertex_id[3]);
08866 va.AddLine(vertex_id[11],vertex_id[8]);
08867 va.AddLine(vertex_id[11],vertex_id[9]);
08868 va.AddLine(vertex_id[11],vertex_id[10]);
08869 va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[8]);
08870
08871 #ifdef MAP_ISO_DEBUG
08872 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
08873 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 172 << std::endl;
08874 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 172 << std::endl;
08875 #endif
08876 va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[10]);
08877
08878 #ifdef MAP_ISO_DEBUG
08879 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
08880 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 172 << std::endl;
08881 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 172 << std::endl;
08882 #endif
08883 va.AddTriN(vertex_id[11],vertex_id[9],vertex_id[6]);
08884
08885 #ifdef MAP_ISO_DEBUG
08886 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
08887 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 172 << std::endl;
08888 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 172 << std::endl;
08889 #endif
08890 va.AddTriN(vertex_id[11],vertex_id[8],vertex_id[9]);
08891
08892 #ifdef MAP_ISO_DEBUG
08893 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
08894 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 172 << std::endl;
08895 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 172 << std::endl;
08896 #endif
08897 va.AddTriN(vertex_id[11],vertex_id[5],vertex_id[8]);
08898
08899 #ifdef MAP_ISO_DEBUG
08900 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
08901 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 172 << std::endl;
08902 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 172 << std::endl;
08903 #endif
08904 va.AddTriN(vertex_id[11],vertex_id[9],vertex_id[5]);
08905
08906 #ifdef MAP_ISO_DEBUG
08907 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
08908 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 172 << std::endl;
08909 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 172 << std::endl;
08910 #endif
08911 va.AddTriN(vertex_id[11],vertex_id[1],vertex_id[9]);
08912
08913 #ifdef MAP_ISO_DEBUG
08914 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
08915 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 172 << std::endl;
08916 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 172 << std::endl;
08917 #endif
08918 va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[1]);
08919
08920 #ifdef MAP_ISO_DEBUG
08921 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
08922 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 172 << std::endl;
08923 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 172 << std::endl;
08924 #endif
08925 va.AddTriN(vertex_id[11],vertex_id[5],vertex_id[6]);
08926
08927 #ifdef MAP_ISO_DEBUG
08928 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
08929 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 172 << std::endl;
08930 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 172 << std::endl;
08931 #endif
08932 va.AddTriN(vertex_id[11],vertex_id[1],vertex_id[5]);
08933
08934 #ifdef MAP_ISO_DEBUG
08935 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
08936 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 172 << std::endl;
08937 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 172 << std::endl;
08938 #endif
08939 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[1]);
08940
08941 #ifdef MAP_ISO_DEBUG
08942 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
08943 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 172 << std::endl;
08944 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 172 << std::endl;
08945 #endif
08946 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
08947
08948 #ifdef MAP_ISO_DEBUG
08949 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 172 << std::endl;
08950 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
08951 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 172 << std::endl;
08952 #endif
08953 }
08954
08955 template<>
08956 void AddLinesAndFaces<173>(IndexedVertexArray& va,unsigned int vertex_id[12] )
08957 {
08958 va.AddLine(vertex_id[1],vertex_id[0]);
08959 va.AddLine(vertex_id[4],vertex_id[0]);
08960 va.AddLine(vertex_id[5],vertex_id[0]);
08961 va.AddLine(vertex_id[5],vertex_id[1]);
08962 va.AddLine(vertex_id[5],vertex_id[4]);
08963 va.AddLine(vertex_id[6],vertex_id[1]);
08964 va.AddLine(vertex_id[6],vertex_id[5]);
08965 va.AddLine(vertex_id[8],vertex_id[0]);
08966 va.AddLine(vertex_id[8],vertex_id[4]);
08967 va.AddLine(vertex_id[8],vertex_id[5]);
08968 va.AddLine(vertex_id[9],vertex_id[1]);
08969 va.AddLine(vertex_id[9],vertex_id[5]);
08970 va.AddLine(vertex_id[9],vertex_id[6]);
08971 va.AddLine(vertex_id[9],vertex_id[8]);
08972 va.AddLine(vertex_id[10],vertex_id[6]);
08973 va.AddLine(vertex_id[10],vertex_id[8]);
08974 va.AddLine(vertex_id[10],vertex_id[9]);
08975 va.AddLine(vertex_id[11],vertex_id[4]);
08976 va.AddLine(vertex_id[11],vertex_id[8]);
08977 va.AddLine(vertex_id[11],vertex_id[9]);
08978 va.AddLine(vertex_id[11],vertex_id[10]);
08979 va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[0]);
08980
08981 #ifdef MAP_ISO_DEBUG
08982 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
08983 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 173 << std::endl;
08984 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 173 << std::endl;
08985 #endif
08986 va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[4]);
08987
08988 #ifdef MAP_ISO_DEBUG
08989 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
08990 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 173 << std::endl;
08991 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 173 << std::endl;
08992 #endif
08993 va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[5]);
08994
08995 #ifdef MAP_ISO_DEBUG
08996 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
08997 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 173 << std::endl;
08998 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 173 << std::endl;
08999 #endif
09000 va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[0]);
09001
09002 #ifdef MAP_ISO_DEBUG
09003 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
09004 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 173 << std::endl;
09005 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 173 << std::endl;
09006 #endif
09007 va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[8]);
09008
09009 #ifdef MAP_ISO_DEBUG
09010 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
09011 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 173 << std::endl;
09012 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 173 << std::endl;
09013 #endif
09014 va.AddTriN(vertex_id[1],vertex_id[11],vertex_id[4]);
09015
09016 #ifdef MAP_ISO_DEBUG
09017 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
09018 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 173 << std::endl;
09019 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 173 << std::endl;
09020 #endif
09021 va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[11]);
09022
09023 #ifdef MAP_ISO_DEBUG
09024 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
09025 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 173 << std::endl;
09026 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 173 << std::endl;
09027 #endif
09028 va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[8]);
09029
09030 #ifdef MAP_ISO_DEBUG
09031 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
09032 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 173 << std::endl;
09033 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 173 << std::endl;
09034 #endif
09035 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
09036
09037 #ifdef MAP_ISO_DEBUG
09038 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 173 << std::endl;
09039 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 173 << std::endl;
09040 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
09041 #endif
09042 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
09043
09044 #ifdef MAP_ISO_DEBUG
09045 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 173 << std::endl;
09046 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 173 << std::endl;
09047 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 173 << std::endl;
09048 #endif
09049 va.AddTriN(vertex_id[8],vertex_id[6],vertex_id[10]);
09050
09051 #ifdef MAP_ISO_DEBUG
09052 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 173 << std::endl;
09053 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 173 << std::endl;
09054 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 173 << std::endl;
09055 #endif
09056 va.AddTriN(vertex_id[8],vertex_id[9],vertex_id[6]);
09057
09058 #ifdef MAP_ISO_DEBUG
09059 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 173 << std::endl;
09060 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 173 << std::endl;
09061 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 173 << std::endl;
09062 #endif
09063 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
09064
09065 #ifdef MAP_ISO_DEBUG
09066 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 173 << std::endl;
09067 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 173 << std::endl;
09068 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 173 << std::endl;
09069 #endif
09070 }
09071
09072 template<>
09073 void AddLinesAndFaces<174>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09074 {
09075 va.AddLine(vertex_id[3],vertex_id[0]);
09076 va.AddLine(vertex_id[8],vertex_id[0]);
09077 va.AddLine(vertex_id[9],vertex_id[6]);
09078 va.AddLine(vertex_id[9],vertex_id[8]);
09079 va.AddLine(vertex_id[10],vertex_id[6]);
09080 va.AddLine(vertex_id[10],vertex_id[8]);
09081 va.AddLine(vertex_id[10],vertex_id[9]);
09082 va.AddLine(vertex_id[11],vertex_id[3]);
09083 va.AddLine(vertex_id[11],vertex_id[8]);
09084 va.AddLine(vertex_id[11],vertex_id[9]);
09085 va.AddLine(vertex_id[11],vertex_id[10]);
09086 va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[8]);
09087
09088 #ifdef MAP_ISO_DEBUG
09089 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 174 << std::endl;
09090 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 174 << std::endl;
09091 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 174 << std::endl;
09092 #endif
09093 va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[10]);
09094
09095 #ifdef MAP_ISO_DEBUG
09096 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 174 << std::endl;
09097 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 174 << std::endl;
09098 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 174 << std::endl;
09099 #endif
09100 va.AddTriN(vertex_id[11],vertex_id[9],vertex_id[6]);
09101
09102 #ifdef MAP_ISO_DEBUG
09103 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 174 << std::endl;
09104 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 174 << std::endl;
09105 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 174 << std::endl;
09106 #endif
09107 va.AddTriN(vertex_id[11],vertex_id[8],vertex_id[9]);
09108
09109 #ifdef MAP_ISO_DEBUG
09110 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 174 << std::endl;
09111 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 174 << std::endl;
09112 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 174 << std::endl;
09113 #endif
09114 va.AddTriN(vertex_id[11],vertex_id[0],vertex_id[8]);
09115
09116 #ifdef MAP_ISO_DEBUG
09117 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 174 << std::endl;
09118 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 174 << std::endl;
09119 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 174 << std::endl;
09120 #endif
09121 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[0]);
09122
09123 #ifdef MAP_ISO_DEBUG
09124 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 174 << std::endl;
09125 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 174 << std::endl;
09126 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 174 << std::endl;
09127 #endif
09128 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
09129
09130 #ifdef MAP_ISO_DEBUG
09131 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 174 << std::endl;
09132 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 174 << std::endl;
09133 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 174 << std::endl;
09134 #endif
09135 }
09136
09137 template<>
09138 void AddLinesAndFaces<175>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09139 {
09140 va.AddLine(vertex_id[8],vertex_id[4]);
09141 va.AddLine(vertex_id[9],vertex_id[6]);
09142 va.AddLine(vertex_id[9],vertex_id[8]);
09143 va.AddLine(vertex_id[10],vertex_id[6]);
09144 va.AddLine(vertex_id[10],vertex_id[8]);
09145 va.AddLine(vertex_id[10],vertex_id[9]);
09146 va.AddLine(vertex_id[11],vertex_id[4]);
09147 va.AddLine(vertex_id[11],vertex_id[8]);
09148 va.AddLine(vertex_id[11],vertex_id[9]);
09149 va.AddLine(vertex_id[11],vertex_id[10]);
09150 va.AddTriN(vertex_id[8],vertex_id[11],vertex_id[4]);
09151
09152 #ifdef MAP_ISO_DEBUG
09153 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 175 << std::endl;
09154 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 175 << std::endl;
09155 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 175 << std::endl;
09156 #endif
09157 va.AddTriN(vertex_id[8],vertex_id[6],vertex_id[10]);
09158
09159 #ifdef MAP_ISO_DEBUG
09160 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 175 << std::endl;
09161 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 175 << std::endl;
09162 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 175 << std::endl;
09163 #endif
09164 va.AddTriN(vertex_id[8],vertex_id[9],vertex_id[6]);
09165
09166 #ifdef MAP_ISO_DEBUG
09167 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 175 << std::endl;
09168 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 175 << std::endl;
09169 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 175 << std::endl;
09170 #endif
09171 va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
09172
09173 #ifdef MAP_ISO_DEBUG
09174 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 175 << std::endl;
09175 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 175 << std::endl;
09176 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 175 << std::endl;
09177 #endif
09178 }
09179
09180 template<>
09181 void AddLinesAndFaces<176>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09182 {
09183 va.AddLine(vertex_id[5],vertex_id[4]);
09184 va.AddLine(vertex_id[7],vertex_id[4]);
09185 va.AddLine(vertex_id[9],vertex_id[5]);
09186 va.AddLine(vertex_id[10],vertex_id[7]);
09187 va.AddLine(vertex_id[10],vertex_id[9]);
09188 va.AddTriN(vertex_id[9],vertex_id[7],vertex_id[10]);
09189
09190 #ifdef MAP_ISO_DEBUG
09191 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 176 << std::endl;
09192 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 176 << std::endl;
09193 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 176 << std::endl;
09194 #endif
09195 va.AddTriN(vertex_id[9],vertex_id[4],vertex_id[7]);
09196
09197 #ifdef MAP_ISO_DEBUG
09198 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 176 << std::endl;
09199 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 176 << std::endl;
09200 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 176 << std::endl;
09201 #endif
09202 va.AddTriN(vertex_id[9],vertex_id[5],vertex_id[4]);
09203
09204 #ifdef MAP_ISO_DEBUG
09205 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 176 << std::endl;
09206 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 176 << std::endl;
09207 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 176 << std::endl;
09208 #endif
09209 }
09210
09211 template<>
09212 void AddLinesAndFaces<177>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09213 {
09214 va.AddLine(vertex_id[3],vertex_id[0]);
09215 va.AddLine(vertex_id[5],vertex_id[0]);
09216 va.AddLine(vertex_id[7],vertex_id[3]);
09217 va.AddLine(vertex_id[9],vertex_id[5]);
09218 va.AddLine(vertex_id[10],vertex_id[7]);
09219 va.AddLine(vertex_id[10],vertex_id[9]);
09220 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[0]);
09221
09222 #ifdef MAP_ISO_DEBUG
09223 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 177 << std::endl;
09224 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 177 << std::endl;
09225 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 177 << std::endl;
09226 #endif
09227 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[5]);
09228
09229 #ifdef MAP_ISO_DEBUG
09230 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 177 << std::endl;
09231 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 177 << std::endl;
09232 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 177 << std::endl;
09233 #endif
09234 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[9]);
09235
09236 #ifdef MAP_ISO_DEBUG
09237 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 177 << std::endl;
09238 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 177 << std::endl;
09239 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 177 << std::endl;
09240 #endif
09241 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[10]);
09242
09243 #ifdef MAP_ISO_DEBUG
09244 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 177 << std::endl;
09245 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 177 << std::endl;
09246 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 177 << std::endl;
09247 #endif
09248 }
09249
09250 template<>
09251 void AddLinesAndFaces<178>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09252 {
09253 va.AddLine(vertex_id[1],vertex_id[0]);
09254 va.AddLine(vertex_id[4],vertex_id[0]);
09255 va.AddLine(vertex_id[7],vertex_id[4]);
09256 va.AddLine(vertex_id[9],vertex_id[1]);
09257 va.AddLine(vertex_id[10],vertex_id[7]);
09258 va.AddLine(vertex_id[10],vertex_id[9]);
09259 va.AddTriN(vertex_id[9],vertex_id[7],vertex_id[10]);
09260
09261 #ifdef MAP_ISO_DEBUG
09262 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 178 << std::endl;
09263 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 178 << std::endl;
09264 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 178 << std::endl;
09265 #endif
09266 va.AddTriN(vertex_id[9],vertex_id[4],vertex_id[7]);
09267
09268 #ifdef MAP_ISO_DEBUG
09269 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 178 << std::endl;
09270 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 178 << std::endl;
09271 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 178 << std::endl;
09272 #endif
09273 va.AddTriN(vertex_id[9],vertex_id[0],vertex_id[4]);
09274
09275 #ifdef MAP_ISO_DEBUG
09276 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 178 << std::endl;
09277 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 178 << std::endl;
09278 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 178 << std::endl;
09279 #endif
09280 va.AddTriN(vertex_id[9],vertex_id[1],vertex_id[0]);
09281
09282 #ifdef MAP_ISO_DEBUG
09283 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 178 << std::endl;
09284 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 178 << std::endl;
09285 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 178 << std::endl;
09286 #endif
09287 }
09288
09289 template<>
09290 void AddLinesAndFaces<179>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09291 {
09292 va.AddLine(vertex_id[3],vertex_id[1]);
09293 va.AddLine(vertex_id[7],vertex_id[3]);
09294 va.AddLine(vertex_id[9],vertex_id[1]);
09295 va.AddLine(vertex_id[10],vertex_id[7]);
09296 va.AddLine(vertex_id[10],vertex_id[9]);
09297 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
09298
09299 #ifdef MAP_ISO_DEBUG
09300 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 179 << std::endl;
09301 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 179 << std::endl;
09302 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 179 << std::endl;
09303 #endif
09304 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[9]);
09305
09306 #ifdef MAP_ISO_DEBUG
09307 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 179 << std::endl;
09308 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 179 << std::endl;
09309 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 179 << std::endl;
09310 #endif
09311 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[10]);
09312
09313 #ifdef MAP_ISO_DEBUG
09314 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 179 << std::endl;
09315 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 179 << std::endl;
09316 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 179 << std::endl;
09317 #endif
09318 }
09319
09320 template<>
09321 void AddLinesAndFaces<180>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09322 {
09323 va.AddLine(vertex_id[2],vertex_id[1]);
09324 va.AddLine(vertex_id[5],vertex_id[1]);
09325 va.AddLine(vertex_id[5],vertex_id[4]);
09326 va.AddLine(vertex_id[6],vertex_id[1]);
09327 va.AddLine(vertex_id[6],vertex_id[2]);
09328 va.AddLine(vertex_id[6],vertex_id[5]);
09329 va.AddLine(vertex_id[7],vertex_id[2]);
09330 va.AddLine(vertex_id[7],vertex_id[4]);
09331 va.AddLine(vertex_id[7],vertex_id[6]);
09332 va.AddLine(vertex_id[9],vertex_id[1]);
09333 va.AddLine(vertex_id[9],vertex_id[5]);
09334 va.AddLine(vertex_id[9],vertex_id[6]);
09335 va.AddLine(vertex_id[10],vertex_id[2]);
09336 va.AddLine(vertex_id[10],vertex_id[6]);
09337 va.AddLine(vertex_id[10],vertex_id[7]);
09338 va.AddLine(vertex_id[10],vertex_id[9]);
09339 va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[4]);
09340
09341 #ifdef MAP_ISO_DEBUG
09342 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 180 << std::endl;
09343 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 180 << std::endl;
09344 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 180 << std::endl;
09345 #endif
09346 va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[5]);
09347
09348 #ifdef MAP_ISO_DEBUG
09349 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 180 << std::endl;
09350 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 180 << std::endl;
09351 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 180 << std::endl;
09352 #endif
09353 va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[1]);
09354
09355 #ifdef MAP_ISO_DEBUG
09356 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 180 << std::endl;
09357 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 180 << std::endl;
09358 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 180 << std::endl;
09359 #endif
09360 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
09361
09362 #ifdef MAP_ISO_DEBUG
09363 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 180 << std::endl;
09364 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 180 << std::endl;
09365 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 180 << std::endl;
09366 #endif
09367 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
09368
09369 #ifdef MAP_ISO_DEBUG
09370 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 180 << std::endl;
09371 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 180 << std::endl;
09372 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 180 << std::endl;
09373 #endif
09374 va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[2]);
09375
09376 #ifdef MAP_ISO_DEBUG
09377 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 180 << std::endl;
09378 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 180 << std::endl;
09379 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 180 << std::endl;
09380 #endif
09381 va.AddTriN(vertex_id[10],vertex_id[6],vertex_id[9]);
09382
09383 #ifdef MAP_ISO_DEBUG
09384 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 180 << std::endl;
09385 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 180 << std::endl;
09386 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 180 << std::endl;
09387 #endif
09388 va.AddTriN(vertex_id[10],vertex_id[7],vertex_id[6]);
09389
09390 #ifdef MAP_ISO_DEBUG
09391 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 180 << std::endl;
09392 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 180 << std::endl;
09393 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 180 << std::endl;
09394 #endif
09395 }
09396
09397 template<>
09398 void AddLinesAndFaces<181>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09399 {
09400 va.AddLine(vertex_id[1],vertex_id[0]);
09401 va.AddLine(vertex_id[2],vertex_id[0]);
09402 va.AddLine(vertex_id[2],vertex_id[1]);
09403 va.AddLine(vertex_id[3],vertex_id[0]);
09404 va.AddLine(vertex_id[3],vertex_id[1]);
09405 va.AddLine(vertex_id[3],vertex_id[2]);
09406 va.AddLine(vertex_id[5],vertex_id[0]);
09407 va.AddLine(vertex_id[5],vertex_id[1]);
09408 va.AddLine(vertex_id[6],vertex_id[1]);
09409 va.AddLine(vertex_id[6],vertex_id[2]);
09410 va.AddLine(vertex_id[6],vertex_id[5]);
09411 va.AddLine(vertex_id[7],vertex_id[2]);
09412 va.AddLine(vertex_id[7],vertex_id[3]);
09413 va.AddLine(vertex_id[7],vertex_id[6]);
09414 va.AddLine(vertex_id[9],vertex_id[1]);
09415 va.AddLine(vertex_id[9],vertex_id[5]);
09416 va.AddLine(vertex_id[9],vertex_id[6]);
09417 va.AddLine(vertex_id[10],vertex_id[2]);
09418 va.AddLine(vertex_id[10],vertex_id[6]);
09419 va.AddLine(vertex_id[10],vertex_id[7]);
09420 va.AddLine(vertex_id[10],vertex_id[9]);
09421 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
09422
09423 #ifdef MAP_ISO_DEBUG
09424 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 181 << std::endl;
09425 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 181 << std::endl;
09426 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 181 << std::endl;
09427 #endif
09428 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[0]);
09429
09430 #ifdef MAP_ISO_DEBUG
09431 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
09432 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 181 << std::endl;
09433 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 181 << std::endl;
09434 #endif
09435 va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[5]);
09436
09437 #ifdef MAP_ISO_DEBUG
09438 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
09439 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 181 << std::endl;
09440 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 181 << std::endl;
09441 #endif
09442 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
09443
09444 #ifdef MAP_ISO_DEBUG
09445 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
09446 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 181 << std::endl;
09447 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 181 << std::endl;
09448 #endif
09449 va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[6]);
09450
09451 #ifdef MAP_ISO_DEBUG
09452 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
09453 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 181 << std::endl;
09454 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 181 << std::endl;
09455 #endif
09456 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
09457
09458 #ifdef MAP_ISO_DEBUG
09459 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
09460 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 181 << std::endl;
09461 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 181 << std::endl;
09462 #endif
09463 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[9]);
09464
09465 #ifdef MAP_ISO_DEBUG
09466 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
09467 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 181 << std::endl;
09468 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 181 << std::endl;
09469 #endif
09470 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[5]);
09471
09472 #ifdef MAP_ISO_DEBUG
09473 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
09474 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 181 << std::endl;
09475 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 181 << std::endl;
09476 #endif
09477 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[6]);
09478
09479 #ifdef MAP_ISO_DEBUG
09480 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
09481 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 181 << std::endl;
09482 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 181 << std::endl;
09483 #endif
09484 va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[7]);
09485
09486 #ifdef MAP_ISO_DEBUG
09487 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
09488 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 181 << std::endl;
09489 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 181 << std::endl;
09490 #endif
09491 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
09492
09493 #ifdef MAP_ISO_DEBUG
09494 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
09495 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 181 << std::endl;
09496 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 181 << std::endl;
09497 #endif
09498 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[10]);
09499
09500 #ifdef MAP_ISO_DEBUG
09501 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
09502 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 181 << std::endl;
09503 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 181 << std::endl;
09504 #endif
09505 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[6]);
09506
09507 #ifdef MAP_ISO_DEBUG
09508 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
09509 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 181 << std::endl;
09510 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 181 << std::endl;
09511 #endif
09512 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[9]);
09513
09514 #ifdef MAP_ISO_DEBUG
09515 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
09516 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 181 << std::endl;
09517 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 181 << std::endl;
09518 #endif
09519 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[10]);
09520
09521 #ifdef MAP_ISO_DEBUG
09522 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
09523 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 181 << std::endl;
09524 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 181 << std::endl;
09525 #endif
09526 }
09527
09528 template<>
09529 void AddLinesAndFaces<182>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09530 {
09531 va.AddLine(vertex_id[2],vertex_id[0]);
09532 va.AddLine(vertex_id[4],vertex_id[0]);
09533 va.AddLine(vertex_id[6],vertex_id[2]);
09534 va.AddLine(vertex_id[7],vertex_id[2]);
09535 va.AddLine(vertex_id[7],vertex_id[4]);
09536 va.AddLine(vertex_id[7],vertex_id[6]);
09537 va.AddLine(vertex_id[9],vertex_id[6]);
09538 va.AddLine(vertex_id[10],vertex_id[2]);
09539 va.AddLine(vertex_id[10],vertex_id[6]);
09540 va.AddLine(vertex_id[10],vertex_id[7]);
09541 va.AddLine(vertex_id[10],vertex_id[9]);
09542 va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[4]);
09543
09544 #ifdef MAP_ISO_DEBUG
09545 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 182 << std::endl;
09546 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 182 << std::endl;
09547 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 182 << std::endl;
09548 #endif
09549 va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[0]);
09550
09551 #ifdef MAP_ISO_DEBUG
09552 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 182 << std::endl;
09553 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 182 << std::endl;
09554 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 182 << std::endl;
09555 #endif
09556 va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[2]);
09557
09558 #ifdef MAP_ISO_DEBUG
09559 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 182 << std::endl;
09560 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 182 << std::endl;
09561 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 182 << std::endl;
09562 #endif
09563 va.AddTriN(vertex_id[10],vertex_id[6],vertex_id[9]);
09564
09565 #ifdef MAP_ISO_DEBUG
09566 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 182 << std::endl;
09567 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 182 << std::endl;
09568 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 182 << std::endl;
09569 #endif
09570 va.AddTriN(vertex_id[10],vertex_id[7],vertex_id[6]);
09571
09572 #ifdef MAP_ISO_DEBUG
09573 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 182 << std::endl;
09574 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 182 << std::endl;
09575 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 182 << std::endl;
09576 #endif
09577 }
09578
09579 template<>
09580 void AddLinesAndFaces<183>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09581 {
09582 va.AddLine(vertex_id[3],vertex_id[2]);
09583 va.AddLine(vertex_id[6],vertex_id[2]);
09584 va.AddLine(vertex_id[7],vertex_id[2]);
09585 va.AddLine(vertex_id[7],vertex_id[3]);
09586 va.AddLine(vertex_id[7],vertex_id[6]);
09587 va.AddLine(vertex_id[9],vertex_id[6]);
09588 va.AddLine(vertex_id[10],vertex_id[2]);
09589 va.AddLine(vertex_id[10],vertex_id[6]);
09590 va.AddLine(vertex_id[10],vertex_id[7]);
09591 va.AddLine(vertex_id[10],vertex_id[9]);
09592 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
09593
09594 #ifdef MAP_ISO_DEBUG
09595 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 183 << std::endl;
09596 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 183 << std::endl;
09597 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 183 << std::endl;
09598 #endif
09599 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[6]);
09600
09601 #ifdef MAP_ISO_DEBUG
09602 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 183 << std::endl;
09603 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 183 << std::endl;
09604 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 183 << std::endl;
09605 #endif
09606 va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[7]);
09607
09608 #ifdef MAP_ISO_DEBUG
09609 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 183 << std::endl;
09610 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 183 << std::endl;
09611 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 183 << std::endl;
09612 #endif
09613 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
09614
09615 #ifdef MAP_ISO_DEBUG
09616 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 183 << std::endl;
09617 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 183 << std::endl;
09618 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 183 << std::endl;
09619 #endif
09620 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[10]);
09621
09622 #ifdef MAP_ISO_DEBUG
09623 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 183 << std::endl;
09624 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 183 << std::endl;
09625 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 183 << std::endl;
09626 #endif
09627 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[6]);
09628
09629 #ifdef MAP_ISO_DEBUG
09630 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 183 << std::endl;
09631 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 183 << std::endl;
09632 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 183 << std::endl;
09633 #endif
09634 va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[9]);
09635
09636 #ifdef MAP_ISO_DEBUG
09637 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 183 << std::endl;
09638 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 183 << std::endl;
09639 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 183 << std::endl;
09640 #endif
09641 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[10]);
09642
09643 #ifdef MAP_ISO_DEBUG
09644 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 183 << std::endl;
09645 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 183 << std::endl;
09646 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 183 << std::endl;
09647 #endif
09648 }
09649
09650 template<>
09651 void AddLinesAndFaces<184>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09652 {
09653 va.AddLine(vertex_id[3],vertex_id[2]);
09654 va.AddLine(vertex_id[4],vertex_id[3]);
09655 va.AddLine(vertex_id[5],vertex_id[4]);
09656 va.AddLine(vertex_id[9],vertex_id[5]);
09657 va.AddLine(vertex_id[10],vertex_id[2]);
09658 va.AddLine(vertex_id[10],vertex_id[9]);
09659 va.AddTriN(vertex_id[4],vertex_id[9],vertex_id[5]);
09660
09661 #ifdef MAP_ISO_DEBUG
09662 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 184 << std::endl;
09663 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 184 << std::endl;
09664 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 184 << std::endl;
09665 #endif
09666 va.AddTriN(vertex_id[4],vertex_id[10],vertex_id[9]);
09667
09668 #ifdef MAP_ISO_DEBUG
09669 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 184 << std::endl;
09670 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 184 << std::endl;
09671 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 184 << std::endl;
09672 #endif
09673 va.AddTriN(vertex_id[4],vertex_id[2],vertex_id[10]);
09674
09675 #ifdef MAP_ISO_DEBUG
09676 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 184 << std::endl;
09677 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 184 << std::endl;
09678 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 184 << std::endl;
09679 #endif
09680 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[2]);
09681
09682 #ifdef MAP_ISO_DEBUG
09683 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 184 << std::endl;
09684 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 184 << std::endl;
09685 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 184 << std::endl;
09686 #endif
09687 }
09688
09689 template<>
09690 void AddLinesAndFaces<185>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09691 {
09692 va.AddLine(vertex_id[2],vertex_id[0]);
09693 va.AddLine(vertex_id[5],vertex_id[0]);
09694 va.AddLine(vertex_id[9],vertex_id[5]);
09695 va.AddLine(vertex_id[10],vertex_id[2]);
09696 va.AddLine(vertex_id[10],vertex_id[9]);
09697 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[0]);
09698
09699 #ifdef MAP_ISO_DEBUG
09700 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 185 << std::endl;
09701 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 185 << std::endl;
09702 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 185 << std::endl;
09703 #endif
09704 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[5]);
09705
09706 #ifdef MAP_ISO_DEBUG
09707 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 185 << std::endl;
09708 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 185 << std::endl;
09709 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 185 << std::endl;
09710 #endif
09711 va.AddTriN(vertex_id[2],vertex_id[10],vertex_id[9]);
09712
09713 #ifdef MAP_ISO_DEBUG
09714 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 185 << std::endl;
09715 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 185 << std::endl;
09716 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 185 << std::endl;
09717 #endif
09718 }
09719
09720 template<>
09721 void AddLinesAndFaces<186>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09722 {
09723 va.AddLine(vertex_id[1],vertex_id[0]);
09724 va.AddLine(vertex_id[2],vertex_id[0]);
09725 va.AddLine(vertex_id[2],vertex_id[1]);
09726 va.AddLine(vertex_id[3],vertex_id[0]);
09727 va.AddLine(vertex_id[3],vertex_id[1]);
09728 va.AddLine(vertex_id[3],vertex_id[2]);
09729 va.AddLine(vertex_id[4],vertex_id[0]);
09730 va.AddLine(vertex_id[4],vertex_id[3]);
09731 va.AddLine(vertex_id[9],vertex_id[1]);
09732 va.AddLine(vertex_id[10],vertex_id[2]);
09733 va.AddLine(vertex_id[10],vertex_id[9]);
09734 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
09735
09736 #ifdef MAP_ISO_DEBUG
09737 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 186 << std::endl;
09738 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 186 << std::endl;
09739 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 186 << std::endl;
09740 #endif
09741 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
09742
09743 #ifdef MAP_ISO_DEBUG
09744 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 186 << std::endl;
09745 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 186 << std::endl;
09746 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 186 << std::endl;
09747 #endif
09748 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[10]);
09749
09750 #ifdef MAP_ISO_DEBUG
09751 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 186 << std::endl;
09752 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 186 << std::endl;
09753 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 186 << std::endl;
09754 #endif
09755 va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[9]);
09756
09757 #ifdef MAP_ISO_DEBUG
09758 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 186 << std::endl;
09759 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 186 << std::endl;
09760 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 186 << std::endl;
09761 #endif
09762 va.AddTriN(vertex_id[2],vertex_id[3],vertex_id[1]);
09763
09764 #ifdef MAP_ISO_DEBUG
09765 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 186 << std::endl;
09766 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 186 << std::endl;
09767 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 186 << std::endl;
09768 #endif
09769 }
09770
09771 template<>
09772 void AddLinesAndFaces<187>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09773 {
09774 va.AddLine(vertex_id[2],vertex_id[1]);
09775 va.AddLine(vertex_id[9],vertex_id[1]);
09776 va.AddLine(vertex_id[10],vertex_id[2]);
09777 va.AddLine(vertex_id[10],vertex_id[9]);
09778 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[1]);
09779
09780 #ifdef MAP_ISO_DEBUG
09781 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 187 << std::endl;
09782 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 187 << std::endl;
09783 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 187 << std::endl;
09784 #endif
09785 va.AddTriN(vertex_id[2],vertex_id[10],vertex_id[9]);
09786
09787 #ifdef MAP_ISO_DEBUG
09788 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 187 << std::endl;
09789 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 187 << std::endl;
09790 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 187 << std::endl;
09791 #endif
09792 }
09793
09794 template<>
09795 void AddLinesAndFaces<188>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09796 {
09797 va.AddLine(vertex_id[3],vertex_id[1]);
09798 va.AddLine(vertex_id[4],vertex_id[3]);
09799 va.AddLine(vertex_id[5],vertex_id[1]);
09800 va.AddLine(vertex_id[5],vertex_id[4]);
09801 va.AddLine(vertex_id[6],vertex_id[1]);
09802 va.AddLine(vertex_id[6],vertex_id[5]);
09803 va.AddLine(vertex_id[9],vertex_id[1]);
09804 va.AddLine(vertex_id[9],vertex_id[5]);
09805 va.AddLine(vertex_id[9],vertex_id[6]);
09806 va.AddLine(vertex_id[10],vertex_id[6]);
09807 va.AddLine(vertex_id[10],vertex_id[9]);
09808 va.AddTriN(vertex_id[4],vertex_id[1],vertex_id[5]);
09809
09810 #ifdef MAP_ISO_DEBUG
09811 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 188 << std::endl;
09812 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 188 << std::endl;
09813 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 188 << std::endl;
09814 #endif
09815 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[1]);
09816
09817 #ifdef MAP_ISO_DEBUG
09818 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 188 << std::endl;
09819 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 188 << std::endl;
09820 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 188 << std::endl;
09821 #endif
09822 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
09823
09824 #ifdef MAP_ISO_DEBUG
09825 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 188 << std::endl;
09826 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 188 << std::endl;
09827 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 188 << std::endl;
09828 #endif
09829 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
09830
09831 #ifdef MAP_ISO_DEBUG
09832 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 188 << std::endl;
09833 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 188 << std::endl;
09834 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 188 << std::endl;
09835 #endif
09836 va.AddTriN(vertex_id[10],vertex_id[9],vertex_id[6]);
09837
09838 #ifdef MAP_ISO_DEBUG
09839 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 188 << std::endl;
09840 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 188 << std::endl;
09841 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 188 << std::endl;
09842 #endif
09843 }
09844
09845 template<>
09846 void AddLinesAndFaces<189>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09847 {
09848 va.AddLine(vertex_id[1],vertex_id[0]);
09849 va.AddLine(vertex_id[5],vertex_id[0]);
09850 va.AddLine(vertex_id[5],vertex_id[1]);
09851 va.AddLine(vertex_id[6],vertex_id[1]);
09852 va.AddLine(vertex_id[6],vertex_id[5]);
09853 va.AddLine(vertex_id[9],vertex_id[1]);
09854 va.AddLine(vertex_id[9],vertex_id[5]);
09855 va.AddLine(vertex_id[9],vertex_id[6]);
09856 va.AddLine(vertex_id[10],vertex_id[6]);
09857 va.AddLine(vertex_id[10],vertex_id[9]);
09858 va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[0]);
09859
09860 #ifdef MAP_ISO_DEBUG
09861 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 189 << std::endl;
09862 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 189 << std::endl;
09863 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 189 << std::endl;
09864 #endif
09865 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
09866
09867 #ifdef MAP_ISO_DEBUG
09868 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 189 << std::endl;
09869 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 189 << std::endl;
09870 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 189 << std::endl;
09871 #endif
09872 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
09873
09874 #ifdef MAP_ISO_DEBUG
09875 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 189 << std::endl;
09876 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 189 << std::endl;
09877 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 189 << std::endl;
09878 #endif
09879 va.AddTriN(vertex_id[10],vertex_id[9],vertex_id[6]);
09880
09881 #ifdef MAP_ISO_DEBUG
09882 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 189 << std::endl;
09883 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 189 << std::endl;
09884 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 189 << std::endl;
09885 #endif
09886 }
09887
09888 template<>
09889 void AddLinesAndFaces<190>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09890 {
09891 va.AddLine(vertex_id[3],vertex_id[0]);
09892 va.AddLine(vertex_id[4],vertex_id[0]);
09893 va.AddLine(vertex_id[4],vertex_id[3]);
09894 va.AddLine(vertex_id[9],vertex_id[6]);
09895 va.AddLine(vertex_id[10],vertex_id[6]);
09896 va.AddLine(vertex_id[10],vertex_id[9]);
09897 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
09898
09899 #ifdef MAP_ISO_DEBUG
09900 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 190 << std::endl;
09901 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 190 << std::endl;
09902 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 190 << std::endl;
09903 #endif
09904 va.AddTriN(vertex_id[10],vertex_id[9],vertex_id[6]);
09905
09906 #ifdef MAP_ISO_DEBUG
09907 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 190 << std::endl;
09908 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 190 << std::endl;
09909 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 190 << std::endl;
09910 #endif
09911 }
09912
09913 template<>
09914 void AddLinesAndFaces<191>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09915 {
09916 va.AddLine(vertex_id[9],vertex_id[6]);
09917 va.AddLine(vertex_id[10],vertex_id[6]);
09918 va.AddLine(vertex_id[10],vertex_id[9]);
09919 va.AddTriN(vertex_id[10],vertex_id[9],vertex_id[6]);
09920
09921 #ifdef MAP_ISO_DEBUG
09922 if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 191 << std::endl;
09923 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 191 << std::endl;
09924 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 191 << std::endl;
09925 #endif
09926 }
09927
09928 template<>
09929 void AddLinesAndFaces<192>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09930 {
09931 va.AddLine(vertex_id[7],vertex_id[6]);
09932 va.AddLine(vertex_id[9],vertex_id[6]);
09933 va.AddLine(vertex_id[11],vertex_id[7]);
09934 va.AddLine(vertex_id[11],vertex_id[9]);
09935 va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[9]);
09936
09937 #ifdef MAP_ISO_DEBUG
09938 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 192 << std::endl;
09939 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 192 << std::endl;
09940 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 192 << std::endl;
09941 #endif
09942 va.AddTriN(vertex_id[11],vertex_id[7],vertex_id[6]);
09943
09944 #ifdef MAP_ISO_DEBUG
09945 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 192 << std::endl;
09946 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 192 << std::endl;
09947 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 192 << std::endl;
09948 #endif
09949 }
09950
09951 template<>
09952 void AddLinesAndFaces<193>(IndexedVertexArray& va,unsigned int vertex_id[12] )
09953 {
09954 va.AddLine(vertex_id[3],vertex_id[0]);
09955 va.AddLine(vertex_id[4],vertex_id[0]);
09956 va.AddLine(vertex_id[4],vertex_id[3]);
09957 va.AddLine(vertex_id[7],vertex_id[3]);
09958 va.AddLine(vertex_id[7],vertex_id[4]);
09959 va.AddLine(vertex_id[7],vertex_id[6]);
09960 va.AddLine(vertex_id[9],vertex_id[6]);
09961 va.AddLine(vertex_id[11],vertex_id[3]);
09962 va.AddLine(vertex_id[11],vertex_id[4]);
09963 va.AddLine(vertex_id[11],vertex_id[7]);
09964 va.AddLine(vertex_id[11],vertex_id[9]);
09965 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
09966
09967 #ifdef MAP_ISO_DEBUG
09968 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 193 << std::endl;
09969 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 193 << std::endl;
09970 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 193 << std::endl;
09971 #endif
09972 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
09973
09974 #ifdef MAP_ISO_DEBUG
09975 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 193 << std::endl;
09976 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 193 << std::endl;
09977 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 193 << std::endl;
09978 #endif
09979 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
09980
09981 #ifdef MAP_ISO_DEBUG
09982 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 193 << std::endl;
09983 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 193 << std::endl;
09984 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 193 << std::endl;
09985 #endif
09986 va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[9]);
09987
09988 #ifdef MAP_ISO_DEBUG
09989 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 193 << std::endl;
09990 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 193 << std::endl;
09991 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 193 << std::endl;
09992 #endif
09993 va.AddTriN(vertex_id[11],vertex_id[7],vertex_id[6]);
09994
09995 #ifdef MAP_ISO_DEBUG
09996 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 193 << std::endl;
09997 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 193 << std::endl;
09998 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 193 << std::endl;
09999 #endif
10000 }
10001
10002 template<>
10003 void AddLinesAndFaces<194>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10004 {
10005 va.AddLine(vertex_id[1],vertex_id[0]);
10006 va.AddLine(vertex_id[5],vertex_id[0]);
10007 va.AddLine(vertex_id[5],vertex_id[1]);
10008 va.AddLine(vertex_id[6],vertex_id[1]);
10009 va.AddLine(vertex_id[6],vertex_id[5]);
10010 va.AddLine(vertex_id[7],vertex_id[6]);
10011 va.AddLine(vertex_id[9],vertex_id[1]);
10012 va.AddLine(vertex_id[9],vertex_id[5]);
10013 va.AddLine(vertex_id[9],vertex_id[6]);
10014 va.AddLine(vertex_id[11],vertex_id[7]);
10015 va.AddLine(vertex_id[11],vertex_id[9]);
10016 va.AddTriN(vertex_id[5],vertex_id[1],vertex_id[0]);
10017
10018 #ifdef MAP_ISO_DEBUG
10019 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 194 << std::endl;
10020 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 194 << std::endl;
10021 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 194 << std::endl;
10022 #endif
10023 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
10024
10025 #ifdef MAP_ISO_DEBUG
10026 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 194 << std::endl;
10027 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 194 << std::endl;
10028 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 194 << std::endl;
10029 #endif
10030 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
10031
10032 #ifdef MAP_ISO_DEBUG
10033 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 194 << std::endl;
10034 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 194 << std::endl;
10035 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 194 << std::endl;
10036 #endif
10037 va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[9]);
10038
10039 #ifdef MAP_ISO_DEBUG
10040 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 194 << std::endl;
10041 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 194 << std::endl;
10042 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 194 << std::endl;
10043 #endif
10044 va.AddTriN(vertex_id[11],vertex_id[7],vertex_id[6]);
10045
10046 #ifdef MAP_ISO_DEBUG
10047 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 194 << std::endl;
10048 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 194 << std::endl;
10049 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 194 << std::endl;
10050 #endif
10051 }
10052
10053 template<>
10054 void AddLinesAndFaces<195>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10055 {
10056 va.AddLine(vertex_id[3],vertex_id[1]);
10057 va.AddLine(vertex_id[4],vertex_id[3]);
10058 va.AddLine(vertex_id[5],vertex_id[1]);
10059 va.AddLine(vertex_id[5],vertex_id[4]);
10060 va.AddLine(vertex_id[6],vertex_id[1]);
10061 va.AddLine(vertex_id[6],vertex_id[5]);
10062 va.AddLine(vertex_id[7],vertex_id[3]);
10063 va.AddLine(vertex_id[7],vertex_id[4]);
10064 va.AddLine(vertex_id[7],vertex_id[6]);
10065 va.AddLine(vertex_id[9],vertex_id[1]);
10066 va.AddLine(vertex_id[9],vertex_id[5]);
10067 va.AddLine(vertex_id[9],vertex_id[6]);
10068 va.AddLine(vertex_id[11],vertex_id[3]);
10069 va.AddLine(vertex_id[11],vertex_id[4]);
10070 va.AddLine(vertex_id[11],vertex_id[7]);
10071 va.AddLine(vertex_id[11],vertex_id[9]);
10072 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
10073
10074 #ifdef MAP_ISO_DEBUG
10075 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 195 << std::endl;
10076 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 195 << std::endl;
10077 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 195 << std::endl;
10078 #endif
10079 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[5]);
10080
10081 #ifdef MAP_ISO_DEBUG
10082 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 195 << std::endl;
10083 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 195 << std::endl;
10084 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 195 << std::endl;
10085 #endif
10086 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
10087
10088 #ifdef MAP_ISO_DEBUG
10089 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 195 << std::endl;
10090 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 195 << std::endl;
10091 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 195 << std::endl;
10092 #endif
10093 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
10094
10095 #ifdef MAP_ISO_DEBUG
10096 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 195 << std::endl;
10097 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 195 << std::endl;
10098 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 195 << std::endl;
10099 #endif
10100 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
10101
10102 #ifdef MAP_ISO_DEBUG
10103 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 195 << std::endl;
10104 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 195 << std::endl;
10105 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 195 << std::endl;
10106 #endif
10107 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
10108
10109 #ifdef MAP_ISO_DEBUG
10110 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 195 << std::endl;
10111 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 195 << std::endl;
10112 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 195 << std::endl;
10113 #endif
10114 va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[9]);
10115
10116 #ifdef MAP_ISO_DEBUG
10117 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 195 << std::endl;
10118 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 195 << std::endl;
10119 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 195 << std::endl;
10120 #endif
10121 va.AddTriN(vertex_id[11],vertex_id[7],vertex_id[6]);
10122
10123 #ifdef MAP_ISO_DEBUG
10124 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 195 << std::endl;
10125 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 195 << std::endl;
10126 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 195 << std::endl;
10127 #endif
10128 }
10129
10130 template<>
10131 void AddLinesAndFaces<196>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10132 {
10133 va.AddLine(vertex_id[2],vertex_id[1]);
10134 va.AddLine(vertex_id[7],vertex_id[2]);
10135 va.AddLine(vertex_id[9],vertex_id[1]);
10136 va.AddLine(vertex_id[11],vertex_id[7]);
10137 va.AddLine(vertex_id[11],vertex_id[9]);
10138 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[11]);
10139
10140 #ifdef MAP_ISO_DEBUG
10141 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 196 << std::endl;
10142 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 196 << std::endl;
10143 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 196 << std::endl;
10144 #endif
10145 va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[9]);
10146
10147 #ifdef MAP_ISO_DEBUG
10148 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 196 << std::endl;
10149 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 196 << std::endl;
10150 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 196 << std::endl;
10151 #endif
10152 va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[1]);
10153
10154 #ifdef MAP_ISO_DEBUG
10155 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 196 << std::endl;
10156 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 196 << std::endl;
10157 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 196 << std::endl;
10158 #endif
10159 }
10160
10161 template<>
10162 void AddLinesAndFaces<197>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10163 {
10164 va.AddLine(vertex_id[1],vertex_id[0]);
10165 va.AddLine(vertex_id[2],vertex_id[0]);
10166 va.AddLine(vertex_id[2],vertex_id[1]);
10167 va.AddLine(vertex_id[3],vertex_id[0]);
10168 va.AddLine(vertex_id[3],vertex_id[1]);
10169 va.AddLine(vertex_id[3],vertex_id[2]);
10170 va.AddLine(vertex_id[4],vertex_id[0]);
10171 va.AddLine(vertex_id[4],vertex_id[3]);
10172 va.AddLine(vertex_id[7],vertex_id[2]);
10173 va.AddLine(vertex_id[7],vertex_id[3]);
10174 va.AddLine(vertex_id[7],vertex_id[4]);
10175 va.AddLine(vertex_id[9],vertex_id[1]);
10176 va.AddLine(vertex_id[11],vertex_id[3]);
10177 va.AddLine(vertex_id[11],vertex_id[4]);
10178 va.AddLine(vertex_id[11],vertex_id[7]);
10179 va.AddLine(vertex_id[11],vertex_id[9]);
10180 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
10181
10182 #ifdef MAP_ISO_DEBUG
10183 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 197 << std::endl;
10184 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 197 << std::endl;
10185 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 197 << std::endl;
10186 #endif
10187 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
10188
10189 #ifdef MAP_ISO_DEBUG
10190 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 197 << std::endl;
10191 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 197 << std::endl;
10192 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 197 << std::endl;
10193 #endif
10194 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
10195
10196 #ifdef MAP_ISO_DEBUG
10197 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 197 << std::endl;
10198 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 197 << std::endl;
10199 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 197 << std::endl;
10200 #endif
10201 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[9]);
10202
10203 #ifdef MAP_ISO_DEBUG
10204 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 197 << std::endl;
10205 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 197 << std::endl;
10206 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 197 << std::endl;
10207 #endif
10208 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[2]);
10209
10210 #ifdef MAP_ISO_DEBUG
10211 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 197 << std::endl;
10212 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 197 << std::endl;
10213 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 197 << std::endl;
10214 #endif
10215 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[4]);
10216
10217 #ifdef MAP_ISO_DEBUG
10218 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 197 << std::endl;
10219 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 197 << std::endl;
10220 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 197 << std::endl;
10221 #endif
10222 }
10223
10224 template<>
10225 void AddLinesAndFaces<198>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10226 {
10227 va.AddLine(vertex_id[2],vertex_id[0]);
10228 va.AddLine(vertex_id[5],vertex_id[0]);
10229 va.AddLine(vertex_id[7],vertex_id[2]);
10230 va.AddLine(vertex_id[9],vertex_id[5]);
10231 va.AddLine(vertex_id[11],vertex_id[7]);
10232 va.AddLine(vertex_id[11],vertex_id[9]);
10233 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[11]);
10234
10235 #ifdef MAP_ISO_DEBUG
10236 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 198 << std::endl;
10237 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 198 << std::endl;
10238 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 198 << std::endl;
10239 #endif
10240 va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[9]);
10241
10242 #ifdef MAP_ISO_DEBUG
10243 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 198 << std::endl;
10244 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 198 << std::endl;
10245 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 198 << std::endl;
10246 #endif
10247 va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[5]);
10248
10249 #ifdef MAP_ISO_DEBUG
10250 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 198 << std::endl;
10251 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 198 << std::endl;
10252 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 198 << std::endl;
10253 #endif
10254 va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[0]);
10255
10256 #ifdef MAP_ISO_DEBUG
10257 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 198 << std::endl;
10258 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 198 << std::endl;
10259 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 198 << std::endl;
10260 #endif
10261 }
10262
10263 template<>
10264 void AddLinesAndFaces<199>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10265 {
10266 va.AddLine(vertex_id[3],vertex_id[2]);
10267 va.AddLine(vertex_id[4],vertex_id[3]);
10268 va.AddLine(vertex_id[5],vertex_id[4]);
10269 va.AddLine(vertex_id[7],vertex_id[2]);
10270 va.AddLine(vertex_id[7],vertex_id[3]);
10271 va.AddLine(vertex_id[7],vertex_id[4]);
10272 va.AddLine(vertex_id[9],vertex_id[5]);
10273 va.AddLine(vertex_id[11],vertex_id[3]);
10274 va.AddLine(vertex_id[11],vertex_id[4]);
10275 va.AddLine(vertex_id[11],vertex_id[7]);
10276 va.AddLine(vertex_id[11],vertex_id[9]);
10277 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[2]);
10278
10279 #ifdef MAP_ISO_DEBUG
10280 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 199 << std::endl;
10281 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 199 << std::endl;
10282 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 199 << std::endl;
10283 #endif
10284 va.AddTriN(vertex_id[4],vertex_id[11],vertex_id[3]);
10285
10286 #ifdef MAP_ISO_DEBUG
10287 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 199 << std::endl;
10288 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 199 << std::endl;
10289 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 199 << std::endl;
10290 #endif
10291 va.AddTriN(vertex_id[5],vertex_id[7],vertex_id[4]);
10292
10293 #ifdef MAP_ISO_DEBUG
10294 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 199 << std::endl;
10295 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 199 << std::endl;
10296 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 199 << std::endl;
10297 #endif
10298 va.AddTriN(vertex_id[5],vertex_id[11],vertex_id[7]);
10299
10300 #ifdef MAP_ISO_DEBUG
10301 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 199 << std::endl;
10302 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 199 << std::endl;
10303 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 199 << std::endl;
10304 #endif
10305 va.AddTriN(vertex_id[5],vertex_id[9],vertex_id[11]);
10306
10307 #ifdef MAP_ISO_DEBUG
10308 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 199 << std::endl;
10309 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 199 << std::endl;
10310 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 199 << std::endl;
10311 #endif
10312 }
10313
10314 template<>
10315 void AddLinesAndFaces<200>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10316 {
10317 va.AddLine(vertex_id[3],vertex_id[2]);
10318 va.AddLine(vertex_id[6],vertex_id[2]);
10319 va.AddLine(vertex_id[9],vertex_id[6]);
10320 va.AddLine(vertex_id[11],vertex_id[3]);
10321 va.AddLine(vertex_id[11],vertex_id[9]);
10322 va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[9]);
10323
10324 #ifdef MAP_ISO_DEBUG
10325 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 200 << std::endl;
10326 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 200 << std::endl;
10327 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 200 << std::endl;
10328 #endif
10329 va.AddTriN(vertex_id[11],vertex_id[2],vertex_id[6]);
10330
10331 #ifdef MAP_ISO_DEBUG
10332 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 200 << std::endl;
10333 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 200 << std::endl;
10334 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 200 << std::endl;
10335 #endif
10336 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[2]);
10337
10338 #ifdef MAP_ISO_DEBUG
10339 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 200 << std::endl;
10340 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 200 << std::endl;
10341 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 200 << std::endl;
10342 #endif
10343 }
10344
10345 template<>
10346 void AddLinesAndFaces<201>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10347 {
10348 va.AddLine(vertex_id[2],vertex_id[0]);
10349 va.AddLine(vertex_id[4],vertex_id[0]);
10350 va.AddLine(vertex_id[6],vertex_id[2]);
10351 va.AddLine(vertex_id[9],vertex_id[6]);
10352 va.AddLine(vertex_id[11],vertex_id[4]);
10353 va.AddLine(vertex_id[11],vertex_id[9]);
10354 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[0]);
10355
10356 #ifdef MAP_ISO_DEBUG
10357 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 201 << std::endl;
10358 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 201 << std::endl;
10359 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 201 << std::endl;
10360 #endif
10361 va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[4]);
10362
10363 #ifdef MAP_ISO_DEBUG
10364 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 201 << std::endl;
10365 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 201 << std::endl;
10366 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 201 << std::endl;
10367 #endif
10368 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[11]);
10369
10370 #ifdef MAP_ISO_DEBUG
10371 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 201 << std::endl;
10372 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 201 << std::endl;
10373 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 201 << std::endl;
10374 #endif
10375 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[9]);
10376
10377 #ifdef MAP_ISO_DEBUG
10378 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 201 << std::endl;
10379 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 201 << std::endl;
10380 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 201 << std::endl;
10381 #endif
10382 }
10383
10384 template<>
10385 void AddLinesAndFaces<202>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10386 {
10387 va.AddLine(vertex_id[1],vertex_id[0]);
10388 va.AddLine(vertex_id[2],vertex_id[0]);
10389 va.AddLine(vertex_id[2],vertex_id[1]);
10390 va.AddLine(vertex_id[3],vertex_id[0]);
10391 va.AddLine(vertex_id[3],vertex_id[1]);
10392 va.AddLine(vertex_id[3],vertex_id[2]);
10393 va.AddLine(vertex_id[5],vertex_id[0]);
10394 va.AddLine(vertex_id[5],vertex_id[1]);
10395 va.AddLine(vertex_id[6],vertex_id[1]);
10396 va.AddLine(vertex_id[6],vertex_id[2]);
10397 va.AddLine(vertex_id[6],vertex_id[5]);
10398 va.AddLine(vertex_id[9],vertex_id[1]);
10399 va.AddLine(vertex_id[9],vertex_id[5]);
10400 va.AddLine(vertex_id[9],vertex_id[6]);
10401 va.AddLine(vertex_id[11],vertex_id[3]);
10402 va.AddLine(vertex_id[11],vertex_id[9]);
10403 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
10404
10405 #ifdef MAP_ISO_DEBUG
10406 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 202 << std::endl;
10407 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 202 << std::endl;
10408 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 202 << std::endl;
10409 #endif
10410 va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[5]);
10411
10412 #ifdef MAP_ISO_DEBUG
10413 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 202 << std::endl;
10414 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 202 << std::endl;
10415 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 202 << std::endl;
10416 #endif
10417 va.AddTriN(vertex_id[1],vertex_id[3],vertex_id[0]);
10418
10419 #ifdef MAP_ISO_DEBUG
10420 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 202 << std::endl;
10421 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 202 << std::endl;
10422 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 202 << std::endl;
10423 #endif
10424 va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[9]);
10425
10426 #ifdef MAP_ISO_DEBUG
10427 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 202 << std::endl;
10428 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 202 << std::endl;
10429 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 202 << std::endl;
10430 #endif
10431 va.AddTriN(vertex_id[11],vertex_id[5],vertex_id[6]);
10432
10433 #ifdef MAP_ISO_DEBUG
10434 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 202 << std::endl;
10435 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 202 << std::endl;
10436 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 202 << std::endl;
10437 #endif
10438 va.AddTriN(vertex_id[11],vertex_id[9],vertex_id[5]);
10439
10440 #ifdef MAP_ISO_DEBUG
10441 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 202 << std::endl;
10442 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 202 << std::endl;
10443 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 202 << std::endl;
10444 #endif
10445 va.AddTriN(vertex_id[11],vertex_id[1],vertex_id[9]);
10446
10447 #ifdef MAP_ISO_DEBUG
10448 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 202 << std::endl;
10449 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 202 << std::endl;
10450 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 202 << std::endl;
10451 #endif
10452 va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[1]);
10453
10454 #ifdef MAP_ISO_DEBUG
10455 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 202 << std::endl;
10456 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 202 << std::endl;
10457 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 202 << std::endl;
10458 #endif
10459 va.AddTriN(vertex_id[11],vertex_id[2],vertex_id[6]);
10460
10461 #ifdef MAP_ISO_DEBUG
10462 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 202 << std::endl;
10463 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 202 << std::endl;
10464 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 202 << std::endl;
10465 #endif
10466 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[2]);
10467
10468 #ifdef MAP_ISO_DEBUG
10469 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 202 << std::endl;
10470 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 202 << std::endl;
10471 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 202 << std::endl;
10472 #endif
10473 }
10474
10475 template<>
10476 void AddLinesAndFaces<203>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10477 {
10478 va.AddLine(vertex_id[2],vertex_id[1]);
10479 va.AddLine(vertex_id[5],vertex_id[1]);
10480 va.AddLine(vertex_id[5],vertex_id[4]);
10481 va.AddLine(vertex_id[6],vertex_id[1]);
10482 va.AddLine(vertex_id[6],vertex_id[2]);
10483 va.AddLine(vertex_id[6],vertex_id[5]);
10484 va.AddLine(vertex_id[9],vertex_id[1]);
10485 va.AddLine(vertex_id[9],vertex_id[5]);
10486 va.AddLine(vertex_id[9],vertex_id[6]);
10487 va.AddLine(vertex_id[11],vertex_id[4]);
10488 va.AddLine(vertex_id[11],vertex_id[9]);
10489 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[1]);
10490
10491 #ifdef MAP_ISO_DEBUG
10492 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 203 << std::endl;
10493 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 203 << std::endl;
10494 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 203 << std::endl;
10495 #endif
10496 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[5]);
10497
10498 #ifdef MAP_ISO_DEBUG
10499 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 203 << std::endl;
10500 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 203 << std::endl;
10501 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 203 << std::endl;
10502 #endif
10503 va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[4]);
10504
10505 #ifdef MAP_ISO_DEBUG
10506 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 203 << std::endl;
10507 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 203 << std::endl;
10508 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 203 << std::endl;
10509 #endif
10510 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[11]);
10511
10512 #ifdef MAP_ISO_DEBUG
10513 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 203 << std::endl;
10514 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 203 << std::endl;
10515 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 203 << std::endl;
10516 #endif
10517 va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[9]);
10518
10519 #ifdef MAP_ISO_DEBUG
10520 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 203 << std::endl;
10521 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 203 << std::endl;
10522 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 203 << std::endl;
10523 #endif
10524 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[1]);
10525
10526 #ifdef MAP_ISO_DEBUG
10527 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 203 << std::endl;
10528 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 203 << std::endl;
10529 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 203 << std::endl;
10530 #endif
10531 va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[5]);
10532
10533 #ifdef MAP_ISO_DEBUG
10534 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 203 << std::endl;
10535 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 203 << std::endl;
10536 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 203 << std::endl;
10537 #endif
10538 }
10539
10540 template<>
10541 void AddLinesAndFaces<204>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10542 {
10543 va.AddLine(vertex_id[3],vertex_id[1]);
10544 va.AddLine(vertex_id[9],vertex_id[1]);
10545 va.AddLine(vertex_id[11],vertex_id[3]);
10546 va.AddLine(vertex_id[11],vertex_id[9]);
10547 va.AddTriN(vertex_id[11],vertex_id[1],vertex_id[9]);
10548
10549 #ifdef MAP_ISO_DEBUG
10550 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 204 << std::endl;
10551 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 204 << std::endl;
10552 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 204 << std::endl;
10553 #endif
10554 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[1]);
10555
10556 #ifdef MAP_ISO_DEBUG
10557 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 204 << std::endl;
10558 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 204 << std::endl;
10559 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 204 << std::endl;
10560 #endif
10561 }
10562
10563 template<>
10564 void AddLinesAndFaces<205>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10565 {
10566 va.AddLine(vertex_id[1],vertex_id[0]);
10567 va.AddLine(vertex_id[4],vertex_id[0]);
10568 va.AddLine(vertex_id[9],vertex_id[1]);
10569 va.AddLine(vertex_id[11],vertex_id[4]);
10570 va.AddLine(vertex_id[11],vertex_id[9]);
10571 va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[0]);
10572
10573 #ifdef MAP_ISO_DEBUG
10574 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 205 << std::endl;
10575 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 205 << std::endl;
10576 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 205 << std::endl;
10577 #endif
10578 va.AddTriN(vertex_id[1],vertex_id[11],vertex_id[4]);
10579
10580 #ifdef MAP_ISO_DEBUG
10581 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 205 << std::endl;
10582 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 205 << std::endl;
10583 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 205 << std::endl;
10584 #endif
10585 va.AddTriN(vertex_id[1],vertex_id[9],vertex_id[11]);
10586
10587 #ifdef MAP_ISO_DEBUG
10588 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 205 << std::endl;
10589 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 205 << std::endl;
10590 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 205 << std::endl;
10591 #endif
10592 }
10593
10594 template<>
10595 void AddLinesAndFaces<206>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10596 {
10597 va.AddLine(vertex_id[3],vertex_id[0]);
10598 va.AddLine(vertex_id[5],vertex_id[0]);
10599 va.AddLine(vertex_id[9],vertex_id[5]);
10600 va.AddLine(vertex_id[11],vertex_id[3]);
10601 va.AddLine(vertex_id[11],vertex_id[9]);
10602 va.AddTriN(vertex_id[11],vertex_id[5],vertex_id[9]);
10603
10604 #ifdef MAP_ISO_DEBUG
10605 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 206 << std::endl;
10606 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 206 << std::endl;
10607 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 206 << std::endl;
10608 #endif
10609 va.AddTriN(vertex_id[11],vertex_id[0],vertex_id[5]);
10610
10611 #ifdef MAP_ISO_DEBUG
10612 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 206 << std::endl;
10613 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 206 << std::endl;
10614 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 206 << std::endl;
10615 #endif
10616 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[0]);
10617
10618 #ifdef MAP_ISO_DEBUG
10619 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 206 << std::endl;
10620 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 206 << std::endl;
10621 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 206 << std::endl;
10622 #endif
10623 }
10624
10625 template<>
10626 void AddLinesAndFaces<207>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10627 {
10628 va.AddLine(vertex_id[5],vertex_id[4]);
10629 va.AddLine(vertex_id[9],vertex_id[5]);
10630 va.AddLine(vertex_id[11],vertex_id[4]);
10631 va.AddLine(vertex_id[11],vertex_id[9]);
10632 va.AddTriN(vertex_id[5],vertex_id[11],vertex_id[4]);
10633
10634 #ifdef MAP_ISO_DEBUG
10635 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 207 << std::endl;
10636 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 207 << std::endl;
10637 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 207 << std::endl;
10638 #endif
10639 va.AddTriN(vertex_id[5],vertex_id[9],vertex_id[11]);
10640
10641 #ifdef MAP_ISO_DEBUG
10642 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 207 << std::endl;
10643 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 207 << std::endl;
10644 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 207 << std::endl;
10645 #endif
10646 }
10647
10648 template<>
10649 void AddLinesAndFaces<208>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10650 {
10651 va.AddLine(vertex_id[7],vertex_id[4]);
10652 va.AddLine(vertex_id[7],vertex_id[6]);
10653 va.AddLine(vertex_id[8],vertex_id[4]);
10654 va.AddLine(vertex_id[9],vertex_id[6]);
10655 va.AddLine(vertex_id[9],vertex_id[8]);
10656 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[4]);
10657
10658 #ifdef MAP_ISO_DEBUG
10659 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 208 << std::endl;
10660 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 208 << std::endl;
10661 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 208 << std::endl;
10662 #endif
10663 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[8]);
10664
10665 #ifdef MAP_ISO_DEBUG
10666 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 208 << std::endl;
10667 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 208 << std::endl;
10668 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 208 << std::endl;
10669 #endif
10670 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[9]);
10671
10672 #ifdef MAP_ISO_DEBUG
10673 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 208 << std::endl;
10674 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 208 << std::endl;
10675 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 208 << std::endl;
10676 #endif
10677 }
10678
10679 template<>
10680 void AddLinesAndFaces<209>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10681 {
10682 va.AddLine(vertex_id[3],vertex_id[0]);
10683 va.AddLine(vertex_id[7],vertex_id[3]);
10684 va.AddLine(vertex_id[7],vertex_id[6]);
10685 va.AddLine(vertex_id[8],vertex_id[0]);
10686 va.AddLine(vertex_id[9],vertex_id[6]);
10687 va.AddLine(vertex_id[9],vertex_id[8]);
10688 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
10689
10690 #ifdef MAP_ISO_DEBUG
10691 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 209 << std::endl;
10692 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 209 << std::endl;
10693 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 209 << std::endl;
10694 #endif
10695 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[8]);
10696
10697 #ifdef MAP_ISO_DEBUG
10698 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 209 << std::endl;
10699 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 209 << std::endl;
10700 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 209 << std::endl;
10701 #endif
10702 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[9]);
10703
10704 #ifdef MAP_ISO_DEBUG
10705 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 209 << std::endl;
10706 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 209 << std::endl;
10707 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 209 << std::endl;
10708 #endif
10709 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[6]);
10710
10711 #ifdef MAP_ISO_DEBUG
10712 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 209 << std::endl;
10713 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 209 << std::endl;
10714 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 209 << std::endl;
10715 #endif
10716 }
10717
10718 template<>
10719 void AddLinesAndFaces<210>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10720 {
10721 va.AddLine(vertex_id[1],vertex_id[0]);
10722 va.AddLine(vertex_id[4],vertex_id[0]);
10723 va.AddLine(vertex_id[5],vertex_id[0]);
10724 va.AddLine(vertex_id[5],vertex_id[1]);
10725 va.AddLine(vertex_id[5],vertex_id[4]);
10726 va.AddLine(vertex_id[6],vertex_id[1]);
10727 va.AddLine(vertex_id[6],vertex_id[5]);
10728 va.AddLine(vertex_id[7],vertex_id[4]);
10729 va.AddLine(vertex_id[7],vertex_id[6]);
10730 va.AddLine(vertex_id[8],vertex_id[0]);
10731 va.AddLine(vertex_id[8],vertex_id[4]);
10732 va.AddLine(vertex_id[8],vertex_id[5]);
10733 va.AddLine(vertex_id[9],vertex_id[1]);
10734 va.AddLine(vertex_id[9],vertex_id[5]);
10735 va.AddLine(vertex_id[9],vertex_id[6]);
10736 va.AddLine(vertex_id[9],vertex_id[8]);
10737 va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[7]);
10738
10739 #ifdef MAP_ISO_DEBUG
10740 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 210 << std::endl;
10741 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 210 << std::endl;
10742 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 210 << std::endl;
10743 #endif
10744 va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[4]);
10745
10746 #ifdef MAP_ISO_DEBUG
10747 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 210 << std::endl;
10748 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 210 << std::endl;
10749 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 210 << std::endl;
10750 #endif
10751 va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[8]);
10752
10753 #ifdef MAP_ISO_DEBUG
10754 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 210 << std::endl;
10755 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 210 << std::endl;
10756 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 210 << std::endl;
10757 #endif
10758 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[0]);
10759
10760 #ifdef MAP_ISO_DEBUG
10761 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 210 << std::endl;
10762 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 210 << std::endl;
10763 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 210 << std::endl;
10764 #endif
10765 va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[5]);
10766
10767 #ifdef MAP_ISO_DEBUG
10768 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 210 << std::endl;
10769 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 210 << std::endl;
10770 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 210 << std::endl;
10771 #endif
10772 va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[4]);
10773
10774 #ifdef MAP_ISO_DEBUG
10775 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 210 << std::endl;
10776 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 210 << std::endl;
10777 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 210 << std::endl;
10778 #endif
10779 va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[0]);
10780
10781 #ifdef MAP_ISO_DEBUG
10782 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 210 << std::endl;
10783 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 210 << std::endl;
10784 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 210 << std::endl;
10785 #endif
10786 va.AddTriN(vertex_id[5],vertex_id[9],vertex_id[1]);
10787
10788 #ifdef MAP_ISO_DEBUG
10789 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 210 << std::endl;
10790 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 210 << std::endl;
10791 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 210 << std::endl;
10792 #endif
10793 va.AddTriN(vertex_id[9],vertex_id[5],vertex_id[8]);
10794
10795 #ifdef MAP_ISO_DEBUG
10796 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 210 << std::endl;
10797 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 210 << std::endl;
10798 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 210 << std::endl;
10799 #endif
10800 va.AddTriN(vertex_id[9],vertex_id[6],vertex_id[5]);
10801
10802 #ifdef MAP_ISO_DEBUG
10803 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 210 << std::endl;
10804 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 210 << std::endl;
10805 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 210 << std::endl;
10806 #endif
10807 }
10808
10809 template<>
10810 void AddLinesAndFaces<211>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10811 {
10812 va.AddLine(vertex_id[3],vertex_id[1]);
10813 va.AddLine(vertex_id[5],vertex_id[1]);
10814 va.AddLine(vertex_id[6],vertex_id[1]);
10815 va.AddLine(vertex_id[6],vertex_id[5]);
10816 va.AddLine(vertex_id[7],vertex_id[3]);
10817 va.AddLine(vertex_id[7],vertex_id[6]);
10818 va.AddLine(vertex_id[8],vertex_id[5]);
10819 va.AddLine(vertex_id[9],vertex_id[1]);
10820 va.AddLine(vertex_id[9],vertex_id[5]);
10821 va.AddLine(vertex_id[9],vertex_id[6]);
10822 va.AddLine(vertex_id[9],vertex_id[8]);
10823 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
10824
10825 #ifdef MAP_ISO_DEBUG
10826 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 211 << std::endl;
10827 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 211 << std::endl;
10828 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 211 << std::endl;
10829 #endif
10830 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[5]);
10831
10832 #ifdef MAP_ISO_DEBUG
10833 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 211 << std::endl;
10834 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 211 << std::endl;
10835 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 211 << std::endl;
10836 #endif
10837 va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[6]);
10838
10839 #ifdef MAP_ISO_DEBUG
10840 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 211 << std::endl;
10841 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 211 << std::endl;
10842 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 211 << std::endl;
10843 #endif
10844 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
10845
10846 #ifdef MAP_ISO_DEBUG
10847 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 211 << std::endl;
10848 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 211 << std::endl;
10849 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 211 << std::endl;
10850 #endif
10851 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[9]);
10852
10853 #ifdef MAP_ISO_DEBUG
10854 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 211 << std::endl;
10855 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 211 << std::endl;
10856 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 211 << std::endl;
10857 #endif
10858 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
10859
10860 #ifdef MAP_ISO_DEBUG
10861 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 211 << std::endl;
10862 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 211 << std::endl;
10863 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 211 << std::endl;
10864 #endif
10865 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[8]);
10866
10867 #ifdef MAP_ISO_DEBUG
10868 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 211 << std::endl;
10869 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 211 << std::endl;
10870 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 211 << std::endl;
10871 #endif
10872 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[9]);
10873
10874 #ifdef MAP_ISO_DEBUG
10875 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 211 << std::endl;
10876 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 211 << std::endl;
10877 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 211 << std::endl;
10878 #endif
10879 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[6]);
10880
10881 #ifdef MAP_ISO_DEBUG
10882 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 211 << std::endl;
10883 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 211 << std::endl;
10884 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 211 << std::endl;
10885 #endif
10886 }
10887
10888 template<>
10889 void AddLinesAndFaces<212>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10890 {
10891 va.AddLine(vertex_id[2],vertex_id[1]);
10892 va.AddLine(vertex_id[7],vertex_id[2]);
10893 va.AddLine(vertex_id[7],vertex_id[4]);
10894 va.AddLine(vertex_id[8],vertex_id[4]);
10895 va.AddLine(vertex_id[9],vertex_id[1]);
10896 va.AddLine(vertex_id[9],vertex_id[8]);
10897 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[4]);
10898
10899 #ifdef MAP_ISO_DEBUG
10900 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 212 << std::endl;
10901 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 212 << std::endl;
10902 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 212 << std::endl;
10903 #endif
10904 va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[8]);
10905
10906 #ifdef MAP_ISO_DEBUG
10907 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 212 << std::endl;
10908 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 212 << std::endl;
10909 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 212 << std::endl;
10910 #endif
10911 va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[9]);
10912
10913 #ifdef MAP_ISO_DEBUG
10914 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 212 << std::endl;
10915 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 212 << std::endl;
10916 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 212 << std::endl;
10917 #endif
10918 va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[1]);
10919
10920 #ifdef MAP_ISO_DEBUG
10921 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 212 << std::endl;
10922 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 212 << std::endl;
10923 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 212 << std::endl;
10924 #endif
10925 }
10926
10927 template<>
10928 void AddLinesAndFaces<213>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10929 {
10930 va.AddLine(vertex_id[1],vertex_id[0]);
10931 va.AddLine(vertex_id[2],vertex_id[0]);
10932 va.AddLine(vertex_id[2],vertex_id[1]);
10933 va.AddLine(vertex_id[3],vertex_id[0]);
10934 va.AddLine(vertex_id[3],vertex_id[1]);
10935 va.AddLine(vertex_id[3],vertex_id[2]);
10936 va.AddLine(vertex_id[7],vertex_id[2]);
10937 va.AddLine(vertex_id[7],vertex_id[3]);
10938 va.AddLine(vertex_id[8],vertex_id[0]);
10939 va.AddLine(vertex_id[9],vertex_id[1]);
10940 va.AddLine(vertex_id[9],vertex_id[8]);
10941 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
10942
10943 #ifdef MAP_ISO_DEBUG
10944 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 213 << std::endl;
10945 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 213 << std::endl;
10946 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 213 << std::endl;
10947 #endif
10948 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
10949
10950 #ifdef MAP_ISO_DEBUG
10951 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 213 << std::endl;
10952 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 213 << std::endl;
10953 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 213 << std::endl;
10954 #endif
10955 va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[8]);
10956
10957 #ifdef MAP_ISO_DEBUG
10958 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 213 << std::endl;
10959 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 213 << std::endl;
10960 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 213 << std::endl;
10961 #endif
10962 va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[9]);
10963
10964 #ifdef MAP_ISO_DEBUG
10965 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 213 << std::endl;
10966 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 213 << std::endl;
10967 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 213 << std::endl;
10968 #endif
10969 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[2]);
10970
10971 #ifdef MAP_ISO_DEBUG
10972 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 213 << std::endl;
10973 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 213 << std::endl;
10974 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 213 << std::endl;
10975 #endif
10976 }
10977
10978 template<>
10979 void AddLinesAndFaces<214>(IndexedVertexArray& va,unsigned int vertex_id[12] )
10980 {
10981 va.AddLine(vertex_id[2],vertex_id[0]);
10982 va.AddLine(vertex_id[4],vertex_id[0]);
10983 va.AddLine(vertex_id[5],vertex_id[0]);
10984 va.AddLine(vertex_id[5],vertex_id[4]);
10985 va.AddLine(vertex_id[7],vertex_id[2]);
10986 va.AddLine(vertex_id[7],vertex_id[4]);
10987 va.AddLine(vertex_id[8],vertex_id[0]);
10988 va.AddLine(vertex_id[8],vertex_id[4]);
10989 va.AddLine(vertex_id[8],vertex_id[5]);
10990 va.AddLine(vertex_id[9],vertex_id[5]);
10991 va.AddLine(vertex_id[9],vertex_id[8]);
10992 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[4]);
10993
10994 #ifdef MAP_ISO_DEBUG
10995 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 214 << std::endl;
10996 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 214 << std::endl;
10997 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 214 << std::endl;
10998 #endif
10999 va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[8]);
11000
11001 #ifdef MAP_ISO_DEBUG
11002 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 214 << std::endl;
11003 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 214 << std::endl;
11004 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 214 << std::endl;
11005 #endif
11006 va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[0]);
11007
11008 #ifdef MAP_ISO_DEBUG
11009 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 214 << std::endl;
11010 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 214 << std::endl;
11011 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 214 << std::endl;
11012 #endif
11013 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[5]);
11014
11015 #ifdef MAP_ISO_DEBUG
11016 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 214 << std::endl;
11017 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 214 << std::endl;
11018 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 214 << std::endl;
11019 #endif
11020 va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[4]);
11021
11022 #ifdef MAP_ISO_DEBUG
11023 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 214 << std::endl;
11024 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 214 << std::endl;
11025 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 214 << std::endl;
11026 #endif
11027 va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[0]);
11028
11029 #ifdef MAP_ISO_DEBUG
11030 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 214 << std::endl;
11031 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 214 << std::endl;
11032 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 214 << std::endl;
11033 #endif
11034 va.AddTriN(vertex_id[9],vertex_id[8],vertex_id[5]);
11035
11036 #ifdef MAP_ISO_DEBUG
11037 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 214 << std::endl;
11038 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 214 << std::endl;
11039 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 214 << std::endl;
11040 #endif
11041 }
11042
11043 template<>
11044 void AddLinesAndFaces<215>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11045 {
11046 va.AddLine(vertex_id[3],vertex_id[2]);
11047 va.AddLine(vertex_id[7],vertex_id[2]);
11048 va.AddLine(vertex_id[7],vertex_id[3]);
11049 va.AddLine(vertex_id[8],vertex_id[5]);
11050 va.AddLine(vertex_id[9],vertex_id[5]);
11051 va.AddLine(vertex_id[9],vertex_id[8]);
11052 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[2]);
11053
11054 #ifdef MAP_ISO_DEBUG
11055 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 215 << std::endl;
11056 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 215 << std::endl;
11057 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 215 << std::endl;
11058 #endif
11059 va.AddTriN(vertex_id[9],vertex_id[8],vertex_id[5]);
11060
11061 #ifdef MAP_ISO_DEBUG
11062 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 215 << std::endl;
11063 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 215 << std::endl;
11064 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 215 << std::endl;
11065 #endif
11066 }
11067
11068 template<>
11069 void AddLinesAndFaces<216>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11070 {
11071 va.AddLine(vertex_id[3],vertex_id[2]);
11072 va.AddLine(vertex_id[4],vertex_id[3]);
11073 va.AddLine(vertex_id[6],vertex_id[2]);
11074 va.AddLine(vertex_id[8],vertex_id[4]);
11075 va.AddLine(vertex_id[9],vertex_id[6]);
11076 va.AddLine(vertex_id[9],vertex_id[8]);
11077 va.AddTriN(vertex_id[4],vertex_id[9],vertex_id[8]);
11078
11079 #ifdef MAP_ISO_DEBUG
11080 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 216 << std::endl;
11081 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 216 << std::endl;
11082 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 216 << std::endl;
11083 #endif
11084 va.AddTriN(vertex_id[4],vertex_id[6],vertex_id[9]);
11085
11086 #ifdef MAP_ISO_DEBUG
11087 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 216 << std::endl;
11088 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 216 << std::endl;
11089 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 216 << std::endl;
11090 #endif
11091 va.AddTriN(vertex_id[4],vertex_id[2],vertex_id[6]);
11092
11093 #ifdef MAP_ISO_DEBUG
11094 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 216 << std::endl;
11095 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 216 << std::endl;
11096 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 216 << std::endl;
11097 #endif
11098 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[2]);
11099
11100 #ifdef MAP_ISO_DEBUG
11101 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 216 << std::endl;
11102 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 216 << std::endl;
11103 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 216 << std::endl;
11104 #endif
11105 }
11106
11107 template<>
11108 void AddLinesAndFaces<217>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11109 {
11110 va.AddLine(vertex_id[2],vertex_id[0]);
11111 va.AddLine(vertex_id[6],vertex_id[2]);
11112 va.AddLine(vertex_id[8],vertex_id[0]);
11113 va.AddLine(vertex_id[9],vertex_id[6]);
11114 va.AddLine(vertex_id[9],vertex_id[8]);
11115 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[0]);
11116
11117 #ifdef MAP_ISO_DEBUG
11118 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 217 << std::endl;
11119 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 217 << std::endl;
11120 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 217 << std::endl;
11121 #endif
11122 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[8]);
11123
11124 #ifdef MAP_ISO_DEBUG
11125 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 217 << std::endl;
11126 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 217 << std::endl;
11127 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 217 << std::endl;
11128 #endif
11129 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[9]);
11130
11131 #ifdef MAP_ISO_DEBUG
11132 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 217 << std::endl;
11133 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 217 << std::endl;
11134 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 217 << std::endl;
11135 #endif
11136 }
11137
11138 template<>
11139 void AddLinesAndFaces<218>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11140 {
11141 va.AddLine(vertex_id[1],vertex_id[0]);
11142 va.AddLine(vertex_id[2],vertex_id[0]);
11143 va.AddLine(vertex_id[2],vertex_id[1]);
11144 va.AddLine(vertex_id[3],vertex_id[0]);
11145 va.AddLine(vertex_id[3],vertex_id[1]);
11146 va.AddLine(vertex_id[3],vertex_id[2]);
11147 va.AddLine(vertex_id[4],vertex_id[0]);
11148 va.AddLine(vertex_id[4],vertex_id[3]);
11149 va.AddLine(vertex_id[5],vertex_id[0]);
11150 va.AddLine(vertex_id[5],vertex_id[1]);
11151 va.AddLine(vertex_id[5],vertex_id[4]);
11152 va.AddLine(vertex_id[6],vertex_id[1]);
11153 va.AddLine(vertex_id[6],vertex_id[2]);
11154 va.AddLine(vertex_id[6],vertex_id[5]);
11155 va.AddLine(vertex_id[8],vertex_id[0]);
11156 va.AddLine(vertex_id[8],vertex_id[4]);
11157 va.AddLine(vertex_id[8],vertex_id[5]);
11158 va.AddLine(vertex_id[9],vertex_id[1]);
11159 va.AddLine(vertex_id[9],vertex_id[5]);
11160 va.AddLine(vertex_id[9],vertex_id[6]);
11161 va.AddLine(vertex_id[9],vertex_id[8]);
11162 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
11163
11164 #ifdef MAP_ISO_DEBUG
11165 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 218 << std::endl;
11166 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 218 << std::endl;
11167 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 218 << std::endl;
11168 #endif
11169 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
11170
11171 #ifdef MAP_ISO_DEBUG
11172 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 218 << std::endl;
11173 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 218 << std::endl;
11174 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 218 << std::endl;
11175 #endif
11176 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[6]);
11177
11178 #ifdef MAP_ISO_DEBUG
11179 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 218 << std::endl;
11180 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 218 << std::endl;
11181 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 218 << std::endl;
11182 #endif
11183 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[9]);
11184
11185 #ifdef MAP_ISO_DEBUG
11186 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 218 << std::endl;
11187 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 218 << std::endl;
11188 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 218 << std::endl;
11189 #endif
11190 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[8]);
11191
11192 #ifdef MAP_ISO_DEBUG
11193 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 218 << std::endl;
11194 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 218 << std::endl;
11195 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 218 << std::endl;
11196 #endif
11197 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[5]);
11198
11199 #ifdef MAP_ISO_DEBUG
11200 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 218 << std::endl;
11201 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 218 << std::endl;
11202 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 218 << std::endl;
11203 #endif
11204 va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[9]);
11205
11206 #ifdef MAP_ISO_DEBUG
11207 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 218 << std::endl;
11208 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 218 << std::endl;
11209 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 218 << std::endl;
11210 #endif
11211 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[1]);
11212
11213 #ifdef MAP_ISO_DEBUG
11214 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 218 << std::endl;
11215 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 218 << std::endl;
11216 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 218 << std::endl;
11217 #endif
11218 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[6]);
11219
11220 #ifdef MAP_ISO_DEBUG
11221 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 218 << std::endl;
11222 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 218 << std::endl;
11223 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 218 << std::endl;
11224 #endif
11225 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[5]);
11226
11227 #ifdef MAP_ISO_DEBUG
11228 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 218 << std::endl;
11229 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 218 << std::endl;
11230 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 218 << std::endl;
11231 #endif
11232 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[4]);
11233
11234 #ifdef MAP_ISO_DEBUG
11235 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 218 << std::endl;
11236 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 218 << std::endl;
11237 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 218 << std::endl;
11238 #endif
11239 va.AddTriN(vertex_id[2],vertex_id[0],vertex_id[8]);
11240
11241 #ifdef MAP_ISO_DEBUG
11242 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 218 << std::endl;
11243 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 218 << std::endl;
11244 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 218 << std::endl;
11245 #endif
11246 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[0]);
11247
11248 #ifdef MAP_ISO_DEBUG
11249 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 218 << std::endl;
11250 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 218 << std::endl;
11251 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 218 << std::endl;
11252 #endif
11253 va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[5]);
11254
11255 #ifdef MAP_ISO_DEBUG
11256 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 218 << std::endl;
11257 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 218 << std::endl;
11258 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 218 << std::endl;
11259 #endif
11260 va.AddTriN(vertex_id[2],vertex_id[3],vertex_id[1]);
11261
11262 #ifdef MAP_ISO_DEBUG
11263 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 218 << std::endl;
11264 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 218 << std::endl;
11265 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 218 << std::endl;
11266 #endif
11267 }
11268
11269 template<>
11270 void AddLinesAndFaces<219>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11271 {
11272 va.AddLine(vertex_id[2],vertex_id[1]);
11273 va.AddLine(vertex_id[5],vertex_id[1]);
11274 va.AddLine(vertex_id[6],vertex_id[1]);
11275 va.AddLine(vertex_id[6],vertex_id[2]);
11276 va.AddLine(vertex_id[6],vertex_id[5]);
11277 va.AddLine(vertex_id[8],vertex_id[5]);
11278 va.AddLine(vertex_id[9],vertex_id[1]);
11279 va.AddLine(vertex_id[9],vertex_id[5]);
11280 va.AddLine(vertex_id[9],vertex_id[6]);
11281 va.AddLine(vertex_id[9],vertex_id[8]);
11282 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[1]);
11283
11284 #ifdef MAP_ISO_DEBUG
11285 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 219 << std::endl;
11286 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 219 << std::endl;
11287 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 219 << std::endl;
11288 #endif
11289 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[5]);
11290
11291 #ifdef MAP_ISO_DEBUG
11292 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 219 << std::endl;
11293 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 219 << std::endl;
11294 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 219 << std::endl;
11295 #endif
11296 va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[6]);
11297
11298 #ifdef MAP_ISO_DEBUG
11299 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 219 << std::endl;
11300 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 219 << std::endl;
11301 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 219 << std::endl;
11302 #endif
11303 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[1]);
11304
11305 #ifdef MAP_ISO_DEBUG
11306 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 219 << std::endl;
11307 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 219 << std::endl;
11308 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 219 << std::endl;
11309 #endif
11310 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[9]);
11311
11312 #ifdef MAP_ISO_DEBUG
11313 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 219 << std::endl;
11314 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 219 << std::endl;
11315 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 219 << std::endl;
11316 #endif
11317 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[5]);
11318
11319 #ifdef MAP_ISO_DEBUG
11320 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 219 << std::endl;
11321 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 219 << std::endl;
11322 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 219 << std::endl;
11323 #endif
11324 va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[8]);
11325
11326 #ifdef MAP_ISO_DEBUG
11327 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 219 << std::endl;
11328 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 219 << std::endl;
11329 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 219 << std::endl;
11330 #endif
11331 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[9]);
11332
11333 #ifdef MAP_ISO_DEBUG
11334 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 219 << std::endl;
11335 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 219 << std::endl;
11336 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 219 << std::endl;
11337 #endif
11338 }
11339
11340 template<>
11341 void AddLinesAndFaces<220>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11342 {
11343 va.AddLine(vertex_id[3],vertex_id[1]);
11344 va.AddLine(vertex_id[4],vertex_id[3]);
11345 va.AddLine(vertex_id[8],vertex_id[4]);
11346 va.AddLine(vertex_id[9],vertex_id[1]);
11347 va.AddLine(vertex_id[9],vertex_id[8]);
11348 va.AddTriN(vertex_id[4],vertex_id[9],vertex_id[8]);
11349
11350 #ifdef MAP_ISO_DEBUG
11351 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 220 << std::endl;
11352 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 220 << std::endl;
11353 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 220 << std::endl;
11354 #endif
11355 va.AddTriN(vertex_id[4],vertex_id[1],vertex_id[9]);
11356
11357 #ifdef MAP_ISO_DEBUG
11358 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 220 << std::endl;
11359 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 220 << std::endl;
11360 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 220 << std::endl;
11361 #endif
11362 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[1]);
11363
11364 #ifdef MAP_ISO_DEBUG
11365 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 220 << std::endl;
11366 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 220 << std::endl;
11367 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 220 << std::endl;
11368 #endif
11369 }
11370
11371 template<>
11372 void AddLinesAndFaces<221>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11373 {
11374 va.AddLine(vertex_id[1],vertex_id[0]);
11375 va.AddLine(vertex_id[8],vertex_id[0]);
11376 va.AddLine(vertex_id[9],vertex_id[1]);
11377 va.AddLine(vertex_id[9],vertex_id[8]);
11378 va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[0]);
11379
11380 #ifdef MAP_ISO_DEBUG
11381 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 221 << std::endl;
11382 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 221 << std::endl;
11383 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 221 << std::endl;
11384 #endif
11385 va.AddTriN(vertex_id[1],vertex_id[9],vertex_id[8]);
11386
11387 #ifdef MAP_ISO_DEBUG
11388 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 221 << std::endl;
11389 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 221 << std::endl;
11390 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 221 << std::endl;
11391 #endif
11392 }
11393
11394 template<>
11395 void AddLinesAndFaces<222>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11396 {
11397 va.AddLine(vertex_id[3],vertex_id[0]);
11398 va.AddLine(vertex_id[4],vertex_id[0]);
11399 va.AddLine(vertex_id[4],vertex_id[3]);
11400 va.AddLine(vertex_id[5],vertex_id[0]);
11401 va.AddLine(vertex_id[5],vertex_id[4]);
11402 va.AddLine(vertex_id[8],vertex_id[0]);
11403 va.AddLine(vertex_id[8],vertex_id[4]);
11404 va.AddLine(vertex_id[8],vertex_id[5]);
11405 va.AddLine(vertex_id[9],vertex_id[5]);
11406 va.AddLine(vertex_id[9],vertex_id[8]);
11407 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
11408
11409 #ifdef MAP_ISO_DEBUG
11410 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 222 << std::endl;
11411 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 222 << std::endl;
11412 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 222 << std::endl;
11413 #endif
11414 va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[0]);
11415
11416 #ifdef MAP_ISO_DEBUG
11417 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 222 << std::endl;
11418 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 222 << std::endl;
11419 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 222 << std::endl;
11420 #endif
11421 va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[8]);
11422
11423 #ifdef MAP_ISO_DEBUG
11424 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 222 << std::endl;
11425 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 222 << std::endl;
11426 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 222 << std::endl;
11427 #endif
11428 va.AddTriN(vertex_id[9],vertex_id[8],vertex_id[5]);
11429
11430 #ifdef MAP_ISO_DEBUG
11431 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 222 << std::endl;
11432 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 222 << std::endl;
11433 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 222 << std::endl;
11434 #endif
11435 }
11436
11437 template<>
11438 void AddLinesAndFaces<223>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11439 {
11440 va.AddLine(vertex_id[8],vertex_id[5]);
11441 va.AddLine(vertex_id[9],vertex_id[5]);
11442 va.AddLine(vertex_id[9],vertex_id[8]);
11443 va.AddTriN(vertex_id[9],vertex_id[8],vertex_id[5]);
11444
11445 #ifdef MAP_ISO_DEBUG
11446 if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 223 << std::endl;
11447 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 223 << std::endl;
11448 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 223 << std::endl;
11449 #endif
11450 }
11451
11452 template<>
11453 void AddLinesAndFaces<224>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11454 {
11455 va.AddLine(vertex_id[6],vertex_id[5]);
11456 va.AddLine(vertex_id[7],vertex_id[6]);
11457 va.AddLine(vertex_id[8],vertex_id[5]);
11458 va.AddLine(vertex_id[11],vertex_id[7]);
11459 va.AddLine(vertex_id[11],vertex_id[8]);
11460 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[11]);
11461
11462 #ifdef MAP_ISO_DEBUG
11463 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 224 << std::endl;
11464 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 224 << std::endl;
11465 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 224 << std::endl;
11466 #endif
11467 va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[8]);
11468
11469 #ifdef MAP_ISO_DEBUG
11470 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 224 << std::endl;
11471 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 224 << std::endl;
11472 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 224 << std::endl;
11473 #endif
11474 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[5]);
11475
11476 #ifdef MAP_ISO_DEBUG
11477 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 224 << std::endl;
11478 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 224 << std::endl;
11479 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 224 << std::endl;
11480 #endif
11481 }
11482
11483 template<>
11484 void AddLinesAndFaces<225>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11485 {
11486 va.AddLine(vertex_id[3],vertex_id[0]);
11487 va.AddLine(vertex_id[4],vertex_id[0]);
11488 va.AddLine(vertex_id[4],vertex_id[3]);
11489 va.AddLine(vertex_id[5],vertex_id[0]);
11490 va.AddLine(vertex_id[5],vertex_id[4]);
11491 va.AddLine(vertex_id[6],vertex_id[5]);
11492 va.AddLine(vertex_id[7],vertex_id[3]);
11493 va.AddLine(vertex_id[7],vertex_id[4]);
11494 va.AddLine(vertex_id[7],vertex_id[6]);
11495 va.AddLine(vertex_id[8],vertex_id[0]);
11496 va.AddLine(vertex_id[8],vertex_id[4]);
11497 va.AddLine(vertex_id[8],vertex_id[5]);
11498 va.AddLine(vertex_id[11],vertex_id[3]);
11499 va.AddLine(vertex_id[11],vertex_id[4]);
11500 va.AddLine(vertex_id[11],vertex_id[7]);
11501 va.AddLine(vertex_id[11],vertex_id[8]);
11502 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
11503
11504 #ifdef MAP_ISO_DEBUG
11505 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 225 << std::endl;
11506 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 225 << std::endl;
11507 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 225 << std::endl;
11508 #endif
11509 va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[0]);
11510
11511 #ifdef MAP_ISO_DEBUG
11512 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 225 << std::endl;
11513 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 225 << std::endl;
11514 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 225 << std::endl;
11515 #endif
11516 va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[8]);
11517
11518 #ifdef MAP_ISO_DEBUG
11519 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 225 << std::endl;
11520 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 225 << std::endl;
11521 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 225 << std::endl;
11522 #endif
11523 va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
11524
11525 #ifdef MAP_ISO_DEBUG
11526 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 225 << std::endl;
11527 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 225 << std::endl;
11528 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 225 << std::endl;
11529 #endif
11530 va.AddTriN(vertex_id[7],vertex_id[7],vertex_id[4]);
11531
11532 #ifdef MAP_ISO_DEBUG
11533 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 225 << std::endl;
11534 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 225 << std::endl;
11535 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 225 << std::endl;
11536 #endif
11537 va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[7]);
11538
11539 #ifdef MAP_ISO_DEBUG
11540 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 225 << std::endl;
11541 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 225 << std::endl;
11542 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 225 << std::endl;
11543 #endif
11544 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
11545
11546 #ifdef MAP_ISO_DEBUG
11547 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 225 << std::endl;
11548 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 225 << std::endl;
11549 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 225 << std::endl;
11550 #endif
11551 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[11]);
11552
11553 #ifdef MAP_ISO_DEBUG
11554 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 225 << std::endl;
11555 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 225 << std::endl;
11556 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 225 << std::endl;
11557 #endif
11558 va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[8]);
11559
11560 #ifdef MAP_ISO_DEBUG
11561 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 225 << std::endl;
11562 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 225 << std::endl;
11563 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 225 << std::endl;
11564 #endif
11565 va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[5]);
11566
11567 #ifdef MAP_ISO_DEBUG
11568 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 225 << std::endl;
11569 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 225 << std::endl;
11570 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 225 << std::endl;
11571 #endif
11572 }
11573
11574 template<>
11575 void AddLinesAndFaces<226>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11576 {
11577 va.AddLine(vertex_id[1],vertex_id[0]);
11578 va.AddLine(vertex_id[6],vertex_id[1]);
11579 va.AddLine(vertex_id[7],vertex_id[6]);
11580 va.AddLine(vertex_id[8],vertex_id[0]);
11581 va.AddLine(vertex_id[11],vertex_id[7]);
11582 va.AddLine(vertex_id[11],vertex_id[8]);
11583 va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[7]);
11584
11585 #ifdef MAP_ISO_DEBUG
11586 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 226 << std::endl;
11587 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 226 << std::endl;
11588 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 226 << std::endl;
11589 #endif
11590 va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[11]);
11591
11592 #ifdef MAP_ISO_DEBUG
11593 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 226 << std::endl;
11594 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 226 << std::endl;
11595 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 226 << std::endl;
11596 #endif
11597 va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[8]);
11598
11599 #ifdef MAP_ISO_DEBUG
11600 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 226 << std::endl;
11601 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 226 << std::endl;
11602 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 226 << std::endl;
11603 #endif
11604 va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[0]);
11605
11606 #ifdef MAP_ISO_DEBUG
11607 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 226 << std::endl;
11608 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 226 << std::endl;
11609 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 226 << std::endl;
11610 #endif
11611 }
11612
11613 template<>
11614 void AddLinesAndFaces<227>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11615 {
11616 va.AddLine(vertex_id[3],vertex_id[1]);
11617 va.AddLine(vertex_id[4],vertex_id[3]);
11618 va.AddLine(vertex_id[6],vertex_id[1]);
11619 va.AddLine(vertex_id[7],vertex_id[3]);
11620 va.AddLine(vertex_id[7],vertex_id[4]);
11621 va.AddLine(vertex_id[7],vertex_id[6]);
11622 va.AddLine(vertex_id[8],vertex_id[4]);
11623 va.AddLine(vertex_id[11],vertex_id[3]);
11624 va.AddLine(vertex_id[11],vertex_id[4]);
11625 va.AddLine(vertex_id[11],vertex_id[7]);
11626 va.AddLine(vertex_id[11],vertex_id[8]);
11627 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[1]);
11628
11629 #ifdef MAP_ISO_DEBUG
11630 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 227 << std::endl;
11631 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 227 << std::endl;
11632 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 227 << std::endl;
11633 #endif
11634 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[6]);
11635
11636 #ifdef MAP_ISO_DEBUG
11637 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 227 << std::endl;
11638 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 227 << std::endl;
11639 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 227 << std::endl;
11640 #endif
11641 va.AddTriN(vertex_id[4],vertex_id[11],vertex_id[3]);
11642
11643 #ifdef MAP_ISO_DEBUG
11644 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 227 << std::endl;
11645 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 227 << std::endl;
11646 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 227 << std::endl;
11647 #endif
11648 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[4]);
11649
11650 #ifdef MAP_ISO_DEBUG
11651 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 227 << std::endl;
11652 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 227 << std::endl;
11653 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 227 << std::endl;
11654 #endif
11655 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[8]);
11656
11657 #ifdef MAP_ISO_DEBUG
11658 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 227 << std::endl;
11659 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 227 << std::endl;
11660 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 227 << std::endl;
11661 #endif
11662 }
11663
11664 template<>
11665 void AddLinesAndFaces<228>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11666 {
11667 va.AddLine(vertex_id[2],vertex_id[1]);
11668 va.AddLine(vertex_id[5],vertex_id[1]);
11669 va.AddLine(vertex_id[7],vertex_id[2]);
11670 va.AddLine(vertex_id[8],vertex_id[5]);
11671 va.AddLine(vertex_id[11],vertex_id[7]);
11672 va.AddLine(vertex_id[11],vertex_id[8]);
11673 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[11]);
11674
11675 #ifdef MAP_ISO_DEBUG
11676 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 228 << std::endl;
11677 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 228 << std::endl;
11678 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 228 << std::endl;
11679 #endif
11680 va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[8]);
11681
11682 #ifdef MAP_ISO_DEBUG
11683 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 228 << std::endl;
11684 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 228 << std::endl;
11685 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 228 << std::endl;
11686 #endif
11687 va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[5]);
11688
11689 #ifdef MAP_ISO_DEBUG
11690 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 228 << std::endl;
11691 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 228 << std::endl;
11692 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 228 << std::endl;
11693 #endif
11694 va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[1]);
11695
11696 #ifdef MAP_ISO_DEBUG
11697 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 228 << std::endl;
11698 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 228 << std::endl;
11699 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 228 << std::endl;
11700 #endif
11701 }
11702
11703 template<>
11704 void AddLinesAndFaces<229>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11705 {
11706 va.AddLine(vertex_id[1],vertex_id[0]);
11707 va.AddLine(vertex_id[2],vertex_id[0]);
11708 va.AddLine(vertex_id[2],vertex_id[1]);
11709 va.AddLine(vertex_id[3],vertex_id[0]);
11710 va.AddLine(vertex_id[3],vertex_id[1]);
11711 va.AddLine(vertex_id[3],vertex_id[2]);
11712 va.AddLine(vertex_id[4],vertex_id[0]);
11713 va.AddLine(vertex_id[4],vertex_id[3]);
11714 va.AddLine(vertex_id[5],vertex_id[0]);
11715 va.AddLine(vertex_id[5],vertex_id[1]);
11716 va.AddLine(vertex_id[5],vertex_id[4]);
11717 va.AddLine(vertex_id[7],vertex_id[2]);
11718 va.AddLine(vertex_id[7],vertex_id[3]);
11719 va.AddLine(vertex_id[7],vertex_id[4]);
11720 va.AddLine(vertex_id[8],vertex_id[0]);
11721 va.AddLine(vertex_id[8],vertex_id[4]);
11722 va.AddLine(vertex_id[8],vertex_id[5]);
11723 va.AddLine(vertex_id[11],vertex_id[3]);
11724 va.AddLine(vertex_id[11],vertex_id[4]);
11725 va.AddLine(vertex_id[11],vertex_id[7]);
11726 va.AddLine(vertex_id[11],vertex_id[8]);
11727 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
11728
11729 #ifdef MAP_ISO_DEBUG
11730 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 229 << std::endl;
11731 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 229 << std::endl;
11732 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 229 << std::endl;
11733 #endif
11734 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
11735
11736 #ifdef MAP_ISO_DEBUG
11737 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 229 << std::endl;
11738 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 229 << std::endl;
11739 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 229 << std::endl;
11740 #endif
11741 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
11742
11743 #ifdef MAP_ISO_DEBUG
11744 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 229 << std::endl;
11745 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 229 << std::endl;
11746 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 229 << std::endl;
11747 #endif
11748 va.AddTriN(vertex_id[3],vertex_id[0],vertex_id[5]);
11749
11750 #ifdef MAP_ISO_DEBUG
11751 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 229 << std::endl;
11752 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 229 << std::endl;
11753 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 229 << std::endl;
11754 #endif
11755 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
11756
11757 #ifdef MAP_ISO_DEBUG
11758 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 229 << std::endl;
11759 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 229 << std::endl;
11760 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 229 << std::endl;
11761 #endif
11762 va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
11763
11764 #ifdef MAP_ISO_DEBUG
11765 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 229 << std::endl;
11766 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 229 << std::endl;
11767 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 229 << std::endl;
11768 #endif
11769 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[4]);
11770
11771 #ifdef MAP_ISO_DEBUG
11772 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 229 << std::endl;
11773 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 229 << std::endl;
11774 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 229 << std::endl;
11775 #endif
11776 va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
11777
11778 #ifdef MAP_ISO_DEBUG
11779 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 229 << std::endl;
11780 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 229 << std::endl;
11781 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 229 << std::endl;
11782 #endif
11783 va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
11784
11785 #ifdef MAP_ISO_DEBUG
11786 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 229 << std::endl;
11787 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 229 << std::endl;
11788 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 229 << std::endl;
11789 #endif
11790 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[2]);
11791
11792 #ifdef MAP_ISO_DEBUG
11793 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 229 << std::endl;
11794 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 229 << std::endl;
11795 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 229 << std::endl;
11796 #endif
11797 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[4]);
11798
11799 #ifdef MAP_ISO_DEBUG
11800 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 229 << std::endl;
11801 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 229 << std::endl;
11802 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 229 << std::endl;
11803 #endif
11804 }
11805
11806 template<>
11807 void AddLinesAndFaces<230>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11808 {
11809 va.AddLine(vertex_id[2],vertex_id[0]);
11810 va.AddLine(vertex_id[7],vertex_id[2]);
11811 va.AddLine(vertex_id[8],vertex_id[0]);
11812 va.AddLine(vertex_id[11],vertex_id[7]);
11813 va.AddLine(vertex_id[11],vertex_id[8]);
11814 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[11]);
11815
11816 #ifdef MAP_ISO_DEBUG
11817 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 230 << std::endl;
11818 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 230 << std::endl;
11819 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 230 << std::endl;
11820 #endif
11821 va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[8]);
11822
11823 #ifdef MAP_ISO_DEBUG
11824 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 230 << std::endl;
11825 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 230 << std::endl;
11826 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 230 << std::endl;
11827 #endif
11828 va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[0]);
11829
11830 #ifdef MAP_ISO_DEBUG
11831 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 230 << std::endl;
11832 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 230 << std::endl;
11833 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 230 << std::endl;
11834 #endif
11835 }
11836
11837 template<>
11838 void AddLinesAndFaces<231>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11839 {
11840 va.AddLine(vertex_id[3],vertex_id[2]);
11841 va.AddLine(vertex_id[4],vertex_id[3]);
11842 va.AddLine(vertex_id[7],vertex_id[2]);
11843 va.AddLine(vertex_id[7],vertex_id[3]);
11844 va.AddLine(vertex_id[7],vertex_id[4]);
11845 va.AddLine(vertex_id[8],vertex_id[4]);
11846 va.AddLine(vertex_id[11],vertex_id[3]);
11847 va.AddLine(vertex_id[11],vertex_id[4]);
11848 va.AddLine(vertex_id[11],vertex_id[7]);
11849 va.AddLine(vertex_id[11],vertex_id[8]);
11850 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[2]);
11851
11852 #ifdef MAP_ISO_DEBUG
11853 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 231 << std::endl;
11854 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 231 << std::endl;
11855 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 231 << std::endl;
11856 #endif
11857 va.AddTriN(vertex_id[4],vertex_id[11],vertex_id[3]);
11858
11859 #ifdef MAP_ISO_DEBUG
11860 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 231 << std::endl;
11861 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 231 << std::endl;
11862 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 231 << std::endl;
11863 #endif
11864 va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[4]);
11865
11866 #ifdef MAP_ISO_DEBUG
11867 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 231 << std::endl;
11868 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 231 << std::endl;
11869 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 231 << std::endl;
11870 #endif
11871 va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[8]);
11872
11873 #ifdef MAP_ISO_DEBUG
11874 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 231 << std::endl;
11875 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 231 << std::endl;
11876 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 231 << std::endl;
11877 #endif
11878 }
11879
11880 template<>
11881 void AddLinesAndFaces<232>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11882 {
11883 va.AddLine(vertex_id[3],vertex_id[2]);
11884 va.AddLine(vertex_id[6],vertex_id[2]);
11885 va.AddLine(vertex_id[6],vertex_id[5]);
11886 va.AddLine(vertex_id[8],vertex_id[5]);
11887 va.AddLine(vertex_id[11],vertex_id[3]);
11888 va.AddLine(vertex_id[11],vertex_id[8]);
11889 va.AddTriN(vertex_id[11],vertex_id[5],vertex_id[8]);
11890
11891 #ifdef MAP_ISO_DEBUG
11892 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 232 << std::endl;
11893 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 232 << std::endl;
11894 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 232 << std::endl;
11895 #endif
11896 va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[5]);
11897
11898 #ifdef MAP_ISO_DEBUG
11899 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 232 << std::endl;
11900 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 232 << std::endl;
11901 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 232 << std::endl;
11902 #endif
11903 va.AddTriN(vertex_id[11],vertex_id[2],vertex_id[6]);
11904
11905 #ifdef MAP_ISO_DEBUG
11906 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 232 << std::endl;
11907 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 232 << std::endl;
11908 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 232 << std::endl;
11909 #endif
11910 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[2]);
11911
11912 #ifdef MAP_ISO_DEBUG
11913 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 232 << std::endl;
11914 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 232 << std::endl;
11915 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 232 << std::endl;
11916 #endif
11917 }
11918
11919 template<>
11920 void AddLinesAndFaces<233>(IndexedVertexArray& va,unsigned int vertex_id[12] )
11921 {
11922 va.AddLine(vertex_id[2],vertex_id[0]);
11923 va.AddLine(vertex_id[4],vertex_id[0]);
11924 va.AddLine(vertex_id[5],vertex_id[0]);
11925 va.AddLine(vertex_id[5],vertex_id[4]);
11926 va.AddLine(vertex_id[6],vertex_id[2]);
11927 va.AddLine(vertex_id[6],vertex_id[5]);
11928 va.AddLine(vertex_id[8],vertex_id[0]);
11929 va.AddLine(vertex_id[8],vertex_id[4]);
11930 va.AddLine(vertex_id[8],vertex_id[5]);
11931 va.AddLine(vertex_id[11],vertex_id[4]);
11932 va.AddLine(vertex_id[11],vertex_id[8]);
11933 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[0]);
11934
11935 #ifdef MAP_ISO_DEBUG
11936 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 233 << std::endl;
11937 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 233 << std::endl;
11938 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 233 << std::endl;
11939 #endif
11940 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[4]);
11941
11942 #ifdef MAP_ISO_DEBUG
11943 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 233 << std::endl;
11944 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 233 << std::endl;
11945 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 233 << std::endl;
11946 #endif
11947 va.AddTriN(vertex_id[2],vertex_id[0],vertex_id[5]);
11948
11949 #ifdef MAP_ISO_DEBUG
11950 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 233 << std::endl;
11951 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 233 << std::endl;
11952 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 233 << std::endl;
11953 #endif
11954 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[0]);
11955
11956 #ifdef MAP_ISO_DEBUG
11957 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 233 << std::endl;
11958 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 233 << std::endl;
11959 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 233 << std::endl;
11960 #endif
11961 va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[8]);
11962
11963 #ifdef MAP_ISO_DEBUG
11964 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 233 << std::endl;
11965 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 233 << std::endl;
11966 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 233 << std::endl;
11967 #endif
11968 va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[4]);
11969
11970 #ifdef MAP_ISO_DEBUG
11971 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 233 << std::endl;
11972 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 233 << std::endl;
11973 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 233 << std::endl;
11974 #endif
11975 va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[11]);
11976
11977 #ifdef MAP_ISO_DEBUG
11978 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 233 << std::endl;
11979 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 233 << std::endl;
11980 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 233 << std::endl;
11981 #endif
11982 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[8]);
11983
11984 #ifdef MAP_ISO_DEBUG
11985 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 233 << std::endl;
11986 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 233 << std::endl;
11987 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 233 << std::endl;
11988 #endif
11989 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[5]);
11990
11991 #ifdef MAP_ISO_DEBUG
11992 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 233 << std::endl;
11993 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 233 << std::endl;
11994 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 233 << std::endl;
11995 #endif
11996 }
11997
11998 template<>
11999 void AddLinesAndFaces<234>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12000 {
12001 va.AddLine(vertex_id[1],vertex_id[0]);
12002 va.AddLine(vertex_id[2],vertex_id[0]);
12003 va.AddLine(vertex_id[2],vertex_id[1]);
12004 va.AddLine(vertex_id[3],vertex_id[0]);
12005 va.AddLine(vertex_id[3],vertex_id[1]);
12006 va.AddLine(vertex_id[3],vertex_id[2]);
12007 va.AddLine(vertex_id[6],vertex_id[1]);
12008 va.AddLine(vertex_id[6],vertex_id[2]);
12009 va.AddLine(vertex_id[8],vertex_id[0]);
12010 va.AddLine(vertex_id[11],vertex_id[3]);
12011 va.AddLine(vertex_id[11],vertex_id[8]);
12012 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
12013
12014 #ifdef MAP_ISO_DEBUG
12015 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 234 << std::endl;
12016 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 234 << std::endl;
12017 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 234 << std::endl;
12018 #endif
12019 va.AddTriN(vertex_id[11],vertex_id[0],vertex_id[8]);
12020
12021 #ifdef MAP_ISO_DEBUG
12022 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 234 << std::endl;
12023 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 234 << std::endl;
12024 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 234 << std::endl;
12025 #endif
12026 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[0]);
12027
12028 #ifdef MAP_ISO_DEBUG
12029 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 234 << std::endl;
12030 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 234 << std::endl;
12031 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 234 << std::endl;
12032 #endif
12033 va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[6]);
12034
12035 #ifdef MAP_ISO_DEBUG
12036 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 234 << std::endl;
12037 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 234 << std::endl;
12038 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 234 << std::endl;
12039 #endif
12040 va.AddTriN(vertex_id[2],vertex_id[3],vertex_id[1]);
12041
12042 #ifdef MAP_ISO_DEBUG
12043 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 234 << std::endl;
12044 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 234 << std::endl;
12045 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 234 << std::endl;
12046 #endif
12047 }
12048
12049 template<>
12050 void AddLinesAndFaces<235>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12051 {
12052 va.AddLine(vertex_id[2],vertex_id[1]);
12053 va.AddLine(vertex_id[6],vertex_id[1]);
12054 va.AddLine(vertex_id[6],vertex_id[2]);
12055 va.AddLine(vertex_id[8],vertex_id[4]);
12056 va.AddLine(vertex_id[11],vertex_id[4]);
12057 va.AddLine(vertex_id[11],vertex_id[8]);
12058 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[1]);
12059
12060 #ifdef MAP_ISO_DEBUG
12061 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 235 << std::endl;
12062 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 235 << std::endl;
12063 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 235 << std::endl;
12064 #endif
12065 va.AddTriN(vertex_id[8],vertex_id[11],vertex_id[4]);
12066
12067 #ifdef MAP_ISO_DEBUG
12068 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 235 << std::endl;
12069 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 235 << std::endl;
12070 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 235 << std::endl;
12071 #endif
12072 }
12073
12074 template<>
12075 void AddLinesAndFaces<236>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12076 {
12077 va.AddLine(vertex_id[3],vertex_id[1]);
12078 va.AddLine(vertex_id[5],vertex_id[1]);
12079 va.AddLine(vertex_id[8],vertex_id[5]);
12080 va.AddLine(vertex_id[11],vertex_id[3]);
12081 va.AddLine(vertex_id[11],vertex_id[8]);
12082 va.AddTriN(vertex_id[11],vertex_id[5],vertex_id[8]);
12083
12084 #ifdef MAP_ISO_DEBUG
12085 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 236 << std::endl;
12086 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 236 << std::endl;
12087 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 236 << std::endl;
12088 #endif
12089 va.AddTriN(vertex_id[11],vertex_id[1],vertex_id[5]);
12090
12091 #ifdef MAP_ISO_DEBUG
12092 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 236 << std::endl;
12093 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 236 << std::endl;
12094 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 236 << std::endl;
12095 #endif
12096 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[1]);
12097
12098 #ifdef MAP_ISO_DEBUG
12099 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 236 << std::endl;
12100 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 236 << std::endl;
12101 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 236 << std::endl;
12102 #endif
12103 }
12104
12105 template<>
12106 void AddLinesAndFaces<237>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12107 {
12108 va.AddLine(vertex_id[1],vertex_id[0]);
12109 va.AddLine(vertex_id[4],vertex_id[0]);
12110 va.AddLine(vertex_id[5],vertex_id[0]);
12111 va.AddLine(vertex_id[5],vertex_id[1]);
12112 va.AddLine(vertex_id[5],vertex_id[4]);
12113 va.AddLine(vertex_id[8],vertex_id[0]);
12114 va.AddLine(vertex_id[8],vertex_id[4]);
12115 va.AddLine(vertex_id[8],vertex_id[5]);
12116 va.AddLine(vertex_id[11],vertex_id[4]);
12117 va.AddLine(vertex_id[11],vertex_id[8]);
12118 va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[0]);
12119
12120 #ifdef MAP_ISO_DEBUG
12121 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 237 << std::endl;
12122 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 237 << std::endl;
12123 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 237 << std::endl;
12124 #endif
12125 va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[4]);
12126
12127 #ifdef MAP_ISO_DEBUG
12128 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 237 << std::endl;
12129 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 237 << std::endl;
12130 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 237 << std::endl;
12131 #endif
12132 va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[5]);
12133
12134 #ifdef MAP_ISO_DEBUG
12135 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 237 << std::endl;
12136 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 237 << std::endl;
12137 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 237 << std::endl;
12138 #endif
12139 va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[0]);
12140
12141 #ifdef MAP_ISO_DEBUG
12142 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 237 << std::endl;
12143 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 237 << std::endl;
12144 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 237 << std::endl;
12145 #endif
12146 va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[8]);
12147
12148 #ifdef MAP_ISO_DEBUG
12149 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 237 << std::endl;
12150 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 237 << std::endl;
12151 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 237 << std::endl;
12152 #endif
12153 va.AddTriN(vertex_id[1],vertex_id[11],vertex_id[4]);
12154
12155 #ifdef MAP_ISO_DEBUG
12156 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 237 << std::endl;
12157 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 237 << std::endl;
12158 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 237 << std::endl;
12159 #endif
12160 va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[11]);
12161
12162 #ifdef MAP_ISO_DEBUG
12163 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 237 << std::endl;
12164 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 237 << std::endl;
12165 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 237 << std::endl;
12166 #endif
12167 va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[8]);
12168
12169 #ifdef MAP_ISO_DEBUG
12170 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 237 << std::endl;
12171 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 237 << std::endl;
12172 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 237 << std::endl;
12173 #endif
12174 }
12175
12176 template<>
12177 void AddLinesAndFaces<238>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12178 {
12179 va.AddLine(vertex_id[3],vertex_id[0]);
12180 va.AddLine(vertex_id[8],vertex_id[0]);
12181 va.AddLine(vertex_id[11],vertex_id[3]);
12182 va.AddLine(vertex_id[11],vertex_id[8]);
12183 va.AddTriN(vertex_id[11],vertex_id[0],vertex_id[8]);
12184
12185 #ifdef MAP_ISO_DEBUG
12186 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 238 << std::endl;
12187 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 238 << std::endl;
12188 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 238 << std::endl;
12189 #endif
12190 va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[0]);
12191
12192 #ifdef MAP_ISO_DEBUG
12193 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 238 << std::endl;
12194 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 238 << std::endl;
12195 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 238 << std::endl;
12196 #endif
12197 }
12198
12199 template<>
12200 void AddLinesAndFaces<239>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12201 {
12202 va.AddLine(vertex_id[8],vertex_id[4]);
12203 va.AddLine(vertex_id[11],vertex_id[4]);
12204 va.AddLine(vertex_id[11],vertex_id[8]);
12205 va.AddTriN(vertex_id[8],vertex_id[11],vertex_id[4]);
12206
12207 #ifdef MAP_ISO_DEBUG
12208 if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 239 << std::endl;
12209 if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 239 << std::endl;
12210 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 239 << std::endl;
12211 #endif
12212 }
12213
12214 template<>
12215 void AddLinesAndFaces<240>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12216 {
12217 va.AddLine(vertex_id[5],vertex_id[4]);
12218 va.AddLine(vertex_id[6],vertex_id[5]);
12219 va.AddLine(vertex_id[7],vertex_id[4]);
12220 va.AddLine(vertex_id[7],vertex_id[6]);
12221 va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[7]);
12222
12223 #ifdef MAP_ISO_DEBUG
12224 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 240 << std::endl;
12225 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 240 << std::endl;
12226 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 240 << std::endl;
12227 #endif
12228 va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[4]);
12229
12230 #ifdef MAP_ISO_DEBUG
12231 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 240 << std::endl;
12232 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 240 << std::endl;
12233 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 240 << std::endl;
12234 #endif
12235 }
12236
12237 template<>
12238 void AddLinesAndFaces<241>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12239 {
12240 va.AddLine(vertex_id[3],vertex_id[0]);
12241 va.AddLine(vertex_id[5],vertex_id[0]);
12242 va.AddLine(vertex_id[6],vertex_id[5]);
12243 va.AddLine(vertex_id[7],vertex_id[3]);
12244 va.AddLine(vertex_id[7],vertex_id[6]);
12245 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[0]);
12246
12247 #ifdef MAP_ISO_DEBUG
12248 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 241 << std::endl;
12249 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 241 << std::endl;
12250 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 241 << std::endl;
12251 #endif
12252 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[5]);
12253
12254 #ifdef MAP_ISO_DEBUG
12255 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 241 << std::endl;
12256 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 241 << std::endl;
12257 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 241 << std::endl;
12258 #endif
12259 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[6]);
12260
12261 #ifdef MAP_ISO_DEBUG
12262 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 241 << std::endl;
12263 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 241 << std::endl;
12264 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 241 << std::endl;
12265 #endif
12266 }
12267
12268 template<>
12269 void AddLinesAndFaces<242>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12270 {
12271 va.AddLine(vertex_id[1],vertex_id[0]);
12272 va.AddLine(vertex_id[4],vertex_id[0]);
12273 va.AddLine(vertex_id[6],vertex_id[1]);
12274 va.AddLine(vertex_id[7],vertex_id[4]);
12275 va.AddLine(vertex_id[7],vertex_id[6]);
12276 va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[7]);
12277
12278 #ifdef MAP_ISO_DEBUG
12279 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 242 << std::endl;
12280 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 242 << std::endl;
12281 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 242 << std::endl;
12282 #endif
12283 va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[4]);
12284
12285 #ifdef MAP_ISO_DEBUG
12286 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 242 << std::endl;
12287 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 242 << std::endl;
12288 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 242 << std::endl;
12289 #endif
12290 va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[0]);
12291
12292 #ifdef MAP_ISO_DEBUG
12293 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 242 << std::endl;
12294 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 242 << std::endl;
12295 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 242 << std::endl;
12296 #endif
12297 }
12298
12299 template<>
12300 void AddLinesAndFaces<243>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12301 {
12302 va.AddLine(vertex_id[3],vertex_id[1]);
12303 va.AddLine(vertex_id[6],vertex_id[1]);
12304 va.AddLine(vertex_id[7],vertex_id[3]);
12305 va.AddLine(vertex_id[7],vertex_id[6]);
12306 va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[1]);
12307
12308 #ifdef MAP_ISO_DEBUG
12309 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 243 << std::endl;
12310 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 243 << std::endl;
12311 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 243 << std::endl;
12312 #endif
12313 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[6]);
12314
12315 #ifdef MAP_ISO_DEBUG
12316 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 243 << std::endl;
12317 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 243 << std::endl;
12318 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 243 << std::endl;
12319 #endif
12320 }
12321
12322 template<>
12323 void AddLinesAndFaces<244>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12324 {
12325 va.AddLine(vertex_id[2],vertex_id[1]);
12326 va.AddLine(vertex_id[5],vertex_id[1]);
12327 va.AddLine(vertex_id[5],vertex_id[4]);
12328 va.AddLine(vertex_id[7],vertex_id[2]);
12329 va.AddLine(vertex_id[7],vertex_id[4]);
12330 va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[4]);
12331
12332 #ifdef MAP_ISO_DEBUG
12333 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 244 << std::endl;
12334 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 244 << std::endl;
12335 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 244 << std::endl;
12336 #endif
12337 va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[5]);
12338
12339 #ifdef MAP_ISO_DEBUG
12340 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 244 << std::endl;
12341 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 244 << std::endl;
12342 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 244 << std::endl;
12343 #endif
12344 va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[1]);
12345
12346 #ifdef MAP_ISO_DEBUG
12347 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 244 << std::endl;
12348 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 244 << std::endl;
12349 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 244 << std::endl;
12350 #endif
12351 }
12352
12353 template<>
12354 void AddLinesAndFaces<245>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12355 {
12356 va.AddLine(vertex_id[1],vertex_id[0]);
12357 va.AddLine(vertex_id[2],vertex_id[0]);
12358 va.AddLine(vertex_id[2],vertex_id[1]);
12359 va.AddLine(vertex_id[3],vertex_id[0]);
12360 va.AddLine(vertex_id[3],vertex_id[1]);
12361 va.AddLine(vertex_id[3],vertex_id[2]);
12362 va.AddLine(vertex_id[5],vertex_id[0]);
12363 va.AddLine(vertex_id[5],vertex_id[1]);
12364 va.AddLine(vertex_id[7],vertex_id[2]);
12365 va.AddLine(vertex_id[7],vertex_id[3]);
12366 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
12367
12368 #ifdef MAP_ISO_DEBUG
12369 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 245 << std::endl;
12370 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 245 << std::endl;
12371 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 245 << std::endl;
12372 #endif
12373 va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[0]);
12374
12375 #ifdef MAP_ISO_DEBUG
12376 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 245 << std::endl;
12377 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 245 << std::endl;
12378 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 245 << std::endl;
12379 #endif
12380 va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[5]);
12381
12382 #ifdef MAP_ISO_DEBUG
12383 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 245 << std::endl;
12384 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 245 << std::endl;
12385 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 245 << std::endl;
12386 #endif
12387 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[2]);
12388
12389 #ifdef MAP_ISO_DEBUG
12390 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 245 << std::endl;
12391 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 245 << std::endl;
12392 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 245 << std::endl;
12393 #endif
12394 }
12395
12396 template<>
12397 void AddLinesAndFaces<246>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12398 {
12399 va.AddLine(vertex_id[2],vertex_id[0]);
12400 va.AddLine(vertex_id[4],vertex_id[0]);
12401 va.AddLine(vertex_id[7],vertex_id[2]);
12402 va.AddLine(vertex_id[7],vertex_id[4]);
12403 va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[4]);
12404
12405 #ifdef MAP_ISO_DEBUG
12406 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 246 << std::endl;
12407 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 246 << std::endl;
12408 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 246 << std::endl;
12409 #endif
12410 va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[0]);
12411
12412 #ifdef MAP_ISO_DEBUG
12413 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 246 << std::endl;
12414 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 246 << std::endl;
12415 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 246 << std::endl;
12416 #endif
12417 }
12418
12419 template<>
12420 void AddLinesAndFaces<247>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12421 {
12422 va.AddLine(vertex_id[3],vertex_id[2]);
12423 va.AddLine(vertex_id[7],vertex_id[2]);
12424 va.AddLine(vertex_id[7],vertex_id[3]);
12425 va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[2]);
12426
12427 #ifdef MAP_ISO_DEBUG
12428 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 247 << std::endl;
12429 if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 247 << std::endl;
12430 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 247 << std::endl;
12431 #endif
12432 }
12433
12434 template<>
12435 void AddLinesAndFaces<248>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12436 {
12437 va.AddLine(vertex_id[3],vertex_id[2]);
12438 va.AddLine(vertex_id[4],vertex_id[3]);
12439 va.AddLine(vertex_id[5],vertex_id[4]);
12440 va.AddLine(vertex_id[6],vertex_id[2]);
12441 va.AddLine(vertex_id[6],vertex_id[5]);
12442 va.AddTriN(vertex_id[4],vertex_id[6],vertex_id[5]);
12443
12444 #ifdef MAP_ISO_DEBUG
12445 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 248 << std::endl;
12446 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 248 << std::endl;
12447 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 248 << std::endl;
12448 #endif
12449 va.AddTriN(vertex_id[4],vertex_id[2],vertex_id[6]);
12450
12451 #ifdef MAP_ISO_DEBUG
12452 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 248 << std::endl;
12453 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 248 << std::endl;
12454 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 248 << std::endl;
12455 #endif
12456 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[2]);
12457
12458 #ifdef MAP_ISO_DEBUG
12459 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 248 << std::endl;
12460 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 248 << std::endl;
12461 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 248 << std::endl;
12462 #endif
12463 }
12464
12465 template<>
12466 void AddLinesAndFaces<249>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12467 {
12468 va.AddLine(vertex_id[2],vertex_id[0]);
12469 va.AddLine(vertex_id[5],vertex_id[0]);
12470 va.AddLine(vertex_id[6],vertex_id[2]);
12471 va.AddLine(vertex_id[6],vertex_id[5]);
12472 va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[0]);
12473
12474 #ifdef MAP_ISO_DEBUG
12475 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 249 << std::endl;
12476 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 249 << std::endl;
12477 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 249 << std::endl;
12478 #endif
12479 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[5]);
12480
12481 #ifdef MAP_ISO_DEBUG
12482 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 249 << std::endl;
12483 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 249 << std::endl;
12484 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 249 << std::endl;
12485 #endif
12486 }
12487
12488 template<>
12489 void AddLinesAndFaces<250>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12490 {
12491 va.AddLine(vertex_id[1],vertex_id[0]);
12492 va.AddLine(vertex_id[2],vertex_id[0]);
12493 va.AddLine(vertex_id[2],vertex_id[1]);
12494 va.AddLine(vertex_id[3],vertex_id[0]);
12495 va.AddLine(vertex_id[3],vertex_id[1]);
12496 va.AddLine(vertex_id[3],vertex_id[2]);
12497 va.AddLine(vertex_id[4],vertex_id[0]);
12498 va.AddLine(vertex_id[4],vertex_id[3]);
12499 va.AddLine(vertex_id[6],vertex_id[1]);
12500 va.AddLine(vertex_id[6],vertex_id[2]);
12501 va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
12502
12503 #ifdef MAP_ISO_DEBUG
12504 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 250 << std::endl;
12505 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 250 << std::endl;
12506 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 250 << std::endl;
12507 #endif
12508 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
12509
12510 #ifdef MAP_ISO_DEBUG
12511 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 250 << std::endl;
12512 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 250 << std::endl;
12513 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 250 << std::endl;
12514 #endif
12515 va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[6]);
12516
12517 #ifdef MAP_ISO_DEBUG
12518 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 250 << std::endl;
12519 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 250 << std::endl;
12520 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 250 << std::endl;
12521 #endif
12522 va.AddTriN(vertex_id[2],vertex_id[3],vertex_id[1]);
12523
12524 #ifdef MAP_ISO_DEBUG
12525 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 250 << std::endl;
12526 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 250 << std::endl;
12527 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 250 << std::endl;
12528 #endif
12529 }
12530
12531 template<>
12532 void AddLinesAndFaces<251>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12533 {
12534 va.AddLine(vertex_id[2],vertex_id[1]);
12535 va.AddLine(vertex_id[6],vertex_id[1]);
12536 va.AddLine(vertex_id[6],vertex_id[2]);
12537 va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[1]);
12538
12539 #ifdef MAP_ISO_DEBUG
12540 if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 251 << std::endl;
12541 if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 251 << std::endl;
12542 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 251 << std::endl;
12543 #endif
12544 }
12545
12546 template<>
12547 void AddLinesAndFaces<252>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12548 {
12549 va.AddLine(vertex_id[3],vertex_id[1]);
12550 va.AddLine(vertex_id[4],vertex_id[3]);
12551 va.AddLine(vertex_id[5],vertex_id[1]);
12552 va.AddLine(vertex_id[5],vertex_id[4]);
12553 va.AddTriN(vertex_id[4],vertex_id[1],vertex_id[5]);
12554
12555 #ifdef MAP_ISO_DEBUG
12556 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 252 << std::endl;
12557 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 252 << std::endl;
12558 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 252 << std::endl;
12559 #endif
12560 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[1]);
12561
12562 #ifdef MAP_ISO_DEBUG
12563 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 252 << std::endl;
12564 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 252 << std::endl;
12565 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 252 << std::endl;
12566 #endif
12567 }
12568
12569 template<>
12570 void AddLinesAndFaces<253>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12571 {
12572 va.AddLine(vertex_id[1],vertex_id[0]);
12573 va.AddLine(vertex_id[5],vertex_id[0]);
12574 va.AddLine(vertex_id[5],vertex_id[1]);
12575 va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[0]);
12576
12577 #ifdef MAP_ISO_DEBUG
12578 if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 253 << std::endl;
12579 if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 253 << std::endl;
12580 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 253 << std::endl;
12581 #endif
12582 }
12583
12584 template<>
12585 void AddLinesAndFaces<254>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12586 {
12587 va.AddLine(vertex_id[3],vertex_id[0]);
12588 va.AddLine(vertex_id[4],vertex_id[0]);
12589 va.AddLine(vertex_id[4],vertex_id[3]);
12590 va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
12591
12592 #ifdef MAP_ISO_DEBUG
12593 if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 254 << std::endl;
12594 if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 254 << std::endl;
12595 if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 254 << std::endl;
12596 #endif
12597 }
12598
12599 template<>
12600 void AddLinesAndFaces<255>(IndexedVertexArray& va,unsigned int vertex_id[12] )
12601 {
12602 }
12603
12604 void GenerateLFList(AddLFList& lfl)
12605 {
12606 lfl.clear();
12607 lfl.push_back(AddLinesAndFaces<0>);
12608 lfl.push_back(AddLinesAndFaces<1>);
12609 lfl.push_back(AddLinesAndFaces<2>);
12610 lfl.push_back(AddLinesAndFaces<3>);
12611 lfl.push_back(AddLinesAndFaces<4>);
12612 lfl.push_back(AddLinesAndFaces<5>);
12613 lfl.push_back(AddLinesAndFaces<6>);
12614 lfl.push_back(AddLinesAndFaces<7>);
12615 lfl.push_back(AddLinesAndFaces<8>);
12616 lfl.push_back(AddLinesAndFaces<9>);
12617 lfl.push_back(AddLinesAndFaces<10>);
12618 lfl.push_back(AddLinesAndFaces<11>);
12619 lfl.push_back(AddLinesAndFaces<12>);
12620 lfl.push_back(AddLinesAndFaces<13>);
12621 lfl.push_back(AddLinesAndFaces<14>);
12622 lfl.push_back(AddLinesAndFaces<15>);
12623 lfl.push_back(AddLinesAndFaces<16>);
12624 lfl.push_back(AddLinesAndFaces<17>);
12625 lfl.push_back(AddLinesAndFaces<18>);
12626 lfl.push_back(AddLinesAndFaces<19>);
12627 lfl.push_back(AddLinesAndFaces<20>);
12628 lfl.push_back(AddLinesAndFaces<21>);
12629 lfl.push_back(AddLinesAndFaces<22>);
12630 lfl.push_back(AddLinesAndFaces<23>);
12631 lfl.push_back(AddLinesAndFaces<24>);
12632 lfl.push_back(AddLinesAndFaces<25>);
12633 lfl.push_back(AddLinesAndFaces<26>);
12634 lfl.push_back(AddLinesAndFaces<27>);
12635 lfl.push_back(AddLinesAndFaces<28>);
12636 lfl.push_back(AddLinesAndFaces<29>);
12637 lfl.push_back(AddLinesAndFaces<30>);
12638 lfl.push_back(AddLinesAndFaces<31>);
12639 lfl.push_back(AddLinesAndFaces<32>);
12640 lfl.push_back(AddLinesAndFaces<33>);
12641 lfl.push_back(AddLinesAndFaces<34>);
12642 lfl.push_back(AddLinesAndFaces<35>);
12643 lfl.push_back(AddLinesAndFaces<36>);
12644 lfl.push_back(AddLinesAndFaces<37>);
12645 lfl.push_back(AddLinesAndFaces<38>);
12646 lfl.push_back(AddLinesAndFaces<39>);
12647 lfl.push_back(AddLinesAndFaces<40>);
12648 lfl.push_back(AddLinesAndFaces<41>);
12649 lfl.push_back(AddLinesAndFaces<42>);
12650 lfl.push_back(AddLinesAndFaces<43>);
12651 lfl.push_back(AddLinesAndFaces<44>);
12652 lfl.push_back(AddLinesAndFaces<45>);
12653 lfl.push_back(AddLinesAndFaces<46>);
12654 lfl.push_back(AddLinesAndFaces<47>);
12655 lfl.push_back(AddLinesAndFaces<48>);
12656 lfl.push_back(AddLinesAndFaces<49>);
12657 lfl.push_back(AddLinesAndFaces<50>);
12658 lfl.push_back(AddLinesAndFaces<51>);
12659 lfl.push_back(AddLinesAndFaces<52>);
12660 lfl.push_back(AddLinesAndFaces<53>);
12661 lfl.push_back(AddLinesAndFaces<54>);
12662 lfl.push_back(AddLinesAndFaces<55>);
12663 lfl.push_back(AddLinesAndFaces<56>);
12664 lfl.push_back(AddLinesAndFaces<57>);
12665 lfl.push_back(AddLinesAndFaces<58>);
12666 lfl.push_back(AddLinesAndFaces<59>);
12667 lfl.push_back(AddLinesAndFaces<60>);
12668 lfl.push_back(AddLinesAndFaces<61>);
12669 lfl.push_back(AddLinesAndFaces<62>);
12670 lfl.push_back(AddLinesAndFaces<63>);
12671 lfl.push_back(AddLinesAndFaces<64>);
12672 lfl.push_back(AddLinesAndFaces<65>);
12673 lfl.push_back(AddLinesAndFaces<66>);
12674 lfl.push_back(AddLinesAndFaces<67>);
12675 lfl.push_back(AddLinesAndFaces<68>);
12676 lfl.push_back(AddLinesAndFaces<69>);
12677 lfl.push_back(AddLinesAndFaces<70>);
12678 lfl.push_back(AddLinesAndFaces<71>);
12679 lfl.push_back(AddLinesAndFaces<72>);
12680 lfl.push_back(AddLinesAndFaces<73>);
12681 lfl.push_back(AddLinesAndFaces<74>);
12682 lfl.push_back(AddLinesAndFaces<75>);
12683 lfl.push_back(AddLinesAndFaces<76>);
12684 lfl.push_back(AddLinesAndFaces<77>);
12685 lfl.push_back(AddLinesAndFaces<78>);
12686 lfl.push_back(AddLinesAndFaces<79>);
12687 lfl.push_back(AddLinesAndFaces<80>);
12688 lfl.push_back(AddLinesAndFaces<81>);
12689 lfl.push_back(AddLinesAndFaces<82>);
12690 lfl.push_back(AddLinesAndFaces<83>);
12691 lfl.push_back(AddLinesAndFaces<84>);
12692 lfl.push_back(AddLinesAndFaces<85>);
12693 lfl.push_back(AddLinesAndFaces<86>);
12694 lfl.push_back(AddLinesAndFaces<87>);
12695 lfl.push_back(AddLinesAndFaces<88>);
12696 lfl.push_back(AddLinesAndFaces<89>);
12697 lfl.push_back(AddLinesAndFaces<90>);
12698 lfl.push_back(AddLinesAndFaces<91>);
12699 lfl.push_back(AddLinesAndFaces<92>);
12700 lfl.push_back(AddLinesAndFaces<93>);
12701 lfl.push_back(AddLinesAndFaces<94>);
12702 lfl.push_back(AddLinesAndFaces<95>);
12703 lfl.push_back(AddLinesAndFaces<96>);
12704 lfl.push_back(AddLinesAndFaces<97>);
12705 lfl.push_back(AddLinesAndFaces<98>);
12706 lfl.push_back(AddLinesAndFaces<99>);
12707 lfl.push_back(AddLinesAndFaces<100>);
12708 lfl.push_back(AddLinesAndFaces<101>);
12709 lfl.push_back(AddLinesAndFaces<102>);
12710 lfl.push_back(AddLinesAndFaces<103>);
12711 lfl.push_back(AddLinesAndFaces<104>);
12712 lfl.push_back(AddLinesAndFaces<105>);
12713 lfl.push_back(AddLinesAndFaces<106>);
12714 lfl.push_back(AddLinesAndFaces<107>);
12715 lfl.push_back(AddLinesAndFaces<108>);
12716 lfl.push_back(AddLinesAndFaces<109>);
12717 lfl.push_back(AddLinesAndFaces<110>);
12718 lfl.push_back(AddLinesAndFaces<111>);
12719 lfl.push_back(AddLinesAndFaces<112>);
12720 lfl.push_back(AddLinesAndFaces<113>);
12721 lfl.push_back(AddLinesAndFaces<114>);
12722 lfl.push_back(AddLinesAndFaces<115>);
12723 lfl.push_back(AddLinesAndFaces<116>);
12724 lfl.push_back(AddLinesAndFaces<117>);
12725 lfl.push_back(AddLinesAndFaces<118>);
12726 lfl.push_back(AddLinesAndFaces<119>);
12727 lfl.push_back(AddLinesAndFaces<120>);
12728 lfl.push_back(AddLinesAndFaces<121>);
12729 lfl.push_back(AddLinesAndFaces<122>);
12730 lfl.push_back(AddLinesAndFaces<123>);
12731 lfl.push_back(AddLinesAndFaces<124>);
12732 lfl.push_back(AddLinesAndFaces<125>);
12733 lfl.push_back(AddLinesAndFaces<126>);
12734 lfl.push_back(AddLinesAndFaces<127>);
12735 lfl.push_back(AddLinesAndFaces<128>);
12736 lfl.push_back(AddLinesAndFaces<129>);
12737 lfl.push_back(AddLinesAndFaces<130>);
12738 lfl.push_back(AddLinesAndFaces<131>);
12739 lfl.push_back(AddLinesAndFaces<132>);
12740 lfl.push_back(AddLinesAndFaces<133>);
12741 lfl.push_back(AddLinesAndFaces<134>);
12742 lfl.push_back(AddLinesAndFaces<135>);
12743 lfl.push_back(AddLinesAndFaces<136>);
12744 lfl.push_back(AddLinesAndFaces<137>);
12745 lfl.push_back(AddLinesAndFaces<138>);
12746 lfl.push_back(AddLinesAndFaces<139>);
12747 lfl.push_back(AddLinesAndFaces<140>);
12748 lfl.push_back(AddLinesAndFaces<141>);
12749 lfl.push_back(AddLinesAndFaces<142>);
12750 lfl.push_back(AddLinesAndFaces<143>);
12751 lfl.push_back(AddLinesAndFaces<144>);
12752 lfl.push_back(AddLinesAndFaces<145>);
12753 lfl.push_back(AddLinesAndFaces<146>);
12754 lfl.push_back(AddLinesAndFaces<147>);
12755 lfl.push_back(AddLinesAndFaces<148>);
12756 lfl.push_back(AddLinesAndFaces<149>);
12757 lfl.push_back(AddLinesAndFaces<150>);
12758 lfl.push_back(AddLinesAndFaces<151>);
12759 lfl.push_back(AddLinesAndFaces<152>);
12760 lfl.push_back(AddLinesAndFaces<153>);
12761 lfl.push_back(AddLinesAndFaces<154>);
12762 lfl.push_back(AddLinesAndFaces<155>);
12763 lfl.push_back(AddLinesAndFaces<156>);
12764 lfl.push_back(AddLinesAndFaces<157>);
12765 lfl.push_back(AddLinesAndFaces<158>);
12766 lfl.push_back(AddLinesAndFaces<159>);
12767 lfl.push_back(AddLinesAndFaces<160>);
12768 lfl.push_back(AddLinesAndFaces<161>);
12769 lfl.push_back(AddLinesAndFaces<162>);
12770 lfl.push_back(AddLinesAndFaces<163>);
12771 lfl.push_back(AddLinesAndFaces<164>);
12772 lfl.push_back(AddLinesAndFaces<165>);
12773 lfl.push_back(AddLinesAndFaces<166>);
12774 lfl.push_back(AddLinesAndFaces<167>);
12775 lfl.push_back(AddLinesAndFaces<168>);
12776 lfl.push_back(AddLinesAndFaces<169>);
12777 lfl.push_back(AddLinesAndFaces<170>);
12778 lfl.push_back(AddLinesAndFaces<171>);
12779 lfl.push_back(AddLinesAndFaces<172>);
12780 lfl.push_back(AddLinesAndFaces<173>);
12781 lfl.push_back(AddLinesAndFaces<174>);
12782 lfl.push_back(AddLinesAndFaces<175>);
12783 lfl.push_back(AddLinesAndFaces<176>);
12784 lfl.push_back(AddLinesAndFaces<177>);
12785 lfl.push_back(AddLinesAndFaces<178>);
12786 lfl.push_back(AddLinesAndFaces<179>);
12787 lfl.push_back(AddLinesAndFaces<180>);
12788 lfl.push_back(AddLinesAndFaces<181>);
12789 lfl.push_back(AddLinesAndFaces<182>);
12790 lfl.push_back(AddLinesAndFaces<183>);
12791 lfl.push_back(AddLinesAndFaces<184>);
12792 lfl.push_back(AddLinesAndFaces<185>);
12793 lfl.push_back(AddLinesAndFaces<186>);
12794 lfl.push_back(AddLinesAndFaces<187>);
12795 lfl.push_back(AddLinesAndFaces<188>);
12796 lfl.push_back(AddLinesAndFaces<189>);
12797 lfl.push_back(AddLinesAndFaces<190>);
12798 lfl.push_back(AddLinesAndFaces<191>);
12799 lfl.push_back(AddLinesAndFaces<192>);
12800 lfl.push_back(AddLinesAndFaces<193>);
12801 lfl.push_back(AddLinesAndFaces<194>);
12802 lfl.push_back(AddLinesAndFaces<195>);
12803 lfl.push_back(AddLinesAndFaces<196>);
12804 lfl.push_back(AddLinesAndFaces<197>);
12805 lfl.push_back(AddLinesAndFaces<198>);
12806 lfl.push_back(AddLinesAndFaces<199>);
12807 lfl.push_back(AddLinesAndFaces<200>);
12808 lfl.push_back(AddLinesAndFaces<201>);
12809 lfl.push_back(AddLinesAndFaces<202>);
12810 lfl.push_back(AddLinesAndFaces<203>);
12811 lfl.push_back(AddLinesAndFaces<204>);
12812 lfl.push_back(AddLinesAndFaces<205>);
12813 lfl.push_back(AddLinesAndFaces<206>);
12814 lfl.push_back(AddLinesAndFaces<207>);
12815 lfl.push_back(AddLinesAndFaces<208>);
12816 lfl.push_back(AddLinesAndFaces<209>);
12817 lfl.push_back(AddLinesAndFaces<210>);
12818 lfl.push_back(AddLinesAndFaces<211>);
12819 lfl.push_back(AddLinesAndFaces<212>);
12820 lfl.push_back(AddLinesAndFaces<213>);
12821 lfl.push_back(AddLinesAndFaces<214>);
12822 lfl.push_back(AddLinesAndFaces<215>);
12823 lfl.push_back(AddLinesAndFaces<216>);
12824 lfl.push_back(AddLinesAndFaces<217>);
12825 lfl.push_back(AddLinesAndFaces<218>);
12826 lfl.push_back(AddLinesAndFaces<219>);
12827 lfl.push_back(AddLinesAndFaces<220>);
12828 lfl.push_back(AddLinesAndFaces<221>);
12829 lfl.push_back(AddLinesAndFaces<222>);
12830 lfl.push_back(AddLinesAndFaces<223>);
12831 lfl.push_back(AddLinesAndFaces<224>);
12832 lfl.push_back(AddLinesAndFaces<225>);
12833 lfl.push_back(AddLinesAndFaces<226>);
12834 lfl.push_back(AddLinesAndFaces<227>);
12835 lfl.push_back(AddLinesAndFaces<228>);
12836 lfl.push_back(AddLinesAndFaces<229>);
12837 lfl.push_back(AddLinesAndFaces<230>);
12838 lfl.push_back(AddLinesAndFaces<231>);
12839 lfl.push_back(AddLinesAndFaces<232>);
12840 lfl.push_back(AddLinesAndFaces<233>);
12841 lfl.push_back(AddLinesAndFaces<234>);
12842 lfl.push_back(AddLinesAndFaces<235>);
12843 lfl.push_back(AddLinesAndFaces<236>);
12844 lfl.push_back(AddLinesAndFaces<237>);
12845 lfl.push_back(AddLinesAndFaces<238>);
12846 lfl.push_back(AddLinesAndFaces<239>);
12847 lfl.push_back(AddLinesAndFaces<240>);
12848 lfl.push_back(AddLinesAndFaces<241>);
12849 lfl.push_back(AddLinesAndFaces<242>);
12850 lfl.push_back(AddLinesAndFaces<243>);
12851 lfl.push_back(AddLinesAndFaces<244>);
12852 lfl.push_back(AddLinesAndFaces<245>);
12853 lfl.push_back(AddLinesAndFaces<246>);
12854 lfl.push_back(AddLinesAndFaces<247>);
12855 lfl.push_back(AddLinesAndFaces<248>);
12856 lfl.push_back(AddLinesAndFaces<249>);
12857 lfl.push_back(AddLinesAndFaces<250>);
12858 lfl.push_back(AddLinesAndFaces<251>);
12859 lfl.push_back(AddLinesAndFaces<252>);
12860 lfl.push_back(AddLinesAndFaces<253>);
12861 lfl.push_back(AddLinesAndFaces<254>);
12862 lfl.push_back(AddLinesAndFaces<255>);
12863
12864 }
12865
12866 }}}