OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
map_iso_spec.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // This file is part of the OpenStructure project <www.openstructure.org>
3 //
4 // Copyright (C) 2008-2011 by the OpenStructure authors
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License as published by the Free
8 // Software Foundation; either version 3.0 of the License, or (at your option)
9 // any later version.
10 // This library is distributed in the hope that it will be useful, but WITHOUT
11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 // details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this library; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 //------------------------------------------------------------------------------
19 
20 // automatically generated by generate_map_iso_spec.py
21 // do not edit directly
22 
23 #include "map_iso_gen.hh"
24 
25 namespace ost { namespace gfx { namespace map_iso {
26 
27 template<int N>
28 void AddLinesAndFaces(IndexedVertexArray& va, // vertex array
29  unsigned int vertex_id[12] // this list of vertex ids
30  );
31 
32 template<>
33 void AddLinesAndFaces<0>(IndexedVertexArray& va,unsigned int vertex_id[12] )
34 {
35 }
36 
37 template<>
38 void AddLinesAndFaces<1>(IndexedVertexArray& va,unsigned int vertex_id[12] )
39 {
40  va.AddLine(vertex_id[3],vertex_id[0]);
41  va.AddLine(vertex_id[4],vertex_id[0]);
42  va.AddLine(vertex_id[4],vertex_id[3]);
43  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
44 
45 #ifdef MAP_ISO_DEBUG
46  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 1 << std::endl;
47  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 1 << std::endl;
48  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 1 << std::endl;
49 #endif
50 }
51 
52 template<>
53 void AddLinesAndFaces<2>(IndexedVertexArray& va,unsigned int vertex_id[12] )
54 {
55  va.AddLine(vertex_id[1],vertex_id[0]);
56  va.AddLine(vertex_id[5],vertex_id[0]);
57  va.AddLine(vertex_id[5],vertex_id[1]);
58  va.AddTriN(vertex_id[5],vertex_id[1],vertex_id[0]);
59 
60 #ifdef MAP_ISO_DEBUG
61  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 2 << std::endl;
62  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 2 << std::endl;
63  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 2 << std::endl;
64 #endif
65 }
66 
67 template<>
68 void AddLinesAndFaces<3>(IndexedVertexArray& va,unsigned int vertex_id[12] )
69 {
70  va.AddLine(vertex_id[3],vertex_id[1]);
71  va.AddLine(vertex_id[4],vertex_id[3]);
72  va.AddLine(vertex_id[5],vertex_id[1]);
73  va.AddLine(vertex_id[5],vertex_id[4]);
74  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
75 
76 #ifdef MAP_ISO_DEBUG
77  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 3 << std::endl;
78  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 3 << std::endl;
79  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 3 << std::endl;
80 #endif
81  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[5]);
82 
83 #ifdef MAP_ISO_DEBUG
84  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 3 << std::endl;
85  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 3 << std::endl;
86  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 3 << std::endl;
87 #endif
88 }
89 
90 template<>
91 void AddLinesAndFaces<4>(IndexedVertexArray& va,unsigned int vertex_id[12] )
92 {
93  va.AddLine(vertex_id[2],vertex_id[1]);
94  va.AddLine(vertex_id[6],vertex_id[1]);
95  va.AddLine(vertex_id[6],vertex_id[2]);
96  va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[1]);
97 
98 #ifdef MAP_ISO_DEBUG
99  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 4 << std::endl;
100  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 4 << std::endl;
101  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 4 << std::endl;
102 #endif
103 }
104 
105 template<>
106 void AddLinesAndFaces<5>(IndexedVertexArray& va,unsigned int vertex_id[12] )
107 {
108  va.AddLine(vertex_id[1],vertex_id[0]);
109  va.AddLine(vertex_id[2],vertex_id[0]);
110  va.AddLine(vertex_id[2],vertex_id[1]);
111  va.AddLine(vertex_id[3],vertex_id[0]);
112  va.AddLine(vertex_id[3],vertex_id[1]);
113  va.AddLine(vertex_id[3],vertex_id[2]);
114  va.AddLine(vertex_id[4],vertex_id[0]);
115  va.AddLine(vertex_id[4],vertex_id[3]);
116  va.AddLine(vertex_id[6],vertex_id[1]);
117  va.AddLine(vertex_id[6],vertex_id[2]);
118  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
119 
120 #ifdef MAP_ISO_DEBUG
121  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 5 << std::endl;
122  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 5 << std::endl;
123  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 5 << std::endl;
124 #endif
125  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
126 
127 #ifdef MAP_ISO_DEBUG
128  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 5 << std::endl;
129  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 5 << std::endl;
130  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 5 << std::endl;
131 #endif
132  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[1]);
133 
134 #ifdef MAP_ISO_DEBUG
135  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 5 << std::endl;
136  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 5 << std::endl;
137  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 5 << std::endl;
138 #endif
139  va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[6]);
140 
141 #ifdef MAP_ISO_DEBUG
142  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 5 << std::endl;
143  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 5 << std::endl;
144  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 5 << std::endl;
145 #endif
146 }
147 
148 template<>
149 void AddLinesAndFaces<6>(IndexedVertexArray& va,unsigned int vertex_id[12] )
150 {
151  va.AddLine(vertex_id[2],vertex_id[0]);
152  va.AddLine(vertex_id[5],vertex_id[0]);
153  va.AddLine(vertex_id[6],vertex_id[2]);
154  va.AddLine(vertex_id[6],vertex_id[5]);
155  va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[5]);
156 
157 #ifdef MAP_ISO_DEBUG
158  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 6 << std::endl;
159  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 6 << std::endl;
160  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 6 << std::endl;
161 #endif
162  va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[0]);
163 
164 #ifdef MAP_ISO_DEBUG
165  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 6 << std::endl;
166  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 6 << std::endl;
167  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 6 << std::endl;
168 #endif
169 }
170 
171 template<>
172 void AddLinesAndFaces<7>(IndexedVertexArray& va,unsigned int vertex_id[12] )
173 {
174  va.AddLine(vertex_id[3],vertex_id[2]);
175  va.AddLine(vertex_id[4],vertex_id[3]);
176  va.AddLine(vertex_id[5],vertex_id[4]);
177  va.AddLine(vertex_id[6],vertex_id[2]);
178  va.AddLine(vertex_id[6],vertex_id[5]);
179  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
180 
181 #ifdef MAP_ISO_DEBUG
182  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 7 << std::endl;
183  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 7 << std::endl;
184  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 7 << std::endl;
185 #endif
186  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[6]);
187 
188 #ifdef MAP_ISO_DEBUG
189  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 7 << std::endl;
190  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 7 << std::endl;
191  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 7 << std::endl;
192 #endif
193  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[5]);
194 
195 #ifdef MAP_ISO_DEBUG
196  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 7 << std::endl;
197  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 7 << std::endl;
198  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 7 << std::endl;
199 #endif
200 }
201 
202 template<>
203 void AddLinesAndFaces<8>(IndexedVertexArray& va,unsigned int vertex_id[12] )
204 {
205  va.AddLine(vertex_id[3],vertex_id[2]);
206  va.AddLine(vertex_id[7],vertex_id[2]);
207  va.AddLine(vertex_id[7],vertex_id[3]);
208  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
209 
210 #ifdef MAP_ISO_DEBUG
211  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 8 << std::endl;
212  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 8 << std::endl;
213  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 8 << std::endl;
214 #endif
215 }
216 
217 template<>
218 void AddLinesAndFaces<9>(IndexedVertexArray& va,unsigned int vertex_id[12] )
219 {
220  va.AddLine(vertex_id[2],vertex_id[0]);
221  va.AddLine(vertex_id[4],vertex_id[0]);
222  va.AddLine(vertex_id[7],vertex_id[2]);
223  va.AddLine(vertex_id[7],vertex_id[4]);
224  va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[0]);
225 
226 #ifdef MAP_ISO_DEBUG
227  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 9 << std::endl;
228  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 9 << std::endl;
229  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 9 << std::endl;
230 #endif
231  va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[4]);
232 
233 #ifdef MAP_ISO_DEBUG
234  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 9 << std::endl;
235  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 9 << std::endl;
236  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 9 << std::endl;
237 #endif
238 }
239 
240 template<>
241 void AddLinesAndFaces<10>(IndexedVertexArray& va,unsigned int vertex_id[12] )
242 {
243  va.AddLine(vertex_id[1],vertex_id[0]);
244  va.AddLine(vertex_id[2],vertex_id[0]);
245  va.AddLine(vertex_id[2],vertex_id[1]);
246  va.AddLine(vertex_id[3],vertex_id[0]);
247  va.AddLine(vertex_id[3],vertex_id[1]);
248  va.AddLine(vertex_id[3],vertex_id[2]);
249  va.AddLine(vertex_id[5],vertex_id[0]);
250  va.AddLine(vertex_id[5],vertex_id[1]);
251  va.AddLine(vertex_id[7],vertex_id[2]);
252  va.AddLine(vertex_id[7],vertex_id[3]);
253  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
254 
255 #ifdef MAP_ISO_DEBUG
256  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 10 << std::endl;
257  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 10 << std::endl;
258  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 10 << std::endl;
259 #endif
260  va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[5]);
261 
262 #ifdef MAP_ISO_DEBUG
263  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 10 << std::endl;
264  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 10 << std::endl;
265  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 10 << std::endl;
266 #endif
267  va.AddTriN(vertex_id[1],vertex_id[3],vertex_id[0]);
268 
269 #ifdef MAP_ISO_DEBUG
270  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 10 << std::endl;
271  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 10 << std::endl;
272  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 10 << std::endl;
273 #endif
274  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
275 
276 #ifdef MAP_ISO_DEBUG
277  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 10 << std::endl;
278  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 10 << std::endl;
279  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 10 << std::endl;
280 #endif
281 }
282 
283 template<>
284 void AddLinesAndFaces<11>(IndexedVertexArray& va,unsigned int vertex_id[12] )
285 {
286  va.AddLine(vertex_id[2],vertex_id[1]);
287  va.AddLine(vertex_id[5],vertex_id[1]);
288  va.AddLine(vertex_id[5],vertex_id[4]);
289  va.AddLine(vertex_id[7],vertex_id[2]);
290  va.AddLine(vertex_id[7],vertex_id[4]);
291  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[1]);
292 
293 #ifdef MAP_ISO_DEBUG
294  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 11 << std::endl;
295  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 11 << std::endl;
296  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 11 << std::endl;
297 #endif
298  va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[5]);
299 
300 #ifdef MAP_ISO_DEBUG
301  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 11 << std::endl;
302  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 11 << std::endl;
303  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 11 << std::endl;
304 #endif
305  va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[4]);
306 
307 #ifdef MAP_ISO_DEBUG
308  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 11 << std::endl;
309  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 11 << std::endl;
310  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 11 << std::endl;
311 #endif
312 }
313 
314 template<>
315 void AddLinesAndFaces<12>(IndexedVertexArray& va,unsigned int vertex_id[12] )
316 {
317  va.AddLine(vertex_id[3],vertex_id[1]);
318  va.AddLine(vertex_id[6],vertex_id[1]);
319  va.AddLine(vertex_id[7],vertex_id[3]);
320  va.AddLine(vertex_id[7],vertex_id[6]);
321  va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[6]);
322 
323 #ifdef MAP_ISO_DEBUG
324  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 12 << std::endl;
325  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 12 << std::endl;
326  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 12 << std::endl;
327 #endif
328  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[1]);
329 
330 #ifdef MAP_ISO_DEBUG
331  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 12 << std::endl;
332  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 12 << std::endl;
333  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 12 << std::endl;
334 #endif
335 }
336 
337 template<>
338 void AddLinesAndFaces<13>(IndexedVertexArray& va,unsigned int vertex_id[12] )
339 {
340  va.AddLine(vertex_id[1],vertex_id[0]);
341  va.AddLine(vertex_id[4],vertex_id[0]);
342  va.AddLine(vertex_id[6],vertex_id[1]);
343  va.AddLine(vertex_id[7],vertex_id[4]);
344  va.AddLine(vertex_id[7],vertex_id[6]);
345  va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[0]);
346 
347 #ifdef MAP_ISO_DEBUG
348  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 13 << std::endl;
349  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 13 << std::endl;
350  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 13 << std::endl;
351 #endif
352  va.AddTriN(vertex_id[1],vertex_id[7],vertex_id[4]);
353 
354 #ifdef MAP_ISO_DEBUG
355  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 13 << std::endl;
356  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 13 << std::endl;
357  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 13 << std::endl;
358 #endif
359  va.AddTriN(vertex_id[1],vertex_id[6],vertex_id[7]);
360 
361 #ifdef MAP_ISO_DEBUG
362  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 13 << std::endl;
363  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 13 << std::endl;
364  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 13 << std::endl;
365 #endif
366 }
367 
368 template<>
369 void AddLinesAndFaces<14>(IndexedVertexArray& va,unsigned int vertex_id[12] )
370 {
371  va.AddLine(vertex_id[3],vertex_id[0]);
372  va.AddLine(vertex_id[5],vertex_id[0]);
373  va.AddLine(vertex_id[6],vertex_id[5]);
374  va.AddLine(vertex_id[7],vertex_id[3]);
375  va.AddLine(vertex_id[7],vertex_id[6]);
376  va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[6]);
377 
378 #ifdef MAP_ISO_DEBUG
379  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 14 << std::endl;
380  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 14 << std::endl;
381  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 14 << std::endl;
382 #endif
383  va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[5]);
384 
385 #ifdef MAP_ISO_DEBUG
386  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 14 << std::endl;
387  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 14 << std::endl;
388  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 14 << std::endl;
389 #endif
390  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[0]);
391 
392 #ifdef MAP_ISO_DEBUG
393  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 14 << std::endl;
394  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 14 << std::endl;
395  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 14 << std::endl;
396 #endif
397 }
398 
399 template<>
400 void AddLinesAndFaces<15>(IndexedVertexArray& va,unsigned int vertex_id[12] )
401 {
402  va.AddLine(vertex_id[5],vertex_id[4]);
403  va.AddLine(vertex_id[6],vertex_id[5]);
404  va.AddLine(vertex_id[7],vertex_id[4]);
405  va.AddLine(vertex_id[7],vertex_id[6]);
406  va.AddTriN(vertex_id[5],vertex_id[7],vertex_id[4]);
407 
408 #ifdef MAP_ISO_DEBUG
409  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 15 << std::endl;
410  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 15 << std::endl;
411  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 15 << std::endl;
412 #endif
413  va.AddTriN(vertex_id[5],vertex_id[6],vertex_id[7]);
414 
415 #ifdef MAP_ISO_DEBUG
416  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 15 << std::endl;
417  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 15 << std::endl;
418  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 15 << std::endl;
419 #endif
420 }
421 
422 template<>
423 void AddLinesAndFaces<16>(IndexedVertexArray& va,unsigned int vertex_id[12] )
424 {
425  va.AddLine(vertex_id[8],vertex_id[4]);
426  va.AddLine(vertex_id[11],vertex_id[4]);
427  va.AddLine(vertex_id[11],vertex_id[8]);
428  va.AddTriN(vertex_id[11],vertex_id[8],vertex_id[4]);
429 
430 #ifdef MAP_ISO_DEBUG
431  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 16 << std::endl;
432  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 16 << std::endl;
433  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 16 << std::endl;
434 #endif
435 }
436 
437 template<>
438 void AddLinesAndFaces<17>(IndexedVertexArray& va,unsigned int vertex_id[12] )
439 {
440  va.AddLine(vertex_id[3],vertex_id[0]);
441  va.AddLine(vertex_id[8],vertex_id[0]);
442  va.AddLine(vertex_id[11],vertex_id[3]);
443  va.AddLine(vertex_id[11],vertex_id[8]);
444  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
445 
446 #ifdef MAP_ISO_DEBUG
447  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 17 << std::endl;
448  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 17 << std::endl;
449  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 17 << std::endl;
450 #endif
451  va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
452 
453 #ifdef MAP_ISO_DEBUG
454  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 17 << std::endl;
455  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 17 << std::endl;
456  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 17 << std::endl;
457 #endif
458 }
459 
460 template<>
461 void AddLinesAndFaces<18>(IndexedVertexArray& va,unsigned int vertex_id[12] )
462 {
463  va.AddLine(vertex_id[1],vertex_id[0]);
464  va.AddLine(vertex_id[4],vertex_id[0]);
465  va.AddLine(vertex_id[5],vertex_id[0]);
466  va.AddLine(vertex_id[5],vertex_id[1]);
467  va.AddLine(vertex_id[5],vertex_id[4]);
468  va.AddLine(vertex_id[8],vertex_id[0]);
469  va.AddLine(vertex_id[8],vertex_id[4]);
470  va.AddLine(vertex_id[8],vertex_id[5]);
471  va.AddLine(vertex_id[11],vertex_id[4]);
472  va.AddLine(vertex_id[11],vertex_id[8]);
473  va.AddTriN(vertex_id[5],vertex_id[11],vertex_id[8]);
474 
475 #ifdef MAP_ISO_DEBUG
476  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
477  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 18 << std::endl;
478  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 18 << std::endl;
479 #endif
480  va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[11]);
481 
482 #ifdef MAP_ISO_DEBUG
483  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
484  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 18 << std::endl;
485  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 18 << std::endl;
486 #endif
487  va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[4]);
488 
489 #ifdef MAP_ISO_DEBUG
490  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
491  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 18 << std::endl;
492  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 18 << std::endl;
493 #endif
494  va.AddTriN(vertex_id[5],vertex_id[0],vertex_id[8]);
495 
496 #ifdef MAP_ISO_DEBUG
497  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
498  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 18 << std::endl;
499  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 18 << std::endl;
500 #endif
501  va.AddTriN(vertex_id[5],vertex_id[5],vertex_id[0]);
502 
503 #ifdef MAP_ISO_DEBUG
504  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
505  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
506  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 18 << std::endl;
507 #endif
508  va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[5]);
509 
510 #ifdef MAP_ISO_DEBUG
511  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
512  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 18 << std::endl;
513  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
514 #endif
515  va.AddTriN(vertex_id[5],vertex_id[0],vertex_id[4]);
516 
517 #ifdef MAP_ISO_DEBUG
518  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
519  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 18 << std::endl;
520  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 18 << std::endl;
521 #endif
522  va.AddTriN(vertex_id[5],vertex_id[1],vertex_id[0]);
523 
524 #ifdef MAP_ISO_DEBUG
525  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 18 << std::endl;
526  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 18 << std::endl;
527  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 18 << std::endl;
528 #endif
529 }
530 
531 template<>
532 void AddLinesAndFaces<19>(IndexedVertexArray& va,unsigned int vertex_id[12] )
533 {
534  va.AddLine(vertex_id[3],vertex_id[1]);
535  va.AddLine(vertex_id[5],vertex_id[1]);
536  va.AddLine(vertex_id[8],vertex_id[5]);
537  va.AddLine(vertex_id[11],vertex_id[3]);
538  va.AddLine(vertex_id[11],vertex_id[8]);
539  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
540 
541 #ifdef MAP_ISO_DEBUG
542  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 19 << std::endl;
543  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 19 << std::endl;
544  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 19 << std::endl;
545 #endif
546  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
547 
548 #ifdef MAP_ISO_DEBUG
549  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 19 << std::endl;
550  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 19 << std::endl;
551  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 19 << std::endl;
552 #endif
553  va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
554 
555 #ifdef MAP_ISO_DEBUG
556  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 19 << std::endl;
557  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 19 << std::endl;
558  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 19 << std::endl;
559 #endif
560 }
561 
562 template<>
563 void AddLinesAndFaces<20>(IndexedVertexArray& va,unsigned int vertex_id[12] )
564 {
565  va.AddLine(vertex_id[2],vertex_id[1]);
566  va.AddLine(vertex_id[6],vertex_id[1]);
567  va.AddLine(vertex_id[6],vertex_id[2]);
568  va.AddLine(vertex_id[8],vertex_id[4]);
569  va.AddLine(vertex_id[11],vertex_id[4]);
570  va.AddLine(vertex_id[11],vertex_id[8]);
571  va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[1]);
572 
573 #ifdef MAP_ISO_DEBUG
574  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 20 << std::endl;
575  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 20 << std::endl;
576  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 20 << std::endl;
577 #endif
578  va.AddTriN(vertex_id[11],vertex_id[8],vertex_id[4]);
579 
580 #ifdef MAP_ISO_DEBUG
581  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 20 << std::endl;
582  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 20 << std::endl;
583  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 20 << std::endl;
584 #endif
585 }
586 
587 template<>
588 void AddLinesAndFaces<21>(IndexedVertexArray& va,unsigned int vertex_id[12] )
589 {
590  va.AddLine(vertex_id[1],vertex_id[0]);
591  va.AddLine(vertex_id[2],vertex_id[0]);
592  va.AddLine(vertex_id[2],vertex_id[1]);
593  va.AddLine(vertex_id[3],vertex_id[0]);
594  va.AddLine(vertex_id[3],vertex_id[1]);
595  va.AddLine(vertex_id[3],vertex_id[2]);
596  va.AddLine(vertex_id[6],vertex_id[1]);
597  va.AddLine(vertex_id[6],vertex_id[2]);
598  va.AddLine(vertex_id[8],vertex_id[0]);
599  va.AddLine(vertex_id[11],vertex_id[3]);
600  va.AddLine(vertex_id[11],vertex_id[8]);
601  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
602 
603 #ifdef MAP_ISO_DEBUG
604  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 21 << std::endl;
605  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 21 << std::endl;
606  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 21 << std::endl;
607 #endif
608  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
609 
610 #ifdef MAP_ISO_DEBUG
611  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 21 << std::endl;
612  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 21 << std::endl;
613  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 21 << std::endl;
614 #endif
615  va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
616 
617 #ifdef MAP_ISO_DEBUG
618  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 21 << std::endl;
619  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 21 << std::endl;
620  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 21 << std::endl;
621 #endif
622  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[1]);
623 
624 #ifdef MAP_ISO_DEBUG
625  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 21 << std::endl;
626  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 21 << std::endl;
627  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 21 << std::endl;
628 #endif
629  va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[6]);
630 
631 #ifdef MAP_ISO_DEBUG
632  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 21 << std::endl;
633  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 21 << std::endl;
634  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 21 << std::endl;
635 #endif
636 }
637 
638 template<>
639 void AddLinesAndFaces<22>(IndexedVertexArray& va,unsigned int vertex_id[12] )
640 {
641  va.AddLine(vertex_id[2],vertex_id[0]);
642  va.AddLine(vertex_id[4],vertex_id[0]);
643  va.AddLine(vertex_id[5],vertex_id[0]);
644  va.AddLine(vertex_id[5],vertex_id[4]);
645  va.AddLine(vertex_id[6],vertex_id[2]);
646  va.AddLine(vertex_id[6],vertex_id[5]);
647  va.AddLine(vertex_id[8],vertex_id[0]);
648  va.AddLine(vertex_id[8],vertex_id[4]);
649  va.AddLine(vertex_id[8],vertex_id[5]);
650  va.AddLine(vertex_id[11],vertex_id[4]);
651  va.AddLine(vertex_id[11],vertex_id[8]);
652  va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[5]);
653 
654 #ifdef MAP_ISO_DEBUG
655  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
656  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 22 << std::endl;
657  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 22 << std::endl;
658 #endif
659  va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[8]);
660 
661 #ifdef MAP_ISO_DEBUG
662  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
663  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 22 << std::endl;
664  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 22 << std::endl;
665 #endif
666  va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[11]);
667 
668 #ifdef MAP_ISO_DEBUG
669  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
670  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 22 << std::endl;
671  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 22 << std::endl;
672 #endif
673  va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[4]);
674 
675 #ifdef MAP_ISO_DEBUG
676  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
677  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 22 << std::endl;
678  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 22 << std::endl;
679 #endif
680  va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[8]);
681 
682 #ifdef MAP_ISO_DEBUG
683  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
684  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 22 << std::endl;
685  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 22 << std::endl;
686 #endif
687  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[0]);
688 
689 #ifdef MAP_ISO_DEBUG
690  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
691  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 22 << std::endl;
692  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 22 << std::endl;
693 #endif
694  va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[5]);
695 
696 #ifdef MAP_ISO_DEBUG
697  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
698  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 22 << std::endl;
699  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 22 << std::endl;
700 #endif
701  va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[4]);
702 
703 #ifdef MAP_ISO_DEBUG
704  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
705  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 22 << std::endl;
706  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 22 << std::endl;
707 #endif
708  va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[0]);
709 
710 #ifdef MAP_ISO_DEBUG
711  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 22 << std::endl;
712  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 22 << std::endl;
713  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 22 << std::endl;
714 #endif
715 }
716 
717 template<>
718 void AddLinesAndFaces<23>(IndexedVertexArray& va,unsigned int vertex_id[12] )
719 {
720  va.AddLine(vertex_id[3],vertex_id[2]);
721  va.AddLine(vertex_id[6],vertex_id[2]);
722  va.AddLine(vertex_id[6],vertex_id[5]);
723  va.AddLine(vertex_id[8],vertex_id[5]);
724  va.AddLine(vertex_id[11],vertex_id[3]);
725  va.AddLine(vertex_id[11],vertex_id[8]);
726  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
727 
728 #ifdef MAP_ISO_DEBUG
729  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 23 << std::endl;
730  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 23 << std::endl;
731  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 23 << std::endl;
732 #endif
733  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[6]);
734 
735 #ifdef MAP_ISO_DEBUG
736  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 23 << std::endl;
737  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 23 << std::endl;
738  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 23 << std::endl;
739 #endif
740  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
741 
742 #ifdef MAP_ISO_DEBUG
743  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 23 << std::endl;
744  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 23 << std::endl;
745  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 23 << std::endl;
746 #endif
747  va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
748 
749 #ifdef MAP_ISO_DEBUG
750  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 23 << std::endl;
751  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 23 << std::endl;
752  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 23 << std::endl;
753 #endif
754 }
755 
756 template<>
757 void AddLinesAndFaces<24>(IndexedVertexArray& va,unsigned int vertex_id[12] )
758 {
759  va.AddLine(vertex_id[3],vertex_id[2]);
760  va.AddLine(vertex_id[4],vertex_id[3]);
761  va.AddLine(vertex_id[7],vertex_id[2]);
762  va.AddLine(vertex_id[7],vertex_id[3]);
763  va.AddLine(vertex_id[7],vertex_id[4]);
764  va.AddLine(vertex_id[8],vertex_id[4]);
765  va.AddLine(vertex_id[11],vertex_id[3]);
766  va.AddLine(vertex_id[11],vertex_id[4]);
767  va.AddLine(vertex_id[11],vertex_id[7]);
768  va.AddLine(vertex_id[11],vertex_id[8]);
769  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
770 
771 #ifdef MAP_ISO_DEBUG
772  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 24 << std::endl;
773  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 24 << std::endl;
774  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 24 << std::endl;
775 #endif
776  va.AddTriN(vertex_id[4],vertex_id[11],vertex_id[3]);
777 
778 #ifdef MAP_ISO_DEBUG
779  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 24 << std::endl;
780  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 24 << std::endl;
781  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 24 << std::endl;
782 #endif
783  va.AddTriN(vertex_id[11],vertex_id[4],vertex_id[8]);
784 
785 #ifdef MAP_ISO_DEBUG
786  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 24 << std::endl;
787  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 24 << std::endl;
788  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 24 << std::endl;
789 #endif
790  va.AddTriN(vertex_id[11],vertex_id[7],vertex_id[4]);
791 
792 #ifdef MAP_ISO_DEBUG
793  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 24 << std::endl;
794  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 24 << std::endl;
795  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 24 << std::endl;
796 #endif
797 }
798 
799 template<>
800 void AddLinesAndFaces<25>(IndexedVertexArray& va,unsigned int vertex_id[12] )
801 {
802  va.AddLine(vertex_id[2],vertex_id[0]);
803  va.AddLine(vertex_id[7],vertex_id[2]);
804  va.AddLine(vertex_id[8],vertex_id[0]);
805  va.AddLine(vertex_id[11],vertex_id[7]);
806  va.AddLine(vertex_id[11],vertex_id[8]);
807  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[0]);
808 
809 #ifdef MAP_ISO_DEBUG
810  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 25 << std::endl;
811  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 25 << std::endl;
812  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 25 << std::endl;
813 #endif
814  va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[8]);
815 
816 #ifdef MAP_ISO_DEBUG
817  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 25 << std::endl;
818  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 25 << std::endl;
819  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 25 << std::endl;
820 #endif
821  va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[11]);
822 
823 #ifdef MAP_ISO_DEBUG
824  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 25 << std::endl;
825  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 25 << std::endl;
826  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 25 << std::endl;
827 #endif
828 }
829 
830 template<>
831 void AddLinesAndFaces<26>(IndexedVertexArray& va,unsigned int vertex_id[12] )
832 {
833  va.AddLine(vertex_id[1],vertex_id[0]);
834  va.AddLine(vertex_id[2],vertex_id[0]);
835  va.AddLine(vertex_id[2],vertex_id[1]);
836  va.AddLine(vertex_id[3],vertex_id[0]);
837  va.AddLine(vertex_id[3],vertex_id[1]);
838  va.AddLine(vertex_id[3],vertex_id[2]);
839  va.AddLine(vertex_id[4],vertex_id[0]);
840  va.AddLine(vertex_id[4],vertex_id[3]);
841  va.AddLine(vertex_id[5],vertex_id[0]);
842  va.AddLine(vertex_id[5],vertex_id[1]);
843  va.AddLine(vertex_id[5],vertex_id[4]);
844  va.AddLine(vertex_id[7],vertex_id[2]);
845  va.AddLine(vertex_id[7],vertex_id[3]);
846  va.AddLine(vertex_id[7],vertex_id[4]);
847  va.AddLine(vertex_id[8],vertex_id[0]);
848  va.AddLine(vertex_id[8],vertex_id[4]);
849  va.AddLine(vertex_id[8],vertex_id[5]);
850  va.AddLine(vertex_id[11],vertex_id[3]);
851  va.AddLine(vertex_id[11],vertex_id[4]);
852  va.AddLine(vertex_id[11],vertex_id[7]);
853  va.AddLine(vertex_id[11],vertex_id[8]);
854  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
855 
856 #ifdef MAP_ISO_DEBUG
857  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 26 << std::endl;
858  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 26 << std::endl;
859  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 26 << std::endl;
860 #endif
861  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
862 
863 #ifdef MAP_ISO_DEBUG
864  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 26 << std::endl;
865  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 26 << std::endl;
866  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 26 << std::endl;
867 #endif
868  va.AddTriN(vertex_id[11],vertex_id[5],vertex_id[8]);
869 
870 #ifdef MAP_ISO_DEBUG
871  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 26 << std::endl;
872  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 26 << std::endl;
873  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 26 << std::endl;
874 #endif
875  va.AddTriN(vertex_id[11],vertex_id[4],vertex_id[5]);
876 
877 #ifdef MAP_ISO_DEBUG
878  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 26 << std::endl;
879  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 26 << std::endl;
880  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 26 << std::endl;
881 #endif
882  va.AddTriN(vertex_id[11],vertex_id[8],vertex_id[4]);
883 
884 #ifdef MAP_ISO_DEBUG
885  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 26 << std::endl;
886  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 26 << std::endl;
887  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 26 << std::endl;
888 #endif
889  va.AddTriN(vertex_id[11],vertex_id[0],vertex_id[8]);
890 
891 #ifdef MAP_ISO_DEBUG
892  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 26 << std::endl;
893  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 26 << std::endl;
894  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 26 << std::endl;
895 #endif
896  va.AddTriN(vertex_id[11],vertex_id[5],vertex_id[0]);
897 
898 #ifdef MAP_ISO_DEBUG
899  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 26 << std::endl;
900  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 26 << std::endl;
901  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 26 << std::endl;
902 #endif
903  va.AddTriN(vertex_id[11],vertex_id[1],vertex_id[5]);
904 
905 #ifdef MAP_ISO_DEBUG
906  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 26 << std::endl;
907  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 26 << std::endl;
908  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 26 << std::endl;
909 #endif
910  va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[1]);
911 
912 #ifdef MAP_ISO_DEBUG
913  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 26 << std::endl;
914  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 26 << std::endl;
915  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 26 << std::endl;
916 #endif
917  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
918 
919 #ifdef MAP_ISO_DEBUG
920  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 26 << std::endl;
921  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 26 << std::endl;
922  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 26 << std::endl;
923 #endif
924  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[4]);
925 
926 #ifdef MAP_ISO_DEBUG
927  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 26 << std::endl;
928  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 26 << std::endl;
929  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 26 << std::endl;
930 #endif
931 }
932 
933 template<>
934 void AddLinesAndFaces<27>(IndexedVertexArray& va,unsigned int vertex_id[12] )
935 {
936  va.AddLine(vertex_id[2],vertex_id[1]);
937  va.AddLine(vertex_id[5],vertex_id[1]);
938  va.AddLine(vertex_id[7],vertex_id[2]);
939  va.AddLine(vertex_id[8],vertex_id[5]);
940  va.AddLine(vertex_id[11],vertex_id[7]);
941  va.AddLine(vertex_id[11],vertex_id[8]);
942  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[1]);
943 
944 #ifdef MAP_ISO_DEBUG
945  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 27 << std::endl;
946  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 27 << std::endl;
947  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 27 << std::endl;
948 #endif
949  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[5]);
950 
951 #ifdef MAP_ISO_DEBUG
952  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 27 << std::endl;
953  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 27 << std::endl;
954  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 27 << std::endl;
955 #endif
956  va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[8]);
957 
958 #ifdef MAP_ISO_DEBUG
959  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 27 << std::endl;
960  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 27 << std::endl;
961  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 27 << std::endl;
962 #endif
963  va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[11]);
964 
965 #ifdef MAP_ISO_DEBUG
966  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 27 << std::endl;
967  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 27 << std::endl;
968  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 27 << std::endl;
969 #endif
970 }
971 
972 template<>
973 void AddLinesAndFaces<28>(IndexedVertexArray& va,unsigned int vertex_id[12] )
974 {
975  va.AddLine(vertex_id[3],vertex_id[1]);
976  va.AddLine(vertex_id[4],vertex_id[3]);
977  va.AddLine(vertex_id[6],vertex_id[1]);
978  va.AddLine(vertex_id[7],vertex_id[3]);
979  va.AddLine(vertex_id[7],vertex_id[4]);
980  va.AddLine(vertex_id[7],vertex_id[6]);
981  va.AddLine(vertex_id[8],vertex_id[4]);
982  va.AddLine(vertex_id[11],vertex_id[3]);
983  va.AddLine(vertex_id[11],vertex_id[4]);
984  va.AddLine(vertex_id[11],vertex_id[7]);
985  va.AddLine(vertex_id[11],vertex_id[8]);
986  va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[6]);
987 
988 #ifdef MAP_ISO_DEBUG
989  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 28 << std::endl;
990  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 28 << std::endl;
991  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 28 << std::endl;
992 #endif
993  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[1]);
994 
995 #ifdef MAP_ISO_DEBUG
996  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 28 << std::endl;
997  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 28 << std::endl;
998  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 28 << std::endl;
999 #endif
1000  va.AddTriN(vertex_id[4],vertex_id[11],vertex_id[3]);
1001 
1002 #ifdef MAP_ISO_DEBUG
1003  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 28 << std::endl;
1004  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 28 << std::endl;
1005  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 28 << std::endl;
1006 #endif
1007  va.AddTriN(vertex_id[11],vertex_id[4],vertex_id[8]);
1008 
1009 #ifdef MAP_ISO_DEBUG
1010  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 28 << std::endl;
1011  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 28 << std::endl;
1012  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 28 << std::endl;
1013 #endif
1014  va.AddTriN(vertex_id[11],vertex_id[7],vertex_id[4]);
1015 
1016 #ifdef MAP_ISO_DEBUG
1017  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 28 << std::endl;
1018  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 28 << std::endl;
1019  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 28 << std::endl;
1020 #endif
1021 }
1022 
1023 template<>
1024 void AddLinesAndFaces<29>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1025 {
1026  va.AddLine(vertex_id[1],vertex_id[0]);
1027  va.AddLine(vertex_id[6],vertex_id[1]);
1028  va.AddLine(vertex_id[7],vertex_id[6]);
1029  va.AddLine(vertex_id[8],vertex_id[0]);
1030  va.AddLine(vertex_id[11],vertex_id[7]);
1031  va.AddLine(vertex_id[11],vertex_id[8]);
1032  va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[0]);
1033 
1034 #ifdef MAP_ISO_DEBUG
1035  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 29 << std::endl;
1036  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 29 << std::endl;
1037  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 29 << std::endl;
1038 #endif
1039  va.AddTriN(vertex_id[1],vertex_id[11],vertex_id[8]);
1040 
1041 #ifdef MAP_ISO_DEBUG
1042  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 29 << std::endl;
1043  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 29 << std::endl;
1044  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 29 << std::endl;
1045 #endif
1046  va.AddTriN(vertex_id[1],vertex_id[7],vertex_id[11]);
1047 
1048 #ifdef MAP_ISO_DEBUG
1049  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 29 << std::endl;
1050  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 29 << std::endl;
1051  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 29 << std::endl;
1052 #endif
1053  va.AddTriN(vertex_id[1],vertex_id[6],vertex_id[7]);
1054 
1055 #ifdef MAP_ISO_DEBUG
1056  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 29 << std::endl;
1057  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 29 << std::endl;
1058  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 29 << std::endl;
1059 #endif
1060 }
1061 
1062 template<>
1063 void AddLinesAndFaces<30>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1064 {
1065  va.AddLine(vertex_id[3],vertex_id[0]);
1066  va.AddLine(vertex_id[4],vertex_id[0]);
1067  va.AddLine(vertex_id[4],vertex_id[3]);
1068  va.AddLine(vertex_id[5],vertex_id[0]);
1069  va.AddLine(vertex_id[5],vertex_id[4]);
1070  va.AddLine(vertex_id[6],vertex_id[5]);
1071  va.AddLine(vertex_id[7],vertex_id[3]);
1072  va.AddLine(vertex_id[7],vertex_id[4]);
1073  va.AddLine(vertex_id[7],vertex_id[6]);
1074  va.AddLine(vertex_id[8],vertex_id[0]);
1075  va.AddLine(vertex_id[8],vertex_id[4]);
1076  va.AddLine(vertex_id[8],vertex_id[5]);
1077  va.AddLine(vertex_id[11],vertex_id[3]);
1078  va.AddLine(vertex_id[11],vertex_id[4]);
1079  va.AddLine(vertex_id[11],vertex_id[7]);
1080  va.AddLine(vertex_id[11],vertex_id[8]);
1081  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
1082 
1083 #ifdef MAP_ISO_DEBUG
1084  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 30 << std::endl;
1085  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 30 << std::endl;
1086  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 30 << std::endl;
1087 #endif
1088  va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[0]);
1089 
1090 #ifdef MAP_ISO_DEBUG
1091  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 30 << std::endl;
1092  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 30 << std::endl;
1093  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 30 << std::endl;
1094 #endif
1095  va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[8]);
1096 
1097 #ifdef MAP_ISO_DEBUG
1098  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 30 << std::endl;
1099  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 30 << std::endl;
1100  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 30 << std::endl;
1101 #endif
1102  va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[5]);
1103 
1104 #ifdef MAP_ISO_DEBUG
1105  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 30 << std::endl;
1106  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 30 << std::endl;
1107  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 30 << std::endl;
1108 #endif
1109  va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[8]);
1110 
1111 #ifdef MAP_ISO_DEBUG
1112  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 30 << std::endl;
1113  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 30 << std::endl;
1114  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 30 << std::endl;
1115 #endif
1116  va.AddTriN(vertex_id[6],vertex_id[3],vertex_id[11]);
1117 
1118 #ifdef MAP_ISO_DEBUG
1119  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 30 << std::endl;
1120  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 30 << std::endl;
1121  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 30 << std::endl;
1122 #endif
1123  va.AddTriN(vertex_id[6],vertex_id[7],vertex_id[3]);
1124 
1125 #ifdef MAP_ISO_DEBUG
1126  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 30 << std::endl;
1127  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 30 << std::endl;
1128  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 30 << std::endl;
1129 #endif
1130  va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[7]);
1131 
1132 #ifdef MAP_ISO_DEBUG
1133  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 30 << std::endl;
1134  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 30 << std::endl;
1135  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 30 << std::endl;
1136 #endif
1137  va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[4]);
1138 
1139 #ifdef MAP_ISO_DEBUG
1140  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 30 << std::endl;
1141  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 30 << std::endl;
1142  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 30 << std::endl;
1143 #endif
1144  va.AddTriN(vertex_id[6],vertex_id[7],vertex_id[11]);
1145 
1146 #ifdef MAP_ISO_DEBUG
1147  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 30 << std::endl;
1148  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 30 << std::endl;
1149  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 30 << std::endl;
1150 #endif
1151 }
1152 
1153 template<>
1154 void AddLinesAndFaces<31>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1155 {
1156  va.AddLine(vertex_id[6],vertex_id[5]);
1157  va.AddLine(vertex_id[7],vertex_id[6]);
1158  va.AddLine(vertex_id[8],vertex_id[5]);
1159  va.AddLine(vertex_id[11],vertex_id[7]);
1160  va.AddLine(vertex_id[11],vertex_id[8]);
1161  va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[5]);
1162 
1163 #ifdef MAP_ISO_DEBUG
1164  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 31 << std::endl;
1165  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 31 << std::endl;
1166  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 31 << std::endl;
1167 #endif
1168  va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[8]);
1169 
1170 #ifdef MAP_ISO_DEBUG
1171  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 31 << std::endl;
1172  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 31 << std::endl;
1173  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 31 << std::endl;
1174 #endif
1175  va.AddTriN(vertex_id[6],vertex_id[7],vertex_id[11]);
1176 
1177 #ifdef MAP_ISO_DEBUG
1178  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 31 << std::endl;
1179  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 31 << std::endl;
1180  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 31 << std::endl;
1181 #endif
1182 }
1183 
1184 template<>
1185 void AddLinesAndFaces<32>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1186 {
1187  va.AddLine(vertex_id[8],vertex_id[5]);
1188  va.AddLine(vertex_id[9],vertex_id[5]);
1189  va.AddLine(vertex_id[9],vertex_id[8]);
1190  va.AddTriN(vertex_id[8],vertex_id[9],vertex_id[5]);
1191 
1192 #ifdef MAP_ISO_DEBUG
1193  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 32 << std::endl;
1194  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 32 << std::endl;
1195  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 32 << std::endl;
1196 #endif
1197 }
1198 
1199 template<>
1200 void AddLinesAndFaces<33>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1201 {
1202  va.AddLine(vertex_id[3],vertex_id[0]);
1203  va.AddLine(vertex_id[4],vertex_id[0]);
1204  va.AddLine(vertex_id[4],vertex_id[3]);
1205  va.AddLine(vertex_id[5],vertex_id[0]);
1206  va.AddLine(vertex_id[5],vertex_id[4]);
1207  va.AddLine(vertex_id[8],vertex_id[0]);
1208  va.AddLine(vertex_id[8],vertex_id[4]);
1209  va.AddLine(vertex_id[8],vertex_id[5]);
1210  va.AddLine(vertex_id[9],vertex_id[5]);
1211  va.AddLine(vertex_id[9],vertex_id[8]);
1212  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
1213 
1214 #ifdef MAP_ISO_DEBUG
1215  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 33 << std::endl;
1216  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 33 << std::endl;
1217  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 33 << std::endl;
1218 #endif
1219  va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[0]);
1220 
1221 #ifdef MAP_ISO_DEBUG
1222  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 33 << std::endl;
1223  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 33 << std::endl;
1224  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 33 << std::endl;
1225 #endif
1226  va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[8]);
1227 
1228 #ifdef MAP_ISO_DEBUG
1229  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 33 << std::endl;
1230  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 33 << std::endl;
1231  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 33 << std::endl;
1232 #endif
1233  va.AddTriN(vertex_id[8],vertex_id[9],vertex_id[5]);
1234 
1235 #ifdef MAP_ISO_DEBUG
1236  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 33 << std::endl;
1237  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 33 << std::endl;
1238  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 33 << std::endl;
1239 #endif
1240 }
1241 
1242 template<>
1243 void AddLinesAndFaces<34>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1244 {
1245  va.AddLine(vertex_id[1],vertex_id[0]);
1246  va.AddLine(vertex_id[8],vertex_id[0]);
1247  va.AddLine(vertex_id[9],vertex_id[1]);
1248  va.AddLine(vertex_id[9],vertex_id[8]);
1249  va.AddTriN(vertex_id[9],vertex_id[0],vertex_id[8]);
1250 
1251 #ifdef MAP_ISO_DEBUG
1252  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 34 << std::endl;
1253  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 34 << std::endl;
1254  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 34 << std::endl;
1255 #endif
1256  va.AddTriN(vertex_id[9],vertex_id[1],vertex_id[0]);
1257 
1258 #ifdef MAP_ISO_DEBUG
1259  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 34 << std::endl;
1260  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 34 << std::endl;
1261  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 34 << std::endl;
1262 #endif
1263 }
1264 
1265 template<>
1266 void AddLinesAndFaces<35>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1267 {
1268  va.AddLine(vertex_id[3],vertex_id[1]);
1269  va.AddLine(vertex_id[4],vertex_id[3]);
1270  va.AddLine(vertex_id[8],vertex_id[4]);
1271  va.AddLine(vertex_id[9],vertex_id[1]);
1272  va.AddLine(vertex_id[9],vertex_id[8]);
1273  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
1274 
1275 #ifdef MAP_ISO_DEBUG
1276  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 35 << std::endl;
1277  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 35 << std::endl;
1278  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 35 << std::endl;
1279 #endif
1280  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[9]);
1281 
1282 #ifdef MAP_ISO_DEBUG
1283  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 35 << std::endl;
1284  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 35 << std::endl;
1285  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 35 << std::endl;
1286 #endif
1287  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
1288 
1289 #ifdef MAP_ISO_DEBUG
1290  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 35 << std::endl;
1291  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 35 << std::endl;
1292  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 35 << std::endl;
1293 #endif
1294 }
1295 
1296 template<>
1297 void AddLinesAndFaces<36>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1298 {
1299  va.AddLine(vertex_id[2],vertex_id[1]);
1300  va.AddLine(vertex_id[5],vertex_id[1]);
1301  va.AddLine(vertex_id[6],vertex_id[1]);
1302  va.AddLine(vertex_id[6],vertex_id[2]);
1303  va.AddLine(vertex_id[6],vertex_id[5]);
1304  va.AddLine(vertex_id[8],vertex_id[5]);
1305  va.AddLine(vertex_id[9],vertex_id[1]);
1306  va.AddLine(vertex_id[9],vertex_id[5]);
1307  va.AddLine(vertex_id[9],vertex_id[6]);
1308  va.AddLine(vertex_id[9],vertex_id[8]);
1309  va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[9]);
1310 
1311 #ifdef MAP_ISO_DEBUG
1312  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
1313  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 36 << std::endl;
1314  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 36 << std::endl;
1315 #endif
1316  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[8]);
1317 
1318 #ifdef MAP_ISO_DEBUG
1319  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
1320  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 36 << std::endl;
1321  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 36 << std::endl;
1322 #endif
1323  va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[5]);
1324 
1325 #ifdef MAP_ISO_DEBUG
1326  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
1327  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 36 << std::endl;
1328  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 36 << std::endl;
1329 #endif
1330  va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[9]);
1331 
1332 #ifdef MAP_ISO_DEBUG
1333  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
1334  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 36 << std::endl;
1335  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 36 << std::endl;
1336 #endif
1337  va.AddTriN(vertex_id[6],vertex_id[6],vertex_id[1]);
1338 
1339 #ifdef MAP_ISO_DEBUG
1340  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
1341  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
1342  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 36 << std::endl;
1343 #endif
1344  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[6]);
1345 
1346 #ifdef MAP_ISO_DEBUG
1347  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
1348  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 36 << std::endl;
1349  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
1350 #endif
1351  va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[5]);
1352 
1353 #ifdef MAP_ISO_DEBUG
1354  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
1355  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 36 << std::endl;
1356  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 36 << std::endl;
1357 #endif
1358  va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[1]);
1359 
1360 #ifdef MAP_ISO_DEBUG
1361  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 36 << std::endl;
1362  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 36 << std::endl;
1363  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 36 << std::endl;
1364 #endif
1365 }
1366 
1367 template<>
1368 void AddLinesAndFaces<37>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1369 {
1370  va.AddLine(vertex_id[1],vertex_id[0]);
1371  va.AddLine(vertex_id[2],vertex_id[0]);
1372  va.AddLine(vertex_id[2],vertex_id[1]);
1373  va.AddLine(vertex_id[3],vertex_id[0]);
1374  va.AddLine(vertex_id[3],vertex_id[1]);
1375  va.AddLine(vertex_id[3],vertex_id[2]);
1376  va.AddLine(vertex_id[4],vertex_id[0]);
1377  va.AddLine(vertex_id[4],vertex_id[3]);
1378  va.AddLine(vertex_id[5],vertex_id[0]);
1379  va.AddLine(vertex_id[5],vertex_id[1]);
1380  va.AddLine(vertex_id[5],vertex_id[4]);
1381  va.AddLine(vertex_id[6],vertex_id[1]);
1382  va.AddLine(vertex_id[6],vertex_id[2]);
1383  va.AddLine(vertex_id[6],vertex_id[5]);
1384  va.AddLine(vertex_id[8],vertex_id[0]);
1385  va.AddLine(vertex_id[8],vertex_id[4]);
1386  va.AddLine(vertex_id[8],vertex_id[5]);
1387  va.AddLine(vertex_id[9],vertex_id[1]);
1388  va.AddLine(vertex_id[9],vertex_id[5]);
1389  va.AddLine(vertex_id[9],vertex_id[6]);
1390  va.AddLine(vertex_id[9],vertex_id[8]);
1391  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
1392 
1393 #ifdef MAP_ISO_DEBUG
1394  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 37 << std::endl;
1395  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 37 << std::endl;
1396  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 37 << std::endl;
1397 #endif
1398  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
1399 
1400 #ifdef MAP_ISO_DEBUG
1401  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
1402  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 37 << std::endl;
1403  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 37 << std::endl;
1404 #endif
1405  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
1406 
1407 #ifdef MAP_ISO_DEBUG
1408  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
1409  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 37 << std::endl;
1410  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 37 << std::endl;
1411 #endif
1412  va.AddTriN(vertex_id[3],vertex_id[0],vertex_id[5]);
1413 
1414 #ifdef MAP_ISO_DEBUG
1415  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
1416  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 37 << std::endl;
1417  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 37 << std::endl;
1418 #endif
1419  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
1420 
1421 #ifdef MAP_ISO_DEBUG
1422  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
1423  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 37 << std::endl;
1424  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 37 << std::endl;
1425 #endif
1426  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
1427 
1428 #ifdef MAP_ISO_DEBUG
1429  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
1430  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 37 << std::endl;
1431  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 37 << std::endl;
1432 #endif
1433  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[4]);
1434 
1435 #ifdef MAP_ISO_DEBUG
1436  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
1437  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 37 << std::endl;
1438  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 37 << std::endl;
1439 #endif
1440  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[5]);
1441 
1442 #ifdef MAP_ISO_DEBUG
1443  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
1444  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 37 << std::endl;
1445  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 37 << std::endl;
1446 #endif
1447  va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[6]);
1448 
1449 #ifdef MAP_ISO_DEBUG
1450  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
1451  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 37 << std::endl;
1452  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 37 << std::endl;
1453 #endif
1454  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
1455 
1456 #ifdef MAP_ISO_DEBUG
1457  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
1458  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 37 << std::endl;
1459  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 37 << std::endl;
1460 #endif
1461  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[9]);
1462 
1463 #ifdef MAP_ISO_DEBUG
1464  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
1465  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 37 << std::endl;
1466  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 37 << std::endl;
1467 #endif
1468  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
1469 
1470 #ifdef MAP_ISO_DEBUG
1471  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
1472  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 37 << std::endl;
1473  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 37 << std::endl;
1474 #endif
1475  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[8]);
1476 
1477 #ifdef MAP_ISO_DEBUG
1478  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
1479  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 37 << std::endl;
1480  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 37 << std::endl;
1481 #endif
1482  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[9]);
1483 
1484 #ifdef MAP_ISO_DEBUG
1485  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
1486  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 37 << std::endl;
1487  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 37 << std::endl;
1488 #endif
1489  va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[6]);
1490 
1491 #ifdef MAP_ISO_DEBUG
1492  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 37 << std::endl;
1493  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 37 << std::endl;
1494  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 37 << std::endl;
1495 #endif
1496 }
1497 
1498 template<>
1499 void AddLinesAndFaces<38>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1500 {
1501  va.AddLine(vertex_id[2],vertex_id[0]);
1502  va.AddLine(vertex_id[6],vertex_id[2]);
1503  va.AddLine(vertex_id[8],vertex_id[0]);
1504  va.AddLine(vertex_id[9],vertex_id[6]);
1505  va.AddLine(vertex_id[9],vertex_id[8]);
1506  va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[9]);
1507 
1508 #ifdef MAP_ISO_DEBUG
1509  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 38 << std::endl;
1510  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 38 << std::endl;
1511  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 38 << std::endl;
1512 #endif
1513  va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[8]);
1514 
1515 #ifdef MAP_ISO_DEBUG
1516  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 38 << std::endl;
1517  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 38 << std::endl;
1518  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 38 << std::endl;
1519 #endif
1520  va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[0]);
1521 
1522 #ifdef MAP_ISO_DEBUG
1523  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 38 << std::endl;
1524  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 38 << std::endl;
1525  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 38 << std::endl;
1526 #endif
1527 }
1528 
1529 template<>
1530 void AddLinesAndFaces<39>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1531 {
1532  va.AddLine(vertex_id[3],vertex_id[2]);
1533  va.AddLine(vertex_id[4],vertex_id[3]);
1534  va.AddLine(vertex_id[6],vertex_id[2]);
1535  va.AddLine(vertex_id[8],vertex_id[4]);
1536  va.AddLine(vertex_id[9],vertex_id[6]);
1537  va.AddLine(vertex_id[9],vertex_id[8]);
1538  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
1539 
1540 #ifdef MAP_ISO_DEBUG
1541  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 39 << std::endl;
1542  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 39 << std::endl;
1543  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 39 << std::endl;
1544 #endif
1545  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[6]);
1546 
1547 #ifdef MAP_ISO_DEBUG
1548  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 39 << std::endl;
1549  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 39 << std::endl;
1550  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 39 << std::endl;
1551 #endif
1552  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[9]);
1553 
1554 #ifdef MAP_ISO_DEBUG
1555  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 39 << std::endl;
1556  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 39 << std::endl;
1557  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 39 << std::endl;
1558 #endif
1559  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
1560 
1561 #ifdef MAP_ISO_DEBUG
1562  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 39 << std::endl;
1563  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 39 << std::endl;
1564  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 39 << std::endl;
1565 #endif
1566 }
1567 
1568 template<>
1569 void AddLinesAndFaces<40>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1570 {
1571  va.AddLine(vertex_id[3],vertex_id[2]);
1572  va.AddLine(vertex_id[7],vertex_id[2]);
1573  va.AddLine(vertex_id[7],vertex_id[3]);
1574  va.AddLine(vertex_id[8],vertex_id[5]);
1575  va.AddLine(vertex_id[9],vertex_id[5]);
1576  va.AddLine(vertex_id[9],vertex_id[8]);
1577  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
1578 
1579 #ifdef MAP_ISO_DEBUG
1580  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 40 << std::endl;
1581  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 40 << std::endl;
1582  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 40 << std::endl;
1583 #endif
1584  va.AddTriN(vertex_id[8],vertex_id[9],vertex_id[5]);
1585 
1586 #ifdef MAP_ISO_DEBUG
1587  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 40 << std::endl;
1588  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 40 << std::endl;
1589  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 40 << std::endl;
1590 #endif
1591 }
1592 
1593 template<>
1594 void AddLinesAndFaces<41>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1595 {
1596  va.AddLine(vertex_id[2],vertex_id[0]);
1597  va.AddLine(vertex_id[4],vertex_id[0]);
1598  va.AddLine(vertex_id[5],vertex_id[0]);
1599  va.AddLine(vertex_id[5],vertex_id[4]);
1600  va.AddLine(vertex_id[7],vertex_id[2]);
1601  va.AddLine(vertex_id[7],vertex_id[4]);
1602  va.AddLine(vertex_id[8],vertex_id[0]);
1603  va.AddLine(vertex_id[8],vertex_id[4]);
1604  va.AddLine(vertex_id[8],vertex_id[5]);
1605  va.AddLine(vertex_id[9],vertex_id[5]);
1606  va.AddLine(vertex_id[9],vertex_id[8]);
1607  va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[0]);
1608 
1609 #ifdef MAP_ISO_DEBUG
1610  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 41 << std::endl;
1611  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 41 << std::endl;
1612  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 41 << std::endl;
1613 #endif
1614  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[4]);
1615 
1616 #ifdef MAP_ISO_DEBUG
1617  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 41 << std::endl;
1618  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 41 << std::endl;
1619  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 41 << std::endl;
1620 #endif
1621  va.AddTriN(vertex_id[2],vertex_id[0],vertex_id[5]);
1622 
1623 #ifdef MAP_ISO_DEBUG
1624  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 41 << std::endl;
1625  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 41 << std::endl;
1626  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 41 << std::endl;
1627 #endif
1628  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[0]);
1629 
1630 #ifdef MAP_ISO_DEBUG
1631  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 41 << std::endl;
1632  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 41 << std::endl;
1633  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 41 << std::endl;
1634 #endif
1635  va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[8]);
1636 
1637 #ifdef MAP_ISO_DEBUG
1638  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 41 << std::endl;
1639  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 41 << std::endl;
1640  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 41 << std::endl;
1641 #endif
1642  va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[4]);
1643 
1644 #ifdef MAP_ISO_DEBUG
1645  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 41 << std::endl;
1646  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 41 << std::endl;
1647  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 41 << std::endl;
1648 #endif
1649  va.AddTriN(vertex_id[8],vertex_id[9],vertex_id[5]);
1650 
1651 #ifdef MAP_ISO_DEBUG
1652  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 41 << std::endl;
1653  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 41 << std::endl;
1654  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 41 << std::endl;
1655 #endif
1656 }
1657 
1658 template<>
1659 void AddLinesAndFaces<42>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1660 {
1661  va.AddLine(vertex_id[1],vertex_id[0]);
1662  va.AddLine(vertex_id[2],vertex_id[0]);
1663  va.AddLine(vertex_id[2],vertex_id[1]);
1664  va.AddLine(vertex_id[3],vertex_id[0]);
1665  va.AddLine(vertex_id[3],vertex_id[1]);
1666  va.AddLine(vertex_id[3],vertex_id[2]);
1667  va.AddLine(vertex_id[7],vertex_id[2]);
1668  va.AddLine(vertex_id[7],vertex_id[3]);
1669  va.AddLine(vertex_id[8],vertex_id[0]);
1670  va.AddLine(vertex_id[9],vertex_id[1]);
1671  va.AddLine(vertex_id[9],vertex_id[8]);
1672  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
1673 
1674 #ifdef MAP_ISO_DEBUG
1675  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 42 << std::endl;
1676  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 42 << std::endl;
1677  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 42 << std::endl;
1678 #endif
1679  va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[9]);
1680 
1681 #ifdef MAP_ISO_DEBUG
1682  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 42 << std::endl;
1683  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 42 << std::endl;
1684  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 42 << std::endl;
1685 #endif
1686  va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[8]);
1687 
1688 #ifdef MAP_ISO_DEBUG
1689  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 42 << std::endl;
1690  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 42 << std::endl;
1691  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 42 << std::endl;
1692 #endif
1693  va.AddTriN(vertex_id[1],vertex_id[3],vertex_id[0]);
1694 
1695 #ifdef MAP_ISO_DEBUG
1696  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 42 << std::endl;
1697  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 42 << std::endl;
1698  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 42 << std::endl;
1699 #endif
1700  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
1701 
1702 #ifdef MAP_ISO_DEBUG
1703  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 42 << std::endl;
1704  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 42 << std::endl;
1705  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 42 << std::endl;
1706 #endif
1707 }
1708 
1709 template<>
1710 void AddLinesAndFaces<43>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1711 {
1712  va.AddLine(vertex_id[2],vertex_id[1]);
1713  va.AddLine(vertex_id[7],vertex_id[2]);
1714  va.AddLine(vertex_id[7],vertex_id[4]);
1715  va.AddLine(vertex_id[8],vertex_id[4]);
1716  va.AddLine(vertex_id[9],vertex_id[1]);
1717  va.AddLine(vertex_id[9],vertex_id[8]);
1718  va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[1]);
1719 
1720 #ifdef MAP_ISO_DEBUG
1721  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 43 << std::endl;
1722  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 43 << std::endl;
1723  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 43 << std::endl;
1724 #endif
1725  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[9]);
1726 
1727 #ifdef MAP_ISO_DEBUG
1728  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 43 << std::endl;
1729  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 43 << std::endl;
1730  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 43 << std::endl;
1731 #endif
1732  va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[8]);
1733 
1734 #ifdef MAP_ISO_DEBUG
1735  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 43 << std::endl;
1736  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 43 << std::endl;
1737  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 43 << std::endl;
1738 #endif
1739  va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[4]);
1740 
1741 #ifdef MAP_ISO_DEBUG
1742  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 43 << std::endl;
1743  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 43 << std::endl;
1744  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 43 << std::endl;
1745 #endif
1746 }
1747 
1748 template<>
1749 void AddLinesAndFaces<44>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1750 {
1751  va.AddLine(vertex_id[3],vertex_id[1]);
1752  va.AddLine(vertex_id[5],vertex_id[1]);
1753  va.AddLine(vertex_id[6],vertex_id[1]);
1754  va.AddLine(vertex_id[6],vertex_id[5]);
1755  va.AddLine(vertex_id[7],vertex_id[3]);
1756  va.AddLine(vertex_id[7],vertex_id[6]);
1757  va.AddLine(vertex_id[8],vertex_id[5]);
1758  va.AddLine(vertex_id[9],vertex_id[1]);
1759  va.AddLine(vertex_id[9],vertex_id[5]);
1760  va.AddLine(vertex_id[9],vertex_id[6]);
1761  va.AddLine(vertex_id[9],vertex_id[8]);
1762  va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[6]);
1763 
1764 #ifdef MAP_ISO_DEBUG
1765  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
1766  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 44 << std::endl;
1767  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 44 << std::endl;
1768 #endif
1769  va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[9]);
1770 
1771 #ifdef MAP_ISO_DEBUG
1772  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
1773  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 44 << std::endl;
1774  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 44 << std::endl;
1775 #endif
1776  va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[8]);
1777 
1778 #ifdef MAP_ISO_DEBUG
1779  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
1780  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 44 << std::endl;
1781  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 44 << std::endl;
1782 #endif
1783  va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[5]);
1784 
1785 #ifdef MAP_ISO_DEBUG
1786  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
1787  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 44 << std::endl;
1788  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 44 << std::endl;
1789 #endif
1790  va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[9]);
1791 
1792 #ifdef MAP_ISO_DEBUG
1793  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
1794  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 44 << std::endl;
1795  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 44 << std::endl;
1796 #endif
1797  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[1]);
1798 
1799 #ifdef MAP_ISO_DEBUG
1800  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
1801  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 44 << std::endl;
1802  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 44 << std::endl;
1803 #endif
1804  va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[6]);
1805 
1806 #ifdef MAP_ISO_DEBUG
1807  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
1808  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 44 << std::endl;
1809  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 44 << std::endl;
1810 #endif
1811  va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[5]);
1812 
1813 #ifdef MAP_ISO_DEBUG
1814  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
1815  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 44 << std::endl;
1816  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 44 << std::endl;
1817 #endif
1818  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[1]);
1819 
1820 #ifdef MAP_ISO_DEBUG
1821  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 44 << std::endl;
1822  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 44 << std::endl;
1823  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 44 << std::endl;
1824 #endif
1825 }
1826 
1827 template<>
1828 void AddLinesAndFaces<45>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1829 {
1830  va.AddLine(vertex_id[1],vertex_id[0]);
1831  va.AddLine(vertex_id[4],vertex_id[0]);
1832  va.AddLine(vertex_id[5],vertex_id[0]);
1833  va.AddLine(vertex_id[5],vertex_id[1]);
1834  va.AddLine(vertex_id[5],vertex_id[4]);
1835  va.AddLine(vertex_id[6],vertex_id[1]);
1836  va.AddLine(vertex_id[6],vertex_id[5]);
1837  va.AddLine(vertex_id[7],vertex_id[4]);
1838  va.AddLine(vertex_id[7],vertex_id[6]);
1839  va.AddLine(vertex_id[8],vertex_id[0]);
1840  va.AddLine(vertex_id[8],vertex_id[4]);
1841  va.AddLine(vertex_id[8],vertex_id[5]);
1842  va.AddLine(vertex_id[9],vertex_id[1]);
1843  va.AddLine(vertex_id[9],vertex_id[5]);
1844  va.AddLine(vertex_id[9],vertex_id[6]);
1845  va.AddLine(vertex_id[9],vertex_id[8]);
1846  va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[0]);
1847 
1848 #ifdef MAP_ISO_DEBUG
1849  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 45 << std::endl;
1850  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 45 << std::endl;
1851  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 45 << std::endl;
1852 #endif
1853  va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[4]);
1854 
1855 #ifdef MAP_ISO_DEBUG
1856  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 45 << std::endl;
1857  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 45 << std::endl;
1858  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 45 << std::endl;
1859 #endif
1860  va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[5]);
1861 
1862 #ifdef MAP_ISO_DEBUG
1863  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 45 << std::endl;
1864  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 45 << std::endl;
1865  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 45 << std::endl;
1866 #endif
1867  va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[0]);
1868 
1869 #ifdef MAP_ISO_DEBUG
1870  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 45 << std::endl;
1871  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 45 << std::endl;
1872  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 45 << std::endl;
1873 #endif
1874  va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[8]);
1875 
1876 #ifdef MAP_ISO_DEBUG
1877  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 45 << std::endl;
1878  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 45 << std::endl;
1879  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 45 << std::endl;
1880 #endif
1881  va.AddTriN(vertex_id[1],vertex_id[7],vertex_id[4]);
1882 
1883 #ifdef MAP_ISO_DEBUG
1884  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 45 << std::endl;
1885  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 45 << std::endl;
1886  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 45 << std::endl;
1887 #endif
1888  va.AddTriN(vertex_id[1],vertex_id[6],vertex_id[7]);
1889 
1890 #ifdef MAP_ISO_DEBUG
1891  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 45 << std::endl;
1892  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 45 << std::endl;
1893  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 45 << std::endl;
1894 #endif
1895  va.AddTriN(vertex_id[5],vertex_id[9],vertex_id[1]);
1896 
1897 #ifdef MAP_ISO_DEBUG
1898  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 45 << std::endl;
1899  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 45 << std::endl;
1900  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 45 << std::endl;
1901 #endif
1902  va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[5]);
1903 
1904 #ifdef MAP_ISO_DEBUG
1905  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 45 << std::endl;
1906  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 45 << std::endl;
1907  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 45 << std::endl;
1908 #endif
1909  va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[8]);
1910 
1911 #ifdef MAP_ISO_DEBUG
1912  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 45 << std::endl;
1913  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 45 << std::endl;
1914  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 45 << std::endl;
1915 #endif
1916 }
1917 
1918 template<>
1919 void AddLinesAndFaces<46>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1920 {
1921  va.AddLine(vertex_id[3],vertex_id[0]);
1922  va.AddLine(vertex_id[7],vertex_id[3]);
1923  va.AddLine(vertex_id[7],vertex_id[6]);
1924  va.AddLine(vertex_id[8],vertex_id[0]);
1925  va.AddLine(vertex_id[9],vertex_id[6]);
1926  va.AddLine(vertex_id[9],vertex_id[8]);
1927  va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[6]);
1928 
1929 #ifdef MAP_ISO_DEBUG
1930  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 46 << std::endl;
1931  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 46 << std::endl;
1932  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 46 << std::endl;
1933 #endif
1934  va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[9]);
1935 
1936 #ifdef MAP_ISO_DEBUG
1937  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 46 << std::endl;
1938  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 46 << std::endl;
1939  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 46 << std::endl;
1940 #endif
1941  va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[8]);
1942 
1943 #ifdef MAP_ISO_DEBUG
1944  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 46 << std::endl;
1945  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 46 << std::endl;
1946  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 46 << std::endl;
1947 #endif
1948  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[0]);
1949 
1950 #ifdef MAP_ISO_DEBUG
1951  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 46 << std::endl;
1952  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 46 << std::endl;
1953  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 46 << std::endl;
1954 #endif
1955 }
1956 
1957 template<>
1958 void AddLinesAndFaces<47>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1959 {
1960  va.AddLine(vertex_id[7],vertex_id[4]);
1961  va.AddLine(vertex_id[7],vertex_id[6]);
1962  va.AddLine(vertex_id[8],vertex_id[4]);
1963  va.AddLine(vertex_id[9],vertex_id[6]);
1964  va.AddLine(vertex_id[9],vertex_id[8]);
1965  va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[9]);
1966 
1967 #ifdef MAP_ISO_DEBUG
1968  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 47 << std::endl;
1969  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 47 << std::endl;
1970  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 47 << std::endl;
1971 #endif
1972  va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[8]);
1973 
1974 #ifdef MAP_ISO_DEBUG
1975  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 47 << std::endl;
1976  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 47 << std::endl;
1977  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 47 << std::endl;
1978 #endif
1979  va.AddTriN(vertex_id[6],vertex_id[7],vertex_id[4]);
1980 
1981 #ifdef MAP_ISO_DEBUG
1982  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 47 << std::endl;
1983  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 47 << std::endl;
1984  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 47 << std::endl;
1985 #endif
1986 }
1987 
1988 template<>
1989 void AddLinesAndFaces<48>(IndexedVertexArray& va,unsigned int vertex_id[12] )
1990 {
1991  va.AddLine(vertex_id[5],vertex_id[4]);
1992  va.AddLine(vertex_id[9],vertex_id[5]);
1993  va.AddLine(vertex_id[11],vertex_id[4]);
1994  va.AddLine(vertex_id[11],vertex_id[9]);
1995  va.AddTriN(vertex_id[9],vertex_id[4],vertex_id[11]);
1996 
1997 #ifdef MAP_ISO_DEBUG
1998  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 48 << std::endl;
1999  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 48 << std::endl;
2000  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 48 << std::endl;
2001 #endif
2002  va.AddTriN(vertex_id[9],vertex_id[5],vertex_id[4]);
2003 
2004 #ifdef MAP_ISO_DEBUG
2005  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 48 << std::endl;
2006  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 48 << std::endl;
2007  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 48 << std::endl;
2008 #endif
2009 }
2010 
2011 template<>
2012 void AddLinesAndFaces<49>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2013 {
2014  va.AddLine(vertex_id[3],vertex_id[0]);
2015  va.AddLine(vertex_id[5],vertex_id[0]);
2016  va.AddLine(vertex_id[9],vertex_id[5]);
2017  va.AddLine(vertex_id[11],vertex_id[3]);
2018  va.AddLine(vertex_id[11],vertex_id[9]);
2019  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[0]);
2020 
2021 #ifdef MAP_ISO_DEBUG
2022  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 49 << std::endl;
2023  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 49 << std::endl;
2024  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 49 << std::endl;
2025 #endif
2026  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[5]);
2027 
2028 #ifdef MAP_ISO_DEBUG
2029  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 49 << std::endl;
2030  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 49 << std::endl;
2031  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 49 << std::endl;
2032 #endif
2033  va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[9]);
2034 
2035 #ifdef MAP_ISO_DEBUG
2036  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 49 << std::endl;
2037  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 49 << std::endl;
2038  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 49 << std::endl;
2039 #endif
2040 }
2041 
2042 template<>
2043 void AddLinesAndFaces<50>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2044 {
2045  va.AddLine(vertex_id[1],vertex_id[0]);
2046  va.AddLine(vertex_id[4],vertex_id[0]);
2047  va.AddLine(vertex_id[9],vertex_id[1]);
2048  va.AddLine(vertex_id[11],vertex_id[4]);
2049  va.AddLine(vertex_id[11],vertex_id[9]);
2050  va.AddTriN(vertex_id[9],vertex_id[4],vertex_id[11]);
2051 
2052 #ifdef MAP_ISO_DEBUG
2053  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 50 << std::endl;
2054  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 50 << std::endl;
2055  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 50 << std::endl;
2056 #endif
2057  va.AddTriN(vertex_id[9],vertex_id[0],vertex_id[4]);
2058 
2059 #ifdef MAP_ISO_DEBUG
2060  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 50 << std::endl;
2061  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 50 << std::endl;
2062  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 50 << std::endl;
2063 #endif
2064  va.AddTriN(vertex_id[9],vertex_id[1],vertex_id[0]);
2065 
2066 #ifdef MAP_ISO_DEBUG
2067  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 50 << std::endl;
2068  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 50 << std::endl;
2069  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 50 << std::endl;
2070 #endif
2071 }
2072 
2073 template<>
2074 void AddLinesAndFaces<51>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2075 {
2076  va.AddLine(vertex_id[3],vertex_id[1]);
2077  va.AddLine(vertex_id[9],vertex_id[1]);
2078  va.AddLine(vertex_id[11],vertex_id[3]);
2079  va.AddLine(vertex_id[11],vertex_id[9]);
2080  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
2081 
2082 #ifdef MAP_ISO_DEBUG
2083  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 51 << std::endl;
2084  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 51 << std::endl;
2085  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 51 << std::endl;
2086 #endif
2087  va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[9]);
2088 
2089 #ifdef MAP_ISO_DEBUG
2090  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 51 << std::endl;
2091  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 51 << std::endl;
2092  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 51 << std::endl;
2093 #endif
2094 }
2095 
2096 template<>
2097 void AddLinesAndFaces<52>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2098 {
2099  va.AddLine(vertex_id[2],vertex_id[1]);
2100  va.AddLine(vertex_id[5],vertex_id[1]);
2101  va.AddLine(vertex_id[5],vertex_id[4]);
2102  va.AddLine(vertex_id[6],vertex_id[1]);
2103  va.AddLine(vertex_id[6],vertex_id[2]);
2104  va.AddLine(vertex_id[6],vertex_id[5]);
2105  va.AddLine(vertex_id[9],vertex_id[1]);
2106  va.AddLine(vertex_id[9],vertex_id[5]);
2107  va.AddLine(vertex_id[9],vertex_id[6]);
2108  va.AddLine(vertex_id[11],vertex_id[4]);
2109  va.AddLine(vertex_id[11],vertex_id[9]);
2110  va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
2111 
2112 #ifdef MAP_ISO_DEBUG
2113  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 52 << std::endl;
2114  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 52 << std::endl;
2115  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 52 << std::endl;
2116 #endif
2117  va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[9]);
2118 
2119 #ifdef MAP_ISO_DEBUG
2120  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 52 << std::endl;
2121  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 52 << std::endl;
2122  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 52 << std::endl;
2123 #endif
2124  va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[11]);
2125 
2126 #ifdef MAP_ISO_DEBUG
2127  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 52 << std::endl;
2128  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 52 << std::endl;
2129  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 52 << std::endl;
2130 #endif
2131  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[4]);
2132 
2133 #ifdef MAP_ISO_DEBUG
2134  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 52 << std::endl;
2135  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 52 << std::endl;
2136  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 52 << std::endl;
2137 #endif
2138  va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[5]);
2139 
2140 #ifdef MAP_ISO_DEBUG
2141  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 52 << std::endl;
2142  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 52 << std::endl;
2143  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 52 << std::endl;
2144 #endif
2145  va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[1]);
2146 
2147 #ifdef MAP_ISO_DEBUG
2148  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 52 << std::endl;
2149  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 52 << std::endl;
2150  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 52 << std::endl;
2151 #endif
2152  va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[5]);
2153 
2154 #ifdef MAP_ISO_DEBUG
2155  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 52 << std::endl;
2156  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 52 << std::endl;
2157  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 52 << std::endl;
2158 #endif
2159 }
2160 
2161 template<>
2162 void AddLinesAndFaces<53>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2163 {
2164  va.AddLine(vertex_id[1],vertex_id[0]);
2165  va.AddLine(vertex_id[2],vertex_id[0]);
2166  va.AddLine(vertex_id[2],vertex_id[1]);
2167  va.AddLine(vertex_id[3],vertex_id[0]);
2168  va.AddLine(vertex_id[3],vertex_id[1]);
2169  va.AddLine(vertex_id[3],vertex_id[2]);
2170  va.AddLine(vertex_id[5],vertex_id[0]);
2171  va.AddLine(vertex_id[5],vertex_id[1]);
2172  va.AddLine(vertex_id[6],vertex_id[1]);
2173  va.AddLine(vertex_id[6],vertex_id[2]);
2174  va.AddLine(vertex_id[6],vertex_id[5]);
2175  va.AddLine(vertex_id[9],vertex_id[1]);
2176  va.AddLine(vertex_id[9],vertex_id[5]);
2177  va.AddLine(vertex_id[9],vertex_id[6]);
2178  va.AddLine(vertex_id[11],vertex_id[3]);
2179  va.AddLine(vertex_id[11],vertex_id[9]);
2180  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
2181 
2182 #ifdef MAP_ISO_DEBUG
2183  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 53 << std::endl;
2184  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 53 << std::endl;
2185  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 53 << std::endl;
2186 #endif
2187  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[0]);
2188 
2189 #ifdef MAP_ISO_DEBUG
2190  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
2191  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 53 << std::endl;
2192  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 53 << std::endl;
2193 #endif
2194  va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[5]);
2195 
2196 #ifdef MAP_ISO_DEBUG
2197  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
2198  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 53 << std::endl;
2199  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 53 << std::endl;
2200 #endif
2201  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
2202 
2203 #ifdef MAP_ISO_DEBUG
2204  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
2205  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 53 << std::endl;
2206  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 53 << std::endl;
2207 #endif
2208  va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[6]);
2209 
2210 #ifdef MAP_ISO_DEBUG
2211  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
2212  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 53 << std::endl;
2213  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 53 << std::endl;
2214 #endif
2215  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
2216 
2217 #ifdef MAP_ISO_DEBUG
2218  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
2219  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 53 << std::endl;
2220  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 53 << std::endl;
2221 #endif
2222  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[9]);
2223 
2224 #ifdef MAP_ISO_DEBUG
2225  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
2226  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 53 << std::endl;
2227  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 53 << std::endl;
2228 #endif
2229  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[5]);
2230 
2231 #ifdef MAP_ISO_DEBUG
2232  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
2233  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 53 << std::endl;
2234  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 53 << std::endl;
2235 #endif
2236  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[6]);
2237 
2238 #ifdef MAP_ISO_DEBUG
2239  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
2240  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 53 << std::endl;
2241  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 53 << std::endl;
2242 #endif
2243  va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[9]);
2244 
2245 #ifdef MAP_ISO_DEBUG
2246  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 53 << std::endl;
2247  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 53 << std::endl;
2248  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 53 << std::endl;
2249 #endif
2250 }
2251 
2252 template<>
2253 void AddLinesAndFaces<54>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2254 {
2255  va.AddLine(vertex_id[2],vertex_id[0]);
2256  va.AddLine(vertex_id[4],vertex_id[0]);
2257  va.AddLine(vertex_id[6],vertex_id[2]);
2258  va.AddLine(vertex_id[9],vertex_id[6]);
2259  va.AddLine(vertex_id[11],vertex_id[4]);
2260  va.AddLine(vertex_id[11],vertex_id[9]);
2261  va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[9]);
2262 
2263 #ifdef MAP_ISO_DEBUG
2264  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 54 << std::endl;
2265  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 54 << std::endl;
2266  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 54 << std::endl;
2267 #endif
2268  va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[11]);
2269 
2270 #ifdef MAP_ISO_DEBUG
2271  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 54 << std::endl;
2272  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 54 << std::endl;
2273  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 54 << std::endl;
2274 #endif
2275  va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[4]);
2276 
2277 #ifdef MAP_ISO_DEBUG
2278  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 54 << std::endl;
2279  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 54 << std::endl;
2280  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 54 << std::endl;
2281 #endif
2282  va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[0]);
2283 
2284 #ifdef MAP_ISO_DEBUG
2285  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 54 << std::endl;
2286  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 54 << std::endl;
2287  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 54 << std::endl;
2288 #endif
2289 }
2290 
2291 template<>
2292 void AddLinesAndFaces<55>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2293 {
2294  va.AddLine(vertex_id[3],vertex_id[2]);
2295  va.AddLine(vertex_id[6],vertex_id[2]);
2296  va.AddLine(vertex_id[9],vertex_id[6]);
2297  va.AddLine(vertex_id[11],vertex_id[3]);
2298  va.AddLine(vertex_id[11],vertex_id[9]);
2299  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
2300 
2301 #ifdef MAP_ISO_DEBUG
2302  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 55 << std::endl;
2303  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 55 << std::endl;
2304  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 55 << std::endl;
2305 #endif
2306  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[6]);
2307 
2308 #ifdef MAP_ISO_DEBUG
2309  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 55 << std::endl;
2310  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 55 << std::endl;
2311  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 55 << std::endl;
2312 #endif
2313  va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[9]);
2314 
2315 #ifdef MAP_ISO_DEBUG
2316  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 55 << std::endl;
2317  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 55 << std::endl;
2318  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 55 << std::endl;
2319 #endif
2320 }
2321 
2322 template<>
2323 void AddLinesAndFaces<56>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2324 {
2325  va.AddLine(vertex_id[3],vertex_id[2]);
2326  va.AddLine(vertex_id[4],vertex_id[3]);
2327  va.AddLine(vertex_id[5],vertex_id[4]);
2328  va.AddLine(vertex_id[7],vertex_id[2]);
2329  va.AddLine(vertex_id[7],vertex_id[3]);
2330  va.AddLine(vertex_id[7],vertex_id[4]);
2331  va.AddLine(vertex_id[9],vertex_id[5]);
2332  va.AddLine(vertex_id[11],vertex_id[3]);
2333  va.AddLine(vertex_id[11],vertex_id[4]);
2334  va.AddLine(vertex_id[11],vertex_id[7]);
2335  va.AddLine(vertex_id[11],vertex_id[9]);
2336  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
2337 
2338 #ifdef MAP_ISO_DEBUG
2339  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 56 << std::endl;
2340  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 56 << std::endl;
2341  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 56 << std::endl;
2342 #endif
2343  va.AddTriN(vertex_id[4],vertex_id[11],vertex_id[3]);
2344 
2345 #ifdef MAP_ISO_DEBUG
2346  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 56 << std::endl;
2347  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 56 << std::endl;
2348  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 56 << std::endl;
2349 #endif
2350  va.AddTriN(vertex_id[9],vertex_id[7],vertex_id[11]);
2351 
2352 #ifdef MAP_ISO_DEBUG
2353  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 56 << std::endl;
2354  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 56 << std::endl;
2355  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 56 << std::endl;
2356 #endif
2357  va.AddTriN(vertex_id[9],vertex_id[4],vertex_id[7]);
2358 
2359 #ifdef MAP_ISO_DEBUG
2360  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 56 << std::endl;
2361  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 56 << std::endl;
2362  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 56 << std::endl;
2363 #endif
2364  va.AddTriN(vertex_id[9],vertex_id[5],vertex_id[4]);
2365 
2366 #ifdef MAP_ISO_DEBUG
2367  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 56 << std::endl;
2368  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 56 << std::endl;
2369  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 56 << std::endl;
2370 #endif
2371 }
2372 
2373 template<>
2374 void AddLinesAndFaces<57>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2375 {
2376  va.AddLine(vertex_id[2],vertex_id[0]);
2377  va.AddLine(vertex_id[5],vertex_id[0]);
2378  va.AddLine(vertex_id[7],vertex_id[2]);
2379  va.AddLine(vertex_id[9],vertex_id[5]);
2380  va.AddLine(vertex_id[11],vertex_id[7]);
2381  va.AddLine(vertex_id[11],vertex_id[9]);
2382  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[0]);
2383 
2384 #ifdef MAP_ISO_DEBUG
2385  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 57 << std::endl;
2386  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 57 << std::endl;
2387  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 57 << std::endl;
2388 #endif
2389  va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[5]);
2390 
2391 #ifdef MAP_ISO_DEBUG
2392  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 57 << std::endl;
2393  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 57 << std::endl;
2394  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 57 << std::endl;
2395 #endif
2396  va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[9]);
2397 
2398 #ifdef MAP_ISO_DEBUG
2399  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 57 << std::endl;
2400  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 57 << std::endl;
2401  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 57 << std::endl;
2402 #endif
2403  va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[11]);
2404 
2405 #ifdef MAP_ISO_DEBUG
2406  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 57 << std::endl;
2407  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 57 << std::endl;
2408  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 57 << std::endl;
2409 #endif
2410 }
2411 
2412 template<>
2413 void AddLinesAndFaces<58>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2414 {
2415  va.AddLine(vertex_id[1],vertex_id[0]);
2416  va.AddLine(vertex_id[2],vertex_id[0]);
2417  va.AddLine(vertex_id[2],vertex_id[1]);
2418  va.AddLine(vertex_id[3],vertex_id[0]);
2419  va.AddLine(vertex_id[3],vertex_id[1]);
2420  va.AddLine(vertex_id[3],vertex_id[2]);
2421  va.AddLine(vertex_id[4],vertex_id[0]);
2422  va.AddLine(vertex_id[4],vertex_id[3]);
2423  va.AddLine(vertex_id[7],vertex_id[2]);
2424  va.AddLine(vertex_id[7],vertex_id[3]);
2425  va.AddLine(vertex_id[7],vertex_id[4]);
2426  va.AddLine(vertex_id[9],vertex_id[1]);
2427  va.AddLine(vertex_id[11],vertex_id[3]);
2428  va.AddLine(vertex_id[11],vertex_id[4]);
2429  va.AddLine(vertex_id[11],vertex_id[7]);
2430  va.AddLine(vertex_id[11],vertex_id[9]);
2431  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
2432 
2433 #ifdef MAP_ISO_DEBUG
2434  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 58 << std::endl;
2435  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 58 << std::endl;
2436  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 58 << std::endl;
2437 #endif
2438  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
2439 
2440 #ifdef MAP_ISO_DEBUG
2441  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 58 << std::endl;
2442  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 58 << std::endl;
2443  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 58 << std::endl;
2444 #endif
2445  va.AddTriN(vertex_id[11],vertex_id[1],vertex_id[9]);
2446 
2447 #ifdef MAP_ISO_DEBUG
2448  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 58 << std::endl;
2449  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 58 << std::endl;
2450  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 58 << std::endl;
2451 #endif
2452  va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[1]);
2453 
2454 #ifdef MAP_ISO_DEBUG
2455  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 58 << std::endl;
2456  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 58 << std::endl;
2457  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 58 << std::endl;
2458 #endif
2459  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
2460 
2461 #ifdef MAP_ISO_DEBUG
2462  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 58 << std::endl;
2463  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 58 << std::endl;
2464  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 58 << std::endl;
2465 #endif
2466  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[4]);
2467 
2468 #ifdef MAP_ISO_DEBUG
2469  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 58 << std::endl;
2470  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 58 << std::endl;
2471  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 58 << std::endl;
2472 #endif
2473 }
2474 
2475 template<>
2476 void AddLinesAndFaces<59>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2477 {
2478  va.AddLine(vertex_id[2],vertex_id[1]);
2479  va.AddLine(vertex_id[7],vertex_id[2]);
2480  va.AddLine(vertex_id[9],vertex_id[1]);
2481  va.AddLine(vertex_id[11],vertex_id[7]);
2482  va.AddLine(vertex_id[11],vertex_id[9]);
2483  va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[1]);
2484 
2485 #ifdef MAP_ISO_DEBUG
2486  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 59 << std::endl;
2487  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 59 << std::endl;
2488  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 59 << std::endl;
2489 #endif
2490  va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[9]);
2491 
2492 #ifdef MAP_ISO_DEBUG
2493  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 59 << std::endl;
2494  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 59 << std::endl;
2495  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 59 << std::endl;
2496 #endif
2497  va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[11]);
2498 
2499 #ifdef MAP_ISO_DEBUG
2500  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 59 << std::endl;
2501  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 59 << std::endl;
2502  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 59 << std::endl;
2503 #endif
2504 }
2505 
2506 template<>
2507 void AddLinesAndFaces<60>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2508 {
2509  va.AddLine(vertex_id[3],vertex_id[1]);
2510  va.AddLine(vertex_id[4],vertex_id[3]);
2511  va.AddLine(vertex_id[5],vertex_id[1]);
2512  va.AddLine(vertex_id[5],vertex_id[4]);
2513  va.AddLine(vertex_id[6],vertex_id[1]);
2514  va.AddLine(vertex_id[6],vertex_id[5]);
2515  va.AddLine(vertex_id[7],vertex_id[3]);
2516  va.AddLine(vertex_id[7],vertex_id[4]);
2517  va.AddLine(vertex_id[7],vertex_id[6]);
2518  va.AddLine(vertex_id[9],vertex_id[1]);
2519  va.AddLine(vertex_id[9],vertex_id[5]);
2520  va.AddLine(vertex_id[9],vertex_id[6]);
2521  va.AddLine(vertex_id[11],vertex_id[3]);
2522  va.AddLine(vertex_id[11],vertex_id[4]);
2523  va.AddLine(vertex_id[11],vertex_id[7]);
2524  va.AddLine(vertex_id[11],vertex_id[9]);
2525  va.AddTriN(vertex_id[4],vertex_id[1],vertex_id[5]);
2526 
2527 #ifdef MAP_ISO_DEBUG
2528  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 60 << std::endl;
2529  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 60 << std::endl;
2530  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 60 << std::endl;
2531 #endif
2532  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[1]);
2533 
2534 #ifdef MAP_ISO_DEBUG
2535  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 60 << std::endl;
2536  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 60 << std::endl;
2537  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 60 << std::endl;
2538 #endif
2539  va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
2540 
2541 #ifdef MAP_ISO_DEBUG
2542  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 60 << std::endl;
2543  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 60 << std::endl;
2544  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 60 << std::endl;
2545 #endif
2546  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
2547 
2548 #ifdef MAP_ISO_DEBUG
2549  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 60 << std::endl;
2550  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 60 << std::endl;
2551  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 60 << std::endl;
2552 #endif
2553  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
2554 
2555 #ifdef MAP_ISO_DEBUG
2556  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 60 << std::endl;
2557  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 60 << std::endl;
2558  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 60 << std::endl;
2559 #endif
2560  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
2561 
2562 #ifdef MAP_ISO_DEBUG
2563  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 60 << std::endl;
2564  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 60 << std::endl;
2565  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 60 << std::endl;
2566 #endif
2567  va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[6]);
2568 
2569 #ifdef MAP_ISO_DEBUG
2570  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 60 << std::endl;
2571  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 60 << std::endl;
2572  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 60 << std::endl;
2573 #endif
2574  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[9]);
2575 
2576 #ifdef MAP_ISO_DEBUG
2577  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 60 << std::endl;
2578  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 60 << std::endl;
2579  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 60 << std::endl;
2580 #endif
2581 }
2582 
2583 template<>
2584 void AddLinesAndFaces<61>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2585 {
2586  va.AddLine(vertex_id[1],vertex_id[0]);
2587  va.AddLine(vertex_id[5],vertex_id[0]);
2588  va.AddLine(vertex_id[5],vertex_id[1]);
2589  va.AddLine(vertex_id[6],vertex_id[1]);
2590  va.AddLine(vertex_id[6],vertex_id[5]);
2591  va.AddLine(vertex_id[7],vertex_id[6]);
2592  va.AddLine(vertex_id[9],vertex_id[1]);
2593  va.AddLine(vertex_id[9],vertex_id[5]);
2594  va.AddLine(vertex_id[9],vertex_id[6]);
2595  va.AddLine(vertex_id[11],vertex_id[7]);
2596  va.AddLine(vertex_id[11],vertex_id[9]);
2597  va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[0]);
2598 
2599 #ifdef MAP_ISO_DEBUG
2600  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 61 << std::endl;
2601  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 61 << std::endl;
2602  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 61 << std::endl;
2603 #endif
2604  va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
2605 
2606 #ifdef MAP_ISO_DEBUG
2607  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 61 << std::endl;
2608  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 61 << std::endl;
2609  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 61 << std::endl;
2610 #endif
2611  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
2612 
2613 #ifdef MAP_ISO_DEBUG
2614  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 61 << std::endl;
2615  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 61 << std::endl;
2616  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 61 << std::endl;
2617 #endif
2618  va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[6]);
2619 
2620 #ifdef MAP_ISO_DEBUG
2621  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 61 << std::endl;
2622  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 61 << std::endl;
2623  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 61 << std::endl;
2624 #endif
2625  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[9]);
2626 
2627 #ifdef MAP_ISO_DEBUG
2628  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 61 << std::endl;
2629  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 61 << std::endl;
2630  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 61 << std::endl;
2631 #endif
2632 }
2633 
2634 template<>
2635 void AddLinesAndFaces<62>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2636 {
2637  va.AddLine(vertex_id[3],vertex_id[0]);
2638  va.AddLine(vertex_id[4],vertex_id[0]);
2639  va.AddLine(vertex_id[4],vertex_id[3]);
2640  va.AddLine(vertex_id[7],vertex_id[3]);
2641  va.AddLine(vertex_id[7],vertex_id[4]);
2642  va.AddLine(vertex_id[7],vertex_id[6]);
2643  va.AddLine(vertex_id[9],vertex_id[6]);
2644  va.AddLine(vertex_id[11],vertex_id[3]);
2645  va.AddLine(vertex_id[11],vertex_id[4]);
2646  va.AddLine(vertex_id[11],vertex_id[7]);
2647  va.AddLine(vertex_id[11],vertex_id[9]);
2648  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
2649 
2650 #ifdef MAP_ISO_DEBUG
2651  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 62 << std::endl;
2652  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 62 << std::endl;
2653  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 62 << std::endl;
2654 #endif
2655  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
2656 
2657 #ifdef MAP_ISO_DEBUG
2658  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 62 << std::endl;
2659  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 62 << std::endl;
2660  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 62 << std::endl;
2661 #endif
2662  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
2663 
2664 #ifdef MAP_ISO_DEBUG
2665  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 62 << std::endl;
2666  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 62 << std::endl;
2667  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 62 << std::endl;
2668 #endif
2669  va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[6]);
2670 
2671 #ifdef MAP_ISO_DEBUG
2672  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 62 << std::endl;
2673  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 62 << std::endl;
2674  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 62 << std::endl;
2675 #endif
2676  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[9]);
2677 
2678 #ifdef MAP_ISO_DEBUG
2679  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 62 << std::endl;
2680  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 62 << std::endl;
2681  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 62 << std::endl;
2682 #endif
2683 }
2684 
2685 template<>
2686 void AddLinesAndFaces<63>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2687 {
2688  va.AddLine(vertex_id[7],vertex_id[6]);
2689  va.AddLine(vertex_id[9],vertex_id[6]);
2690  va.AddLine(vertex_id[11],vertex_id[7]);
2691  va.AddLine(vertex_id[11],vertex_id[9]);
2692  va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[6]);
2693 
2694 #ifdef MAP_ISO_DEBUG
2695  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 63 << std::endl;
2696  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 63 << std::endl;
2697  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 63 << std::endl;
2698 #endif
2699  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[9]);
2700 
2701 #ifdef MAP_ISO_DEBUG
2702  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 63 << std::endl;
2703  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 63 << std::endl;
2704  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 63 << std::endl;
2705 #endif
2706 }
2707 
2708 template<>
2709 void AddLinesAndFaces<64>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2710 {
2711  va.AddLine(vertex_id[9],vertex_id[6]);
2712  va.AddLine(vertex_id[10],vertex_id[6]);
2713  va.AddLine(vertex_id[10],vertex_id[9]);
2714  va.AddTriN(vertex_id[9],vertex_id[10],vertex_id[6]);
2715 
2716 #ifdef MAP_ISO_DEBUG
2717  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 64 << std::endl;
2718  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 64 << std::endl;
2719  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 64 << std::endl;
2720 #endif
2721 }
2722 
2723 template<>
2724 void AddLinesAndFaces<65>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2725 {
2726  va.AddLine(vertex_id[3],vertex_id[0]);
2727  va.AddLine(vertex_id[4],vertex_id[0]);
2728  va.AddLine(vertex_id[4],vertex_id[3]);
2729  va.AddLine(vertex_id[9],vertex_id[6]);
2730  va.AddLine(vertex_id[10],vertex_id[6]);
2731  va.AddLine(vertex_id[10],vertex_id[9]);
2732  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
2733 
2734 #ifdef MAP_ISO_DEBUG
2735  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 65 << std::endl;
2736  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 65 << std::endl;
2737  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 65 << std::endl;
2738 #endif
2739  va.AddTriN(vertex_id[9],vertex_id[10],vertex_id[6]);
2740 
2741 #ifdef MAP_ISO_DEBUG
2742  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 65 << std::endl;
2743  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 65 << std::endl;
2744  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 65 << std::endl;
2745 #endif
2746 }
2747 
2748 template<>
2749 void AddLinesAndFaces<66>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2750 {
2751  va.AddLine(vertex_id[1],vertex_id[0]);
2752  va.AddLine(vertex_id[5],vertex_id[0]);
2753  va.AddLine(vertex_id[5],vertex_id[1]);
2754  va.AddLine(vertex_id[6],vertex_id[1]);
2755  va.AddLine(vertex_id[6],vertex_id[5]);
2756  va.AddLine(vertex_id[9],vertex_id[1]);
2757  va.AddLine(vertex_id[9],vertex_id[5]);
2758  va.AddLine(vertex_id[9],vertex_id[6]);
2759  va.AddLine(vertex_id[10],vertex_id[6]);
2760  va.AddLine(vertex_id[10],vertex_id[9]);
2761  va.AddTriN(vertex_id[5],vertex_id[1],vertex_id[0]);
2762 
2763 #ifdef MAP_ISO_DEBUG
2764  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 66 << std::endl;
2765  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 66 << std::endl;
2766  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 66 << std::endl;
2767 #endif
2768  va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
2769 
2770 #ifdef MAP_ISO_DEBUG
2771  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 66 << std::endl;
2772  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 66 << std::endl;
2773  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 66 << std::endl;
2774 #endif
2775  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
2776 
2777 #ifdef MAP_ISO_DEBUG
2778  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 66 << std::endl;
2779  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 66 << std::endl;
2780  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 66 << std::endl;
2781 #endif
2782  va.AddTriN(vertex_id[9],vertex_id[10],vertex_id[6]);
2783 
2784 #ifdef MAP_ISO_DEBUG
2785  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 66 << std::endl;
2786  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 66 << std::endl;
2787  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 66 << std::endl;
2788 #endif
2789 }
2790 
2791 template<>
2792 void AddLinesAndFaces<67>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2793 {
2794  va.AddLine(vertex_id[3],vertex_id[1]);
2795  va.AddLine(vertex_id[4],vertex_id[3]);
2796  va.AddLine(vertex_id[5],vertex_id[1]);
2797  va.AddLine(vertex_id[5],vertex_id[4]);
2798  va.AddLine(vertex_id[6],vertex_id[1]);
2799  va.AddLine(vertex_id[6],vertex_id[5]);
2800  va.AddLine(vertex_id[9],vertex_id[1]);
2801  va.AddLine(vertex_id[9],vertex_id[5]);
2802  va.AddLine(vertex_id[9],vertex_id[6]);
2803  va.AddLine(vertex_id[10],vertex_id[6]);
2804  va.AddLine(vertex_id[10],vertex_id[9]);
2805  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
2806 
2807 #ifdef MAP_ISO_DEBUG
2808  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 67 << std::endl;
2809  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 67 << std::endl;
2810  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 67 << std::endl;
2811 #endif
2812  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[5]);
2813 
2814 #ifdef MAP_ISO_DEBUG
2815  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 67 << std::endl;
2816  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 67 << std::endl;
2817  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 67 << std::endl;
2818 #endif
2819  va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
2820 
2821 #ifdef MAP_ISO_DEBUG
2822  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 67 << std::endl;
2823  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 67 << std::endl;
2824  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 67 << std::endl;
2825 #endif
2826  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
2827 
2828 #ifdef MAP_ISO_DEBUG
2829  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 67 << std::endl;
2830  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 67 << std::endl;
2831  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 67 << std::endl;
2832 #endif
2833  va.AddTriN(vertex_id[9],vertex_id[10],vertex_id[6]);
2834 
2835 #ifdef MAP_ISO_DEBUG
2836  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 67 << std::endl;
2837  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 67 << std::endl;
2838  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 67 << std::endl;
2839 #endif
2840 }
2841 
2842 template<>
2843 void AddLinesAndFaces<68>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2844 {
2845  va.AddLine(vertex_id[2],vertex_id[1]);
2846  va.AddLine(vertex_id[9],vertex_id[1]);
2847  va.AddLine(vertex_id[10],vertex_id[2]);
2848  va.AddLine(vertex_id[10],vertex_id[9]);
2849  va.AddTriN(vertex_id[10],vertex_id[1],vertex_id[9]);
2850 
2851 #ifdef MAP_ISO_DEBUG
2852  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 68 << std::endl;
2853  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 68 << std::endl;
2854  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 68 << std::endl;
2855 #endif
2856  va.AddTriN(vertex_id[10],vertex_id[2],vertex_id[1]);
2857 
2858 #ifdef MAP_ISO_DEBUG
2859  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 68 << std::endl;
2860  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 68 << std::endl;
2861  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 68 << std::endl;
2862 #endif
2863 }
2864 
2865 template<>
2866 void AddLinesAndFaces<69>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2867 {
2868  va.AddLine(vertex_id[1],vertex_id[0]);
2869  va.AddLine(vertex_id[2],vertex_id[0]);
2870  va.AddLine(vertex_id[2],vertex_id[1]);
2871  va.AddLine(vertex_id[3],vertex_id[0]);
2872  va.AddLine(vertex_id[3],vertex_id[1]);
2873  va.AddLine(vertex_id[3],vertex_id[2]);
2874  va.AddLine(vertex_id[4],vertex_id[0]);
2875  va.AddLine(vertex_id[4],vertex_id[3]);
2876  va.AddLine(vertex_id[9],vertex_id[1]);
2877  va.AddLine(vertex_id[10],vertex_id[2]);
2878  va.AddLine(vertex_id[10],vertex_id[9]);
2879  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
2880 
2881 #ifdef MAP_ISO_DEBUG
2882  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 69 << std::endl;
2883  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 69 << std::endl;
2884  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 69 << std::endl;
2885 #endif
2886  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
2887 
2888 #ifdef MAP_ISO_DEBUG
2889  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 69 << std::endl;
2890  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 69 << std::endl;
2891  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 69 << std::endl;
2892 #endif
2893  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
2894 
2895 #ifdef MAP_ISO_DEBUG
2896  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 69 << std::endl;
2897  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 69 << std::endl;
2898  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 69 << std::endl;
2899 #endif
2900  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[9]);
2901 
2902 #ifdef MAP_ISO_DEBUG
2903  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 69 << std::endl;
2904  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 69 << std::endl;
2905  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 69 << std::endl;
2906 #endif
2907  va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[10]);
2908 
2909 #ifdef MAP_ISO_DEBUG
2910  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 69 << std::endl;
2911  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 69 << std::endl;
2912  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 69 << std::endl;
2913 #endif
2914 }
2915 
2916 template<>
2917 void AddLinesAndFaces<70>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2918 {
2919  va.AddLine(vertex_id[2],vertex_id[0]);
2920  va.AddLine(vertex_id[5],vertex_id[0]);
2921  va.AddLine(vertex_id[9],vertex_id[5]);
2922  va.AddLine(vertex_id[10],vertex_id[2]);
2923  va.AddLine(vertex_id[10],vertex_id[9]);
2924  va.AddTriN(vertex_id[10],vertex_id[5],vertex_id[9]);
2925 
2926 #ifdef MAP_ISO_DEBUG
2927  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 70 << std::endl;
2928  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 70 << std::endl;
2929  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 70 << std::endl;
2930 #endif
2931  va.AddTriN(vertex_id[10],vertex_id[0],vertex_id[5]);
2932 
2933 #ifdef MAP_ISO_DEBUG
2934  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 70 << std::endl;
2935  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 70 << std::endl;
2936  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 70 << std::endl;
2937 #endif
2938  va.AddTriN(vertex_id[10],vertex_id[2],vertex_id[0]);
2939 
2940 #ifdef MAP_ISO_DEBUG
2941  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 70 << std::endl;
2942  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 70 << std::endl;
2943  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 70 << std::endl;
2944 #endif
2945 }
2946 
2947 template<>
2948 void AddLinesAndFaces<71>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2949 {
2950  va.AddLine(vertex_id[3],vertex_id[2]);
2951  va.AddLine(vertex_id[4],vertex_id[3]);
2952  va.AddLine(vertex_id[5],vertex_id[4]);
2953  va.AddLine(vertex_id[9],vertex_id[5]);
2954  va.AddLine(vertex_id[10],vertex_id[2]);
2955  va.AddLine(vertex_id[10],vertex_id[9]);
2956  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
2957 
2958 #ifdef MAP_ISO_DEBUG
2959  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 71 << std::endl;
2960  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 71 << std::endl;
2961  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 71 << std::endl;
2962 #endif
2963  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[10]);
2964 
2965 #ifdef MAP_ISO_DEBUG
2966  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 71 << std::endl;
2967  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 71 << std::endl;
2968  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 71 << std::endl;
2969 #endif
2970  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[9]);
2971 
2972 #ifdef MAP_ISO_DEBUG
2973  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 71 << std::endl;
2974  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 71 << std::endl;
2975  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 71 << std::endl;
2976 #endif
2977  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[5]);
2978 
2979 #ifdef MAP_ISO_DEBUG
2980  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 71 << std::endl;
2981  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 71 << std::endl;
2982  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 71 << std::endl;
2983 #endif
2984 }
2985 
2986 template<>
2987 void AddLinesAndFaces<72>(IndexedVertexArray& va,unsigned int vertex_id[12] )
2988 {
2989  va.AddLine(vertex_id[3],vertex_id[2]);
2990  va.AddLine(vertex_id[6],vertex_id[2]);
2991  va.AddLine(vertex_id[7],vertex_id[2]);
2992  va.AddLine(vertex_id[7],vertex_id[3]);
2993  va.AddLine(vertex_id[7],vertex_id[6]);
2994  va.AddLine(vertex_id[9],vertex_id[6]);
2995  va.AddLine(vertex_id[10],vertex_id[2]);
2996  va.AddLine(vertex_id[10],vertex_id[6]);
2997  va.AddLine(vertex_id[10],vertex_id[7]);
2998  va.AddLine(vertex_id[10],vertex_id[9]);
2999  va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[10]);
3000 
3001 #ifdef MAP_ISO_DEBUG
3002  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
3003  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 72 << std::endl;
3004  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 72 << std::endl;
3005 #endif
3006  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[9]);
3007 
3008 #ifdef MAP_ISO_DEBUG
3009  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
3010  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 72 << std::endl;
3011  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 72 << std::endl;
3012 #endif
3013  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[6]);
3014 
3015 #ifdef MAP_ISO_DEBUG
3016  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
3017  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 72 << std::endl;
3018  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 72 << std::endl;
3019 #endif
3020  va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[10]);
3021 
3022 #ifdef MAP_ISO_DEBUG
3023  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
3024  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 72 << std::endl;
3025  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 72 << std::endl;
3026 #endif
3027  va.AddTriN(vertex_id[7],vertex_id[7],vertex_id[2]);
3028 
3029 #ifdef MAP_ISO_DEBUG
3030  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
3031  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
3032  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 72 << std::endl;
3033 #endif
3034  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[7]);
3035 
3036 #ifdef MAP_ISO_DEBUG
3037  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
3038  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 72 << std::endl;
3039  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
3040 #endif
3041  va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[6]);
3042 
3043 #ifdef MAP_ISO_DEBUG
3044  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
3045  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 72 << std::endl;
3046  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 72 << std::endl;
3047 #endif
3048  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
3049 
3050 #ifdef MAP_ISO_DEBUG
3051  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 72 << std::endl;
3052  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 72 << std::endl;
3053  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 72 << std::endl;
3054 #endif
3055 }
3056 
3057 template<>
3058 void AddLinesAndFaces<73>(IndexedVertexArray& va,unsigned int vertex_id[12] )
3059 {
3060  va.AddLine(vertex_id[2],vertex_id[0]);
3061  va.AddLine(vertex_id[4],vertex_id[0]);
3062  va.AddLine(vertex_id[6],vertex_id[2]);
3063  va.AddLine(vertex_id[7],vertex_id[2]);
3064  va.AddLine(vertex_id[7],vertex_id[4]);
3065  va.AddLine(vertex_id[7],vertex_id[6]);
3066  va.AddLine(vertex_id[9],vertex_id[6]);
3067  va.AddLine(vertex_id[10],vertex_id[2]);
3068  va.AddLine(vertex_id[10],vertex_id[6]);
3069  va.AddLine(vertex_id[10],vertex_id[7]);
3070  va.AddLine(vertex_id[10],vertex_id[9]);
3071  va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[0]);
3072 
3073 #ifdef MAP_ISO_DEBUG
3074  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 73 << std::endl;
3075  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 73 << std::endl;
3076  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 73 << std::endl;
3077 #endif
3078  va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[4]);
3079 
3080 #ifdef MAP_ISO_DEBUG
3081  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 73 << std::endl;
3082  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 73 << std::endl;
3083  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 73 << std::endl;
3084 #endif
3085  va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[2]);
3086 
3087 #ifdef MAP_ISO_DEBUG
3088  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 73 << std::endl;
3089  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 73 << std::endl;
3090  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 73 << std::endl;
3091 #endif
3092  va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[6]);
3093 
3094 #ifdef MAP_ISO_DEBUG
3095  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 73 << std::endl;
3096  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 73 << std::endl;
3097  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 73 << std::endl;
3098 #endif
3099  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[9]);
3100 
3101 #ifdef MAP_ISO_DEBUG
3102  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 73 << std::endl;
3103  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 73 << std::endl;
3104  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 73 << std::endl;
3105 #endif
3106 }
3107 
3108 template<>
3109 void AddLinesAndFaces<74>(IndexedVertexArray& va,unsigned int vertex_id[12] )
3110 {
3111  va.AddLine(vertex_id[1],vertex_id[0]);
3112  va.AddLine(vertex_id[2],vertex_id[0]);
3113  va.AddLine(vertex_id[2],vertex_id[1]);
3114  va.AddLine(vertex_id[3],vertex_id[0]);
3115  va.AddLine(vertex_id[3],vertex_id[1]);
3116  va.AddLine(vertex_id[3],vertex_id[2]);
3117  va.AddLine(vertex_id[5],vertex_id[0]);
3118  va.AddLine(vertex_id[5],vertex_id[1]);
3119  va.AddLine(vertex_id[6],vertex_id[1]);
3120  va.AddLine(vertex_id[6],vertex_id[2]);
3121  va.AddLine(vertex_id[6],vertex_id[5]);
3122  va.AddLine(vertex_id[7],vertex_id[2]);
3123  va.AddLine(vertex_id[7],vertex_id[3]);
3124  va.AddLine(vertex_id[7],vertex_id[6]);
3125  va.AddLine(vertex_id[9],vertex_id[1]);
3126  va.AddLine(vertex_id[9],vertex_id[5]);
3127  va.AddLine(vertex_id[9],vertex_id[6]);
3128  va.AddLine(vertex_id[10],vertex_id[2]);
3129  va.AddLine(vertex_id[10],vertex_id[6]);
3130  va.AddLine(vertex_id[10],vertex_id[7]);
3131  va.AddLine(vertex_id[10],vertex_id[9]);
3132  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
3133 
3134 #ifdef MAP_ISO_DEBUG
3135  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 74 << std::endl;
3136  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 74 << std::endl;
3137  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 74 << std::endl;
3138 #endif
3139  va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[5]);
3140 
3141 #ifdef MAP_ISO_DEBUG
3142  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 74 << std::endl;
3143  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 74 << std::endl;
3144  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 74 << std::endl;
3145 #endif
3146  va.AddTriN(vertex_id[1],vertex_id[3],vertex_id[0]);
3147 
3148 #ifdef MAP_ISO_DEBUG
3149  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 74 << std::endl;
3150  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 74 << std::endl;
3151  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 74 << std::endl;
3152 #endif
3153  va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[10]);
3154 
3155 #ifdef MAP_ISO_DEBUG
3156  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
3157  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 74 << std::endl;
3158  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 74 << std::endl;
3159 #endif
3160  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[9]);
3161 
3162 #ifdef MAP_ISO_DEBUG
3163  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
3164  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 74 << std::endl;
3165  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 74 << std::endl;
3166 #endif
3167  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[6]);
3168 
3169 #ifdef MAP_ISO_DEBUG
3170  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
3171  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 74 << std::endl;
3172  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 74 << std::endl;
3173 #endif
3174  va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[10]);
3175 
3176 #ifdef MAP_ISO_DEBUG
3177  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
3178  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 74 << std::endl;
3179  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 74 << std::endl;
3180 #endif
3181  va.AddTriN(vertex_id[7],vertex_id[7],vertex_id[2]);
3182 
3183 #ifdef MAP_ISO_DEBUG
3184  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
3185  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
3186  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 74 << std::endl;
3187 #endif
3188  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[7]);
3189 
3190 #ifdef MAP_ISO_DEBUG
3191  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
3192  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 74 << std::endl;
3193  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
3194 #endif
3195  va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[6]);
3196 
3197 #ifdef MAP_ISO_DEBUG
3198  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
3199  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 74 << std::endl;
3200  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 74 << std::endl;
3201 #endif
3202  va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[5]);
3203 
3204 #ifdef MAP_ISO_DEBUG
3205  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
3206  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 74 << std::endl;
3207  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 74 << std::endl;
3208 #endif
3209  va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[9]);
3210 
3211 #ifdef MAP_ISO_DEBUG
3212  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
3213  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 74 << std::endl;
3214  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 74 << std::endl;
3215 #endif
3216  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[1]);
3217 
3218 #ifdef MAP_ISO_DEBUG
3219  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
3220  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 74 << std::endl;
3221  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 74 << std::endl;
3222 #endif
3223  va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[6]);
3224 
3225 #ifdef MAP_ISO_DEBUG
3226  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
3227  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 74 << std::endl;
3228  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 74 << std::endl;
3229 #endif
3230  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
3231 
3232 #ifdef MAP_ISO_DEBUG
3233  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 74 << std::endl;
3234  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 74 << std::endl;
3235  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 74 << std::endl;
3236 #endif
3237 }
3238 
3239 template<>
3240 void AddLinesAndFaces<75>(IndexedVertexArray& va,unsigned int vertex_id[12] )
3241 {
3242  va.AddLine(vertex_id[2],vertex_id[1]);
3243  va.AddLine(vertex_id[5],vertex_id[1]);
3244  va.AddLine(vertex_id[5],vertex_id[4]);
3245  va.AddLine(vertex_id[6],vertex_id[1]);
3246  va.AddLine(vertex_id[6],vertex_id[2]);
3247  va.AddLine(vertex_id[6],vertex_id[5]);
3248  va.AddLine(vertex_id[7],vertex_id[2]);
3249  va.AddLine(vertex_id[7],vertex_id[4]);
3250  va.AddLine(vertex_id[7],vertex_id[6]);
3251  va.AddLine(vertex_id[9],vertex_id[1]);
3252  va.AddLine(vertex_id[9],vertex_id[5]);
3253  va.AddLine(vertex_id[9],vertex_id[6]);
3254  va.AddLine(vertex_id[10],vertex_id[2]);
3255  va.AddLine(vertex_id[10],vertex_id[6]);
3256  va.AddLine(vertex_id[10],vertex_id[7]);
3257  va.AddLine(vertex_id[10],vertex_id[9]);
3258  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[1]);
3259 
3260 #ifdef MAP_ISO_DEBUG
3261  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 75 << std::endl;
3262  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 75 << std::endl;
3263  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 75 << std::endl;
3264 #endif
3265  va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[5]);
3266 
3267 #ifdef MAP_ISO_DEBUG
3268  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 75 << std::endl;
3269  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 75 << std::endl;
3270  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 75 << std::endl;
3271 #endif
3272  va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[4]);
3273 
3274 #ifdef MAP_ISO_DEBUG
3275  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 75 << std::endl;
3276  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 75 << std::endl;
3277  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 75 << std::endl;
3278 #endif
3279  va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
3280 
3281 #ifdef MAP_ISO_DEBUG
3282  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 75 << std::endl;
3283  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 75 << std::endl;
3284  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 75 << std::endl;
3285 #endif
3286  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
3287 
3288 #ifdef MAP_ISO_DEBUG
3289  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 75 << std::endl;
3290  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 75 << std::endl;
3291  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 75 << std::endl;
3292 #endif
3293  va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[2]);
3294 
3295 #ifdef MAP_ISO_DEBUG
3296  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 75 << std::endl;
3297  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 75 << std::endl;
3298  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 75 << std::endl;
3299 #endif
3300  va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[6]);
3301 
3302 #ifdef MAP_ISO_DEBUG
3303  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 75 << std::endl;
3304  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 75 << std::endl;
3305  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 75 << std::endl;
3306 #endif
3307  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[9]);
3308 
3309 #ifdef MAP_ISO_DEBUG
3310  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 75 << std::endl;
3311  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 75 << std::endl;
3312  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 75 << std::endl;
3313 #endif
3314 }
3315 
3316 template<>
3317 void AddLinesAndFaces<76>(IndexedVertexArray& va,unsigned int vertex_id[12] )
3318 {
3319  va.AddLine(vertex_id[3],vertex_id[1]);
3320  va.AddLine(vertex_id[7],vertex_id[3]);
3321  va.AddLine(vertex_id[9],vertex_id[1]);
3322  va.AddLine(vertex_id[10],vertex_id[7]);
3323  va.AddLine(vertex_id[10],vertex_id[9]);
3324  va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[10]);
3325 
3326 #ifdef MAP_ISO_DEBUG
3327  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 76 << std::endl;
3328  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 76 << std::endl;
3329  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 76 << std::endl;
3330 #endif
3331  va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[9]);
3332 
3333 #ifdef MAP_ISO_DEBUG
3334  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 76 << std::endl;
3335  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 76 << std::endl;
3336  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 76 << std::endl;
3337 #endif
3338  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[1]);
3339 
3340 #ifdef MAP_ISO_DEBUG
3341  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 76 << std::endl;
3342  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 76 << std::endl;
3343  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 76 << std::endl;
3344 #endif
3345 }
3346 
3347 template<>
3348 void AddLinesAndFaces<77>(IndexedVertexArray& va,unsigned int vertex_id[12] )
3349 {
3350  va.AddLine(vertex_id[1],vertex_id[0]);
3351  va.AddLine(vertex_id[4],vertex_id[0]);
3352  va.AddLine(vertex_id[7],vertex_id[4]);
3353  va.AddLine(vertex_id[9],vertex_id[1]);
3354  va.AddLine(vertex_id[10],vertex_id[7]);
3355  va.AddLine(vertex_id[10],vertex_id[9]);
3356  va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[0]);
3357 
3358 #ifdef MAP_ISO_DEBUG
3359  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 77 << std::endl;
3360  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 77 << std::endl;
3361  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 77 << std::endl;
3362 #endif
3363  va.AddTriN(vertex_id[1],vertex_id[7],vertex_id[4]);
3364 
3365 #ifdef MAP_ISO_DEBUG
3366  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 77 << std::endl;
3367  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 77 << std::endl;
3368  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 77 << std::endl;
3369 #endif
3370  va.AddTriN(vertex_id[1],vertex_id[10],vertex_id[7]);
3371 
3372 #ifdef MAP_ISO_DEBUG
3373  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 77 << std::endl;
3374  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 77 << std::endl;
3375  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 77 << std::endl;
3376 #endif
3377  va.AddTriN(vertex_id[1],vertex_id[9],vertex_id[10]);
3378 
3379 #ifdef MAP_ISO_DEBUG
3380  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 77 << std::endl;
3381  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 77 << std::endl;
3382  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 77 << std::endl;
3383 #endif
3384 }
3385 
3386 template<>
3387 void AddLinesAndFaces<78>(IndexedVertexArray& va,unsigned int vertex_id[12] )
3388 {
3389  va.AddLine(vertex_id[3],vertex_id[0]);
3390  va.AddLine(vertex_id[5],vertex_id[0]);
3391  va.AddLine(vertex_id[7],vertex_id[3]);
3392  va.AddLine(vertex_id[9],vertex_id[5]);
3393  va.AddLine(vertex_id[10],vertex_id[7]);
3394  va.AddLine(vertex_id[10],vertex_id[9]);
3395  va.AddTriN(vertex_id[7],vertex_id[9],vertex_id[10]);
3396 
3397 #ifdef MAP_ISO_DEBUG
3398  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 78 << std::endl;
3399  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 78 << std::endl;
3400  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 78 << std::endl;
3401 #endif
3402  va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[9]);
3403 
3404 #ifdef MAP_ISO_DEBUG
3405  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 78 << std::endl;
3406  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 78 << std::endl;
3407  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 78 << std::endl;
3408 #endif
3409  va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[5]);
3410 
3411 #ifdef MAP_ISO_DEBUG
3412  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 78 << std::endl;
3413  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 78 << std::endl;
3414  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 78 << std::endl;
3415 #endif
3416  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[0]);
3417 
3418 #ifdef MAP_ISO_DEBUG
3419  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 78 << std::endl;
3420  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 78 << std::endl;
3421  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 78 << std::endl;
3422 #endif
3423 }
3424 
3425 template<>
3426 void AddLinesAndFaces<79>(IndexedVertexArray& va,unsigned int vertex_id[12] )
3427 {
3428  va.AddLine(vertex_id[5],vertex_id[4]);
3429  va.AddLine(vertex_id[7],vertex_id[4]);
3430  va.AddLine(vertex_id[9],vertex_id[5]);
3431  va.AddLine(vertex_id[10],vertex_id[7]);
3432  va.AddLine(vertex_id[10],vertex_id[9]);
3433  va.AddTriN(vertex_id[5],vertex_id[7],vertex_id[4]);
3434 
3435 #ifdef MAP_ISO_DEBUG
3436  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 79 << std::endl;
3437  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 79 << std::endl;
3438  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 79 << std::endl;
3439 #endif
3440  va.AddTriN(vertex_id[5],vertex_id[10],vertex_id[7]);
3441 
3442 #ifdef MAP_ISO_DEBUG
3443  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 79 << std::endl;
3444  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 79 << std::endl;
3445  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 79 << std::endl;
3446 #endif
3447  va.AddTriN(vertex_id[5],vertex_id[9],vertex_id[10]);
3448 
3449 #ifdef MAP_ISO_DEBUG
3450  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 79 << std::endl;
3451  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 79 << std::endl;
3452  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 79 << std::endl;
3453 #endif
3454 }
3455 
3456 template<>
3457 void AddLinesAndFaces<80>(IndexedVertexArray& va,unsigned int vertex_id[12] )
3458 {
3459  va.AddLine(vertex_id[8],vertex_id[4]);
3460  va.AddLine(vertex_id[9],vertex_id[6]);
3461  va.AddLine(vertex_id[9],vertex_id[8]);
3462  va.AddLine(vertex_id[10],vertex_id[6]);
3463  va.AddLine(vertex_id[10],vertex_id[8]);
3464  va.AddLine(vertex_id[10],vertex_id[9]);
3465  va.AddLine(vertex_id[11],vertex_id[4]);
3466  va.AddLine(vertex_id[11],vertex_id[8]);
3467  va.AddLine(vertex_id[11],vertex_id[9]);
3468  va.AddLine(vertex_id[11],vertex_id[10]);
3469  va.AddTriN(vertex_id[11],vertex_id[8],vertex_id[4]);
3470 
3471 #ifdef MAP_ISO_DEBUG
3472  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 80 << std::endl;
3473  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 80 << std::endl;
3474  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 80 << std::endl;
3475 #endif
3476  va.AddTriN(vertex_id[9],vertex_id[10],vertex_id[6]);
3477 
3478 #ifdef MAP_ISO_DEBUG
3479  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 80 << std::endl;
3480  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 80 << std::endl;
3481  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 80 << std::endl;
3482 #endif
3483  va.AddTriN(vertex_id[9],vertex_id[8],vertex_id[10]);
3484 
3485 #ifdef MAP_ISO_DEBUG
3486  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 80 << std::endl;
3487  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 80 << std::endl;
3488  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 80 << std::endl;
3489 #endif
3490  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
3491 
3492 #ifdef MAP_ISO_DEBUG
3493  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 80 << std::endl;
3494  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 80 << std::endl;
3495  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 80 << std::endl;
3496 #endif
3497 }
3498 
3499 template<>
3500 void AddLinesAndFaces<81>(IndexedVertexArray& va,unsigned int vertex_id[12] )
3501 {
3502  va.AddLine(vertex_id[3],vertex_id[0]);
3503  va.AddLine(vertex_id[8],vertex_id[0]);
3504  va.AddLine(vertex_id[9],vertex_id[6]);
3505  va.AddLine(vertex_id[9],vertex_id[8]);
3506  va.AddLine(vertex_id[10],vertex_id[6]);
3507  va.AddLine(vertex_id[10],vertex_id[8]);
3508  va.AddLine(vertex_id[10],vertex_id[9]);
3509  va.AddLine(vertex_id[11],vertex_id[3]);
3510  va.AddLine(vertex_id[11],vertex_id[8]);
3511  va.AddLine(vertex_id[11],vertex_id[9]);
3512  va.AddLine(vertex_id[11],vertex_id[10]);
3513  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
3514 
3515 #ifdef MAP_ISO_DEBUG
3516  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 81 << std::endl;
3517  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 81 << std::endl;
3518  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 81 << std::endl;
3519 #endif
3520  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[8]);
3521 
3522 #ifdef MAP_ISO_DEBUG
3523  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 81 << std::endl;
3524  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 81 << std::endl;
3525  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 81 << std::endl;
3526 #endif
3527  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[9]);
3528 
3529 #ifdef MAP_ISO_DEBUG
3530  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 81 << std::endl;
3531  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 81 << std::endl;
3532  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 81 << std::endl;
3533 #endif
3534  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[6]);
3535 
3536 #ifdef MAP_ISO_DEBUG
3537  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 81 << std::endl;
3538  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 81 << std::endl;
3539  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 81 << std::endl;
3540 #endif
3541  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[10]);
3542 
3543 #ifdef MAP_ISO_DEBUG
3544  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 81 << std::endl;
3545  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 81 << std::endl;
3546  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 81 << std::endl;
3547 #endif
3548  va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
3549 
3550 #ifdef MAP_ISO_DEBUG
3551  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 81 << std::endl;
3552  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 81 << std::endl;
3553  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 81 << std::endl;
3554 #endif
3555  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
3556 
3557 #ifdef MAP_ISO_DEBUG
3558  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 81 << std::endl;
3559  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 81 << std::endl;
3560  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 81 << std::endl;
3561 #endif
3562 }
3563 
3564 template<>
3565 void AddLinesAndFaces<82>(IndexedVertexArray& va,unsigned int vertex_id[12] )
3566 {
3567  va.AddLine(vertex_id[1],vertex_id[0]);
3568  va.AddLine(vertex_id[4],vertex_id[0]);
3569  va.AddLine(vertex_id[5],vertex_id[0]);
3570  va.AddLine(vertex_id[5],vertex_id[1]);
3571  va.AddLine(vertex_id[5],vertex_id[4]);
3572  va.AddLine(vertex_id[6],vertex_id[1]);
3573  va.AddLine(vertex_id[6],vertex_id[5]);
3574  va.AddLine(vertex_id[8],vertex_id[0]);
3575  va.AddLine(vertex_id[8],vertex_id[4]);
3576  va.AddLine(vertex_id[8],vertex_id[5]);
3577  va.AddLine(vertex_id[9],vertex_id[1]);
3578  va.AddLine(vertex_id[9],vertex_id[5]);
3579  va.AddLine(vertex_id[9],vertex_id[6]);
3580  va.AddLine(vertex_id[9],vertex_id[8]);
3581  va.AddLine(vertex_id[10],vertex_id[6]);
3582  va.AddLine(vertex_id[10],vertex_id[8]);
3583  va.AddLine(vertex_id[10],vertex_id[9]);
3584  va.AddLine(vertex_id[11],vertex_id[4]);
3585  va.AddLine(vertex_id[11],vertex_id[8]);
3586  va.AddLine(vertex_id[11],vertex_id[9]);
3587  va.AddLine(vertex_id[11],vertex_id[10]);
3588  va.AddTriN(vertex_id[5],vertex_id[11],vertex_id[8]);
3589 
3590 #ifdef MAP_ISO_DEBUG
3591  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
3592  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 82 << std::endl;
3593  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 82 << std::endl;
3594 #endif
3595  va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[11]);
3596 
3597 #ifdef MAP_ISO_DEBUG
3598  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
3599  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 82 << std::endl;
3600  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 82 << std::endl;
3601 #endif
3602  va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[4]);
3603 
3604 #ifdef MAP_ISO_DEBUG
3605  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
3606  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 82 << std::endl;
3607  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 82 << std::endl;
3608 #endif
3609  va.AddTriN(vertex_id[5],vertex_id[0],vertex_id[8]);
3610 
3611 #ifdef MAP_ISO_DEBUG
3612  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
3613  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 82 << std::endl;
3614  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 82 << std::endl;
3615 #endif
3616  va.AddTriN(vertex_id[5],vertex_id[5],vertex_id[0]);
3617 
3618 #ifdef MAP_ISO_DEBUG
3619  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
3620  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
3621  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 82 << std::endl;
3622 #endif
3623  va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[5]);
3624 
3625 #ifdef MAP_ISO_DEBUG
3626  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
3627  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 82 << std::endl;
3628  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
3629 #endif
3630  va.AddTriN(vertex_id[5],vertex_id[0],vertex_id[4]);
3631 
3632 #ifdef MAP_ISO_DEBUG
3633  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
3634  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 82 << std::endl;
3635  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 82 << std::endl;
3636 #endif
3637  va.AddTriN(vertex_id[5],vertex_id[1],vertex_id[0]);
3638 
3639 #ifdef MAP_ISO_DEBUG
3640  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
3641  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 82 << std::endl;
3642  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 82 << std::endl;
3643 #endif
3644  va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
3645 
3646 #ifdef MAP_ISO_DEBUG
3647  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 82 << std::endl;
3648  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 82 << std::endl;
3649  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 82 << std::endl;
3650 #endif
3651  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
3652 
3653 #ifdef MAP_ISO_DEBUG
3654  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 82 << std::endl;
3655  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 82 << std::endl;
3656  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 82 << std::endl;
3657 #endif
3658  va.AddTriN(vertex_id[9],vertex_id[10],vertex_id[6]);
3659 
3660 #ifdef MAP_ISO_DEBUG
3661  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 82 << std::endl;
3662  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 82 << std::endl;
3663  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 82 << std::endl;
3664 #endif
3665  va.AddTriN(vertex_id[9],vertex_id[8],vertex_id[10]);
3666 
3667 #ifdef MAP_ISO_DEBUG
3668  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 82 << std::endl;
3669  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 82 << std::endl;
3670  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 82 << std::endl;
3671 #endif
3672  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
3673 
3674 #ifdef MAP_ISO_DEBUG
3675  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 82 << std::endl;
3676  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 82 << std::endl;
3677  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 82 << std::endl;
3678 #endif
3679 }
3680 
3681 template<>
3682 void AddLinesAndFaces<83>(IndexedVertexArray& va,unsigned int vertex_id[12] )
3683 {
3684  va.AddLine(vertex_id[3],vertex_id[1]);
3685  va.AddLine(vertex_id[5],vertex_id[1]);
3686  va.AddLine(vertex_id[6],vertex_id[1]);
3687  va.AddLine(vertex_id[6],vertex_id[5]);
3688  va.AddLine(vertex_id[8],vertex_id[5]);
3689  va.AddLine(vertex_id[9],vertex_id[1]);
3690  va.AddLine(vertex_id[9],vertex_id[5]);
3691  va.AddLine(vertex_id[9],vertex_id[6]);
3692  va.AddLine(vertex_id[9],vertex_id[8]);
3693  va.AddLine(vertex_id[10],vertex_id[6]);
3694  va.AddLine(vertex_id[10],vertex_id[8]);
3695  va.AddLine(vertex_id[10],vertex_id[9]);
3696  va.AddLine(vertex_id[11],vertex_id[3]);
3697  va.AddLine(vertex_id[11],vertex_id[8]);
3698  va.AddLine(vertex_id[11],vertex_id[9]);
3699  va.AddLine(vertex_id[11],vertex_id[10]);
3700  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
3701 
3702 #ifdef MAP_ISO_DEBUG
3703  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
3704  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 83 << std::endl;
3705  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 83 << std::endl;
3706 #endif
3707  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[5]);
3708 
3709 #ifdef MAP_ISO_DEBUG
3710  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
3711  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 83 << std::endl;
3712  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 83 << std::endl;
3713 #endif
3714  va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[6]);
3715 
3716 #ifdef MAP_ISO_DEBUG
3717  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
3718  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 83 << std::endl;
3719  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 83 << std::endl;
3720 #endif
3721  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
3722 
3723 #ifdef MAP_ISO_DEBUG
3724  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
3725  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 83 << std::endl;
3726  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 83 << std::endl;
3727 #endif
3728  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[9]);
3729 
3730 #ifdef MAP_ISO_DEBUG
3731  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
3732  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 83 << std::endl;
3733  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 83 << std::endl;
3734 #endif
3735  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
3736 
3737 #ifdef MAP_ISO_DEBUG
3738  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
3739  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 83 << std::endl;
3740  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 83 << std::endl;
3741 #endif
3742  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[8]);
3743 
3744 #ifdef MAP_ISO_DEBUG
3745  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
3746  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 83 << std::endl;
3747  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 83 << std::endl;
3748 #endif
3749  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[9]);
3750 
3751 #ifdef MAP_ISO_DEBUG
3752  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
3753  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 83 << std::endl;
3754  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 83 << std::endl;
3755 #endif
3756  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[6]);
3757 
3758 #ifdef MAP_ISO_DEBUG
3759  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
3760  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 83 << std::endl;
3761  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 83 << std::endl;
3762 #endif
3763  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[10]);
3764 
3765 #ifdef MAP_ISO_DEBUG
3766  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
3767  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 83 << std::endl;
3768  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 83 << std::endl;
3769 #endif
3770  va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
3771 
3772 #ifdef MAP_ISO_DEBUG
3773  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 83 << std::endl;
3774  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 83 << std::endl;
3775  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 83 << std::endl;
3776 #endif
3777  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
3778 
3779 #ifdef MAP_ISO_DEBUG
3780  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 83 << std::endl;
3781  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 83 << std::endl;
3782  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 83 << std::endl;
3783 #endif
3784 }
3785 
3786 template<>
3787 void AddLinesAndFaces<84>(IndexedVertexArray& va,unsigned int vertex_id[12] )
3788 {
3789  va.AddLine(vertex_id[2],vertex_id[1]);
3790  va.AddLine(vertex_id[8],vertex_id[4]);
3791  va.AddLine(vertex_id[9],vertex_id[1]);
3792  va.AddLine(vertex_id[9],vertex_id[8]);
3793  va.AddLine(vertex_id[10],vertex_id[2]);
3794  va.AddLine(vertex_id[10],vertex_id[8]);
3795  va.AddLine(vertex_id[10],vertex_id[9]);
3796  va.AddLine(vertex_id[11],vertex_id[4]);
3797  va.AddLine(vertex_id[11],vertex_id[8]);
3798  va.AddLine(vertex_id[11],vertex_id[9]);
3799  va.AddLine(vertex_id[11],vertex_id[10]);
3800  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[8]);
3801 
3802 #ifdef MAP_ISO_DEBUG
3803  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 84 << std::endl;
3804  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 84 << std::endl;
3805  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 84 << std::endl;
3806 #endif
3807  va.AddTriN(vertex_id[10],vertex_id[4],vertex_id[11]);
3808 
3809 #ifdef MAP_ISO_DEBUG
3810  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 84 << std::endl;
3811  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 84 << std::endl;
3812  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 84 << std::endl;
3813 #endif
3814  va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[4]);
3815 
3816 #ifdef MAP_ISO_DEBUG
3817  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 84 << std::endl;
3818  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 84 << std::endl;
3819  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 84 << std::endl;
3820 #endif
3821  va.AddTriN(vertex_id[10],vertex_id[9],vertex_id[8]);
3822 
3823 #ifdef MAP_ISO_DEBUG
3824  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 84 << std::endl;
3825  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 84 << std::endl;
3826  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 84 << std::endl;
3827 #endif
3828  va.AddTriN(vertex_id[10],vertex_id[1],vertex_id[9]);
3829 
3830 #ifdef MAP_ISO_DEBUG
3831  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 84 << std::endl;
3832  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 84 << std::endl;
3833  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 84 << std::endl;
3834 #endif
3835  va.AddTriN(vertex_id[10],vertex_id[2],vertex_id[1]);
3836 
3837 #ifdef MAP_ISO_DEBUG
3838  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 84 << std::endl;
3839  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 84 << std::endl;
3840  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 84 << std::endl;
3841 #endif
3842  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
3843 
3844 #ifdef MAP_ISO_DEBUG
3845  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 84 << std::endl;
3846  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 84 << std::endl;
3847  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 84 << std::endl;
3848 #endif
3849 }
3850 
3851 template<>
3852 void AddLinesAndFaces<85>(IndexedVertexArray& va,unsigned int vertex_id[12] )
3853 {
3854  va.AddLine(vertex_id[1],vertex_id[0]);
3855  va.AddLine(vertex_id[2],vertex_id[0]);
3856  va.AddLine(vertex_id[2],vertex_id[1]);
3857  va.AddLine(vertex_id[3],vertex_id[0]);
3858  va.AddLine(vertex_id[3],vertex_id[1]);
3859  va.AddLine(vertex_id[3],vertex_id[2]);
3860  va.AddLine(vertex_id[8],vertex_id[0]);
3861  va.AddLine(vertex_id[9],vertex_id[1]);
3862  va.AddLine(vertex_id[9],vertex_id[8]);
3863  va.AddLine(vertex_id[10],vertex_id[2]);
3864  va.AddLine(vertex_id[10],vertex_id[8]);
3865  va.AddLine(vertex_id[10],vertex_id[9]);
3866  va.AddLine(vertex_id[11],vertex_id[3]);
3867  va.AddLine(vertex_id[11],vertex_id[8]);
3868  va.AddLine(vertex_id[11],vertex_id[9]);
3869  va.AddLine(vertex_id[11],vertex_id[10]);
3870  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
3871 
3872 #ifdef MAP_ISO_DEBUG
3873  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 85 << std::endl;
3874  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 85 << std::endl;
3875  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 85 << std::endl;
3876 #endif
3877  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
3878 
3879 #ifdef MAP_ISO_DEBUG
3880  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 85 << std::endl;
3881  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 85 << std::endl;
3882  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 85 << std::endl;
3883 #endif
3884  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[8]);
3885 
3886 #ifdef MAP_ISO_DEBUG
3887  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 85 << std::endl;
3888  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 85 << std::endl;
3889  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 85 << std::endl;
3890 #endif
3891  va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[9]);
3892 
3893 #ifdef MAP_ISO_DEBUG
3894  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 85 << std::endl;
3895  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 85 << std::endl;
3896  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 85 << std::endl;
3897 #endif
3898  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
3899 
3900 #ifdef MAP_ISO_DEBUG
3901  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 85 << std::endl;
3902  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 85 << std::endl;
3903  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 85 << std::endl;
3904 #endif
3905  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[10]);
3906 
3907 #ifdef MAP_ISO_DEBUG
3908  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 85 << std::endl;
3909  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 85 << std::endl;
3910  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 85 << std::endl;
3911 #endif
3912  va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
3913 
3914 #ifdef MAP_ISO_DEBUG
3915  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 85 << std::endl;
3916  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 85 << std::endl;
3917  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 85 << std::endl;
3918 #endif
3919  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
3920 
3921 #ifdef MAP_ISO_DEBUG
3922  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 85 << std::endl;
3923  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 85 << std::endl;
3924  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 85 << std::endl;
3925 #endif
3926 }
3927 
3928 template<>
3929 void AddLinesAndFaces<86>(IndexedVertexArray& va,unsigned int vertex_id[12] )
3930 {
3931  va.AddLine(vertex_id[2],vertex_id[0]);
3932  va.AddLine(vertex_id[4],vertex_id[0]);
3933  va.AddLine(vertex_id[5],vertex_id[0]);
3934  va.AddLine(vertex_id[5],vertex_id[4]);
3935  va.AddLine(vertex_id[8],vertex_id[0]);
3936  va.AddLine(vertex_id[8],vertex_id[4]);
3937  va.AddLine(vertex_id[8],vertex_id[5]);
3938  va.AddLine(vertex_id[9],vertex_id[5]);
3939  va.AddLine(vertex_id[9],vertex_id[8]);
3940  va.AddLine(vertex_id[10],vertex_id[2]);
3941  va.AddLine(vertex_id[10],vertex_id[8]);
3942  va.AddLine(vertex_id[10],vertex_id[9]);
3943  va.AddLine(vertex_id[11],vertex_id[4]);
3944  va.AddLine(vertex_id[11],vertex_id[8]);
3945  va.AddLine(vertex_id[11],vertex_id[9]);
3946  va.AddLine(vertex_id[11],vertex_id[10]);
3947  va.AddTriN(vertex_id[10],vertex_id[9],vertex_id[8]);
3948 
3949 #ifdef MAP_ISO_DEBUG
3950  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
3951  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 86 << std::endl;
3952  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 86 << std::endl;
3953 #endif
3954  va.AddTriN(vertex_id[10],vertex_id[5],vertex_id[9]);
3955 
3956 #ifdef MAP_ISO_DEBUG
3957  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
3958  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 86 << std::endl;
3959  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 86 << std::endl;
3960 #endif
3961  va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[5]);
3962 
3963 #ifdef MAP_ISO_DEBUG
3964  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
3965  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 86 << std::endl;
3966  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 86 << std::endl;
3967 #endif
3968  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[8]);
3969 
3970 #ifdef MAP_ISO_DEBUG
3971  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
3972  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 86 << std::endl;
3973  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 86 << std::endl;
3974 #endif
3975  va.AddTriN(vertex_id[10],vertex_id[4],vertex_id[11]);
3976 
3977 #ifdef MAP_ISO_DEBUG
3978  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
3979  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 86 << std::endl;
3980  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 86 << std::endl;
3981 #endif
3982  va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[4]);
3983 
3984 #ifdef MAP_ISO_DEBUG
3985  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
3986  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 86 << std::endl;
3987  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 86 << std::endl;
3988 #endif
3989  va.AddTriN(vertex_id[10],vertex_id[0],vertex_id[8]);
3990 
3991 #ifdef MAP_ISO_DEBUG
3992  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
3993  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 86 << std::endl;
3994  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 86 << std::endl;
3995 #endif
3996  va.AddTriN(vertex_id[10],vertex_id[5],vertex_id[0]);
3997 
3998 #ifdef MAP_ISO_DEBUG
3999  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
4000  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 86 << std::endl;
4001  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 86 << std::endl;
4002 #endif
4003  va.AddTriN(vertex_id[10],vertex_id[4],vertex_id[5]);
4004 
4005 #ifdef MAP_ISO_DEBUG
4006  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
4007  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 86 << std::endl;
4008  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 86 << std::endl;
4009 #endif
4010  va.AddTriN(vertex_id[10],vertex_id[0],vertex_id[4]);
4011 
4012 #ifdef MAP_ISO_DEBUG
4013  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
4014  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 86 << std::endl;
4015  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 86 << std::endl;
4016 #endif
4017  va.AddTriN(vertex_id[10],vertex_id[2],vertex_id[0]);
4018 
4019 #ifdef MAP_ISO_DEBUG
4020  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
4021  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 86 << std::endl;
4022  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 86 << std::endl;
4023 #endif
4024  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
4025 
4026 #ifdef MAP_ISO_DEBUG
4027  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 86 << std::endl;
4028  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 86 << std::endl;
4029  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 86 << std::endl;
4030 #endif
4031 }
4032 
4033 template<>
4034 void AddLinesAndFaces<87>(IndexedVertexArray& va,unsigned int vertex_id[12] )
4035 {
4036  va.AddLine(vertex_id[3],vertex_id[2]);
4037  va.AddLine(vertex_id[8],vertex_id[5]);
4038  va.AddLine(vertex_id[9],vertex_id[5]);
4039  va.AddLine(vertex_id[9],vertex_id[8]);
4040  va.AddLine(vertex_id[10],vertex_id[2]);
4041  va.AddLine(vertex_id[10],vertex_id[8]);
4042  va.AddLine(vertex_id[10],vertex_id[9]);
4043  va.AddLine(vertex_id[11],vertex_id[3]);
4044  va.AddLine(vertex_id[11],vertex_id[8]);
4045  va.AddLine(vertex_id[11],vertex_id[9]);
4046  va.AddLine(vertex_id[11],vertex_id[10]);
4047  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
4048 
4049 #ifdef MAP_ISO_DEBUG
4050  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 87 << std::endl;
4051  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 87 << std::endl;
4052  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 87 << std::endl;
4053 #endif
4054  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[10]);
4055 
4056 #ifdef MAP_ISO_DEBUG
4057  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 87 << std::endl;
4058  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 87 << std::endl;
4059  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 87 << std::endl;
4060 #endif
4061  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[8]);
4062 
4063 #ifdef MAP_ISO_DEBUG
4064  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 87 << std::endl;
4065  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 87 << std::endl;
4066  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 87 << std::endl;
4067 #endif
4068  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[5]);
4069 
4070 #ifdef MAP_ISO_DEBUG
4071  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 87 << std::endl;
4072  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 87 << std::endl;
4073  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 87 << std::endl;
4074 #endif
4075  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[9]);
4076 
4077 #ifdef MAP_ISO_DEBUG
4078  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 87 << std::endl;
4079  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 87 << std::endl;
4080  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 87 << std::endl;
4081 #endif
4082  va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[8]);
4083 
4084 #ifdef MAP_ISO_DEBUG
4085  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 87 << std::endl;
4086  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 87 << std::endl;
4087  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 87 << std::endl;
4088 #endif
4089  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
4090 
4091 #ifdef MAP_ISO_DEBUG
4092  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 87 << std::endl;
4093  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 87 << std::endl;
4094  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 87 << std::endl;
4095 #endif
4096 }
4097 
4098 template<>
4099 void AddLinesAndFaces<88>(IndexedVertexArray& va,unsigned int vertex_id[12] )
4100 {
4101  va.AddLine(vertex_id[3],vertex_id[2]);
4102  va.AddLine(vertex_id[4],vertex_id[3]);
4103  va.AddLine(vertex_id[6],vertex_id[2]);
4104  va.AddLine(vertex_id[7],vertex_id[2]);
4105  va.AddLine(vertex_id[7],vertex_id[3]);
4106  va.AddLine(vertex_id[7],vertex_id[4]);
4107  va.AddLine(vertex_id[7],vertex_id[6]);
4108  va.AddLine(vertex_id[8],vertex_id[4]);
4109  va.AddLine(vertex_id[9],vertex_id[6]);
4110  va.AddLine(vertex_id[9],vertex_id[8]);
4111  va.AddLine(vertex_id[10],vertex_id[2]);
4112  va.AddLine(vertex_id[10],vertex_id[6]);
4113  va.AddLine(vertex_id[10],vertex_id[7]);
4114  va.AddLine(vertex_id[10],vertex_id[8]);
4115  va.AddLine(vertex_id[10],vertex_id[9]);
4116  va.AddLine(vertex_id[11],vertex_id[3]);
4117  va.AddLine(vertex_id[11],vertex_id[4]);
4118  va.AddLine(vertex_id[11],vertex_id[7]);
4119  va.AddLine(vertex_id[11],vertex_id[8]);
4120  va.AddLine(vertex_id[11],vertex_id[9]);
4121  va.AddLine(vertex_id[11],vertex_id[10]);
4122  va.AddTriN(vertex_id[4],vertex_id[9],vertex_id[8]);
4123 
4124 #ifdef MAP_ISO_DEBUG
4125  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
4126  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 88 << std::endl;
4127  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 88 << std::endl;
4128 #endif
4129  va.AddTriN(vertex_id[4],vertex_id[6],vertex_id[9]);
4130 
4131 #ifdef MAP_ISO_DEBUG
4132  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
4133  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 88 << std::endl;
4134  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 88 << std::endl;
4135 #endif
4136  va.AddTriN(vertex_id[4],vertex_id[10],vertex_id[6]);
4137 
4138 #ifdef MAP_ISO_DEBUG
4139  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
4140  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 88 << std::endl;
4141  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 88 << std::endl;
4142 #endif
4143  va.AddTriN(vertex_id[4],vertex_id[2],vertex_id[10]);
4144 
4145 #ifdef MAP_ISO_DEBUG
4146  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
4147  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 88 << std::endl;
4148  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 88 << std::endl;
4149 #endif
4150  va.AddTriN(vertex_id[4],vertex_id[7],vertex_id[2]);
4151 
4152 #ifdef MAP_ISO_DEBUG
4153  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
4154  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 88 << std::endl;
4155  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 88 << std::endl;
4156 #endif
4157  va.AddTriN(vertex_id[4],vertex_id[6],vertex_id[7]);
4158 
4159 #ifdef MAP_ISO_DEBUG
4160  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
4161  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 88 << std::endl;
4162  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 88 << std::endl;
4163 #endif
4164  va.AddTriN(vertex_id[4],vertex_id[2],vertex_id[6]);
4165 
4166 #ifdef MAP_ISO_DEBUG
4167  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
4168  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 88 << std::endl;
4169  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 88 << std::endl;
4170 #endif
4171  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[2]);
4172 
4173 #ifdef MAP_ISO_DEBUG
4174  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
4175  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 88 << std::endl;
4176  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 88 << std::endl;
4177 #endif
4178  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
4179 
4180 #ifdef MAP_ISO_DEBUG
4181  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 88 << std::endl;
4182  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 88 << std::endl;
4183  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 88 << std::endl;
4184 #endif
4185  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
4186 
4187 #ifdef MAP_ISO_DEBUG
4188  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 88 << std::endl;
4189  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 88 << std::endl;
4190  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 88 << std::endl;
4191 #endif
4192  va.AddTriN(vertex_id[8],vertex_id[7],vertex_id[11]);
4193 
4194 #ifdef MAP_ISO_DEBUG
4195  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 88 << std::endl;
4196  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 88 << std::endl;
4197  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 88 << std::endl;
4198 #endif
4199  va.AddTriN(vertex_id[8],vertex_id[10],vertex_id[7]);
4200 
4201 #ifdef MAP_ISO_DEBUG
4202  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 88 << std::endl;
4203  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 88 << std::endl;
4204  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 88 << std::endl;
4205 #endif
4206  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
4207 
4208 #ifdef MAP_ISO_DEBUG
4209  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 88 << std::endl;
4210  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 88 << std::endl;
4211  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 88 << std::endl;
4212 #endif
4213 }
4214 
4215 template<>
4216 void AddLinesAndFaces<89>(IndexedVertexArray& va,unsigned int vertex_id[12] )
4217 {
4218  va.AddLine(vertex_id[2],vertex_id[0]);
4219  va.AddLine(vertex_id[6],vertex_id[2]);
4220  va.AddLine(vertex_id[7],vertex_id[2]);
4221  va.AddLine(vertex_id[7],vertex_id[6]);
4222  va.AddLine(vertex_id[8],vertex_id[0]);
4223  va.AddLine(vertex_id[9],vertex_id[6]);
4224  va.AddLine(vertex_id[9],vertex_id[8]);
4225  va.AddLine(vertex_id[10],vertex_id[2]);
4226  va.AddLine(vertex_id[10],vertex_id[6]);
4227  va.AddLine(vertex_id[10],vertex_id[7]);
4228  va.AddLine(vertex_id[10],vertex_id[8]);
4229  va.AddLine(vertex_id[10],vertex_id[9]);
4230  va.AddLine(vertex_id[11],vertex_id[7]);
4231  va.AddLine(vertex_id[11],vertex_id[8]);
4232  va.AddLine(vertex_id[11],vertex_id[9]);
4233  va.AddLine(vertex_id[11],vertex_id[10]);
4234  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[0]);
4235 
4236 #ifdef MAP_ISO_DEBUG
4237  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 89 << std::endl;
4238  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 89 << std::endl;
4239  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 89 << std::endl;
4240 #endif
4241  va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[8]);
4242 
4243 #ifdef MAP_ISO_DEBUG
4244  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 89 << std::endl;
4245  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 89 << std::endl;
4246  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 89 << std::endl;
4247 #endif
4248  va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[9]);
4249 
4250 #ifdef MAP_ISO_DEBUG
4251  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 89 << std::endl;
4252  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 89 << std::endl;
4253  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 89 << std::endl;
4254 #endif
4255  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
4256 
4257 #ifdef MAP_ISO_DEBUG
4258  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 89 << std::endl;
4259  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 89 << std::endl;
4260  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 89 << std::endl;
4261 #endif
4262  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
4263 
4264 #ifdef MAP_ISO_DEBUG
4265  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 89 << std::endl;
4266  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 89 << std::endl;
4267  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 89 << std::endl;
4268 #endif
4269  va.AddTriN(vertex_id[8],vertex_id[7],vertex_id[11]);
4270 
4271 #ifdef MAP_ISO_DEBUG
4272  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 89 << std::endl;
4273  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 89 << std::endl;
4274  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 89 << std::endl;
4275 #endif
4276  va.AddTriN(vertex_id[8],vertex_id[10],vertex_id[7]);
4277 
4278 #ifdef MAP_ISO_DEBUG
4279  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 89 << std::endl;
4280  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 89 << std::endl;
4281  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 89 << std::endl;
4282 #endif
4283  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
4284 
4285 #ifdef MAP_ISO_DEBUG
4286  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 89 << std::endl;
4287  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 89 << std::endl;
4288  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 89 << std::endl;
4289 #endif
4290 }
4291 
4292 template<>
4293 void AddLinesAndFaces<90>(IndexedVertexArray& va,unsigned int vertex_id[12] )
4294 {
4295  va.AddLine(vertex_id[1],vertex_id[0]);
4296  va.AddLine(vertex_id[2],vertex_id[0]);
4297  va.AddLine(vertex_id[2],vertex_id[1]);
4298  va.AddLine(vertex_id[3],vertex_id[0]);
4299  va.AddLine(vertex_id[3],vertex_id[1]);
4300  va.AddLine(vertex_id[3],vertex_id[2]);
4301  va.AddLine(vertex_id[4],vertex_id[0]);
4302  va.AddLine(vertex_id[4],vertex_id[3]);
4303  va.AddLine(vertex_id[5],vertex_id[0]);
4304  va.AddLine(vertex_id[5],vertex_id[1]);
4305  va.AddLine(vertex_id[5],vertex_id[4]);
4306  va.AddLine(vertex_id[6],vertex_id[1]);
4307  va.AddLine(vertex_id[6],vertex_id[2]);
4308  va.AddLine(vertex_id[6],vertex_id[5]);
4309  va.AddLine(vertex_id[7],vertex_id[2]);
4310  va.AddLine(vertex_id[7],vertex_id[3]);
4311  va.AddLine(vertex_id[7],vertex_id[4]);
4312  va.AddLine(vertex_id[7],vertex_id[6]);
4313  va.AddLine(vertex_id[8],vertex_id[0]);
4314  va.AddLine(vertex_id[8],vertex_id[4]);
4315  va.AddLine(vertex_id[8],vertex_id[5]);
4316  va.AddLine(vertex_id[9],vertex_id[1]);
4317  va.AddLine(vertex_id[9],vertex_id[5]);
4318  va.AddLine(vertex_id[9],vertex_id[6]);
4319  va.AddLine(vertex_id[9],vertex_id[8]);
4320  va.AddLine(vertex_id[10],vertex_id[2]);
4321  va.AddLine(vertex_id[10],vertex_id[6]);
4322  va.AddLine(vertex_id[10],vertex_id[7]);
4323  va.AddLine(vertex_id[10],vertex_id[8]);
4324  va.AddLine(vertex_id[10],vertex_id[9]);
4325  va.AddLine(vertex_id[11],vertex_id[3]);
4326  va.AddLine(vertex_id[11],vertex_id[4]);
4327  va.AddLine(vertex_id[11],vertex_id[7]);
4328  va.AddLine(vertex_id[11],vertex_id[8]);
4329  va.AddLine(vertex_id[11],vertex_id[9]);
4330  va.AddLine(vertex_id[11],vertex_id[10]);
4331  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
4332 
4333 #ifdef MAP_ISO_DEBUG
4334  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 90 << std::endl;
4335  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
4336  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 90 << std::endl;
4337 #endif
4338  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
4339 
4340 #ifdef MAP_ISO_DEBUG
4341  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 90 << std::endl;
4342  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 90 << std::endl;
4343  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 90 << std::endl;
4344 #endif
4345  va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[6]);
4346 
4347 #ifdef MAP_ISO_DEBUG
4348  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
4349  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 90 << std::endl;
4350  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 90 << std::endl;
4351 #endif
4352  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[9]);
4353 
4354 #ifdef MAP_ISO_DEBUG
4355  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
4356  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 90 << std::endl;
4357  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 90 << std::endl;
4358 #endif
4359  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[8]);
4360 
4361 #ifdef MAP_ISO_DEBUG
4362  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
4363  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 90 << std::endl;
4364  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 90 << std::endl;
4365 #endif
4366  va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[5]);
4367 
4368 #ifdef MAP_ISO_DEBUG
4369  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
4370  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 90 << std::endl;
4371  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 90 << std::endl;
4372 #endif
4373  va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[9]);
4374 
4375 #ifdef MAP_ISO_DEBUG
4376  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
4377  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 90 << std::endl;
4378  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 90 << std::endl;
4379 #endif
4380  va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[1]);
4381 
4382 #ifdef MAP_ISO_DEBUG
4383  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
4384  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 90 << std::endl;
4385  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 90 << std::endl;
4386 #endif
4387  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[6]);
4388 
4389 #ifdef MAP_ISO_DEBUG
4390  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
4391  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 90 << std::endl;
4392  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 90 << std::endl;
4393 #endif
4394  va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[5]);
4395 
4396 #ifdef MAP_ISO_DEBUG
4397  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
4398  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 90 << std::endl;
4399  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 90 << std::endl;
4400 #endif
4401  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[4]);
4402 
4403 #ifdef MAP_ISO_DEBUG
4404  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
4405  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 90 << std::endl;
4406  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 90 << std::endl;
4407 #endif
4408  va.AddTriN(vertex_id[2],vertex_id[0],vertex_id[8]);
4409 
4410 #ifdef MAP_ISO_DEBUG
4411  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
4412  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 90 << std::endl;
4413  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 90 << std::endl;
4414 #endif
4415  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[0]);
4416 
4417 #ifdef MAP_ISO_DEBUG
4418  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
4419  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 90 << std::endl;
4420  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 90 << std::endl;
4421 #endif
4422  va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[5]);
4423 
4424 #ifdef MAP_ISO_DEBUG
4425  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
4426  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 90 << std::endl;
4427  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 90 << std::endl;
4428 #endif
4429  va.AddTriN(vertex_id[2],vertex_id[3],vertex_id[1]);
4430 
4431 #ifdef MAP_ISO_DEBUG
4432  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
4433  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 90 << std::endl;
4434  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 90 << std::endl;
4435 #endif
4436  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
4437 
4438 #ifdef MAP_ISO_DEBUG
4439  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 90 << std::endl;
4440  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 90 << std::endl;
4441  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 90 << std::endl;
4442 #endif
4443  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
4444 
4445 #ifdef MAP_ISO_DEBUG
4446  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 90 << std::endl;
4447  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 90 << std::endl;
4448  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 90 << std::endl;
4449 #endif
4450  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
4451 
4452 #ifdef MAP_ISO_DEBUG
4453  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 90 << std::endl;
4454  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 90 << std::endl;
4455  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 90 << std::endl;
4456 #endif
4457  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
4458 
4459 #ifdef MAP_ISO_DEBUG
4460  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 90 << std::endl;
4461  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 90 << std::endl;
4462  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 90 << std::endl;
4463 #endif
4464  va.AddTriN(vertex_id[8],vertex_id[7],vertex_id[11]);
4465 
4466 #ifdef MAP_ISO_DEBUG
4467  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 90 << std::endl;
4468  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 90 << std::endl;
4469  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 90 << std::endl;
4470 #endif
4471  va.AddTriN(vertex_id[8],vertex_id[10],vertex_id[7]);
4472 
4473 #ifdef MAP_ISO_DEBUG
4474  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 90 << std::endl;
4475  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 90 << std::endl;
4476  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 90 << std::endl;
4477 #endif
4478  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
4479 
4480 #ifdef MAP_ISO_DEBUG
4481  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 90 << std::endl;
4482  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 90 << std::endl;
4483  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 90 << std::endl;
4484 #endif
4485 }
4486 
4487 template<>
4488 void AddLinesAndFaces<91>(IndexedVertexArray& va,unsigned int vertex_id[12] )
4489 {
4490  va.AddLine(vertex_id[2],vertex_id[1]);
4491  va.AddLine(vertex_id[5],vertex_id[1]);
4492  va.AddLine(vertex_id[6],vertex_id[1]);
4493  va.AddLine(vertex_id[6],vertex_id[2]);
4494  va.AddLine(vertex_id[6],vertex_id[5]);
4495  va.AddLine(vertex_id[7],vertex_id[2]);
4496  va.AddLine(vertex_id[7],vertex_id[6]);
4497  va.AddLine(vertex_id[8],vertex_id[5]);
4498  va.AddLine(vertex_id[9],vertex_id[1]);
4499  va.AddLine(vertex_id[9],vertex_id[5]);
4500  va.AddLine(vertex_id[9],vertex_id[6]);
4501  va.AddLine(vertex_id[9],vertex_id[8]);
4502  va.AddLine(vertex_id[10],vertex_id[2]);
4503  va.AddLine(vertex_id[10],vertex_id[6]);
4504  va.AddLine(vertex_id[10],vertex_id[7]);
4505  va.AddLine(vertex_id[10],vertex_id[8]);
4506  va.AddLine(vertex_id[10],vertex_id[9]);
4507  va.AddLine(vertex_id[11],vertex_id[7]);
4508  va.AddLine(vertex_id[11],vertex_id[8]);
4509  va.AddLine(vertex_id[11],vertex_id[9]);
4510  va.AddLine(vertex_id[11],vertex_id[10]);
4511  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[1]);
4512 
4513 #ifdef MAP_ISO_DEBUG
4514  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
4515  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 91 << std::endl;
4516  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 91 << std::endl;
4517 #endif
4518  va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[5]);
4519 
4520 #ifdef MAP_ISO_DEBUG
4521  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
4522  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 91 << std::endl;
4523  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 91 << std::endl;
4524 #endif
4525  va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[6]);
4526 
4527 #ifdef MAP_ISO_DEBUG
4528  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
4529  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 91 << std::endl;
4530  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 91 << std::endl;
4531 #endif
4532  va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[1]);
4533 
4534 #ifdef MAP_ISO_DEBUG
4535  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
4536  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 91 << std::endl;
4537  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 91 << std::endl;
4538 #endif
4539  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[9]);
4540 
4541 #ifdef MAP_ISO_DEBUG
4542  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
4543  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 91 << std::endl;
4544  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 91 << std::endl;
4545 #endif
4546  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[5]);
4547 
4548 #ifdef MAP_ISO_DEBUG
4549  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
4550  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 91 << std::endl;
4551  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 91 << std::endl;
4552 #endif
4553  va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[8]);
4554 
4555 #ifdef MAP_ISO_DEBUG
4556  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
4557  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 91 << std::endl;
4558  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 91 << std::endl;
4559 #endif
4560  va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[9]);
4561 
4562 #ifdef MAP_ISO_DEBUG
4563  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
4564  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 91 << std::endl;
4565  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 91 << std::endl;
4566 #endif
4567  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
4568 
4569 #ifdef MAP_ISO_DEBUG
4570  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 91 << std::endl;
4571  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 91 << std::endl;
4572  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 91 << std::endl;
4573 #endif
4574  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
4575 
4576 #ifdef MAP_ISO_DEBUG
4577  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 91 << std::endl;
4578  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 91 << std::endl;
4579  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 91 << std::endl;
4580 #endif
4581  va.AddTriN(vertex_id[8],vertex_id[7],vertex_id[11]);
4582 
4583 #ifdef MAP_ISO_DEBUG
4584  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 91 << std::endl;
4585  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 91 << std::endl;
4586  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 91 << std::endl;
4587 #endif
4588  va.AddTriN(vertex_id[8],vertex_id[10],vertex_id[7]);
4589 
4590 #ifdef MAP_ISO_DEBUG
4591  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 91 << std::endl;
4592  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 91 << std::endl;
4593  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 91 << std::endl;
4594 #endif
4595  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
4596 
4597 #ifdef MAP_ISO_DEBUG
4598  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 91 << std::endl;
4599  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 91 << std::endl;
4600  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 91 << std::endl;
4601 #endif
4602 }
4603 
4604 template<>
4605 void AddLinesAndFaces<92>(IndexedVertexArray& va,unsigned int vertex_id[12] )
4606 {
4607  va.AddLine(vertex_id[3],vertex_id[1]);
4608  va.AddLine(vertex_id[4],vertex_id[3]);
4609  va.AddLine(vertex_id[7],vertex_id[3]);
4610  va.AddLine(vertex_id[7],vertex_id[4]);
4611  va.AddLine(vertex_id[8],vertex_id[4]);
4612  va.AddLine(vertex_id[9],vertex_id[1]);
4613  va.AddLine(vertex_id[9],vertex_id[8]);
4614  va.AddLine(vertex_id[10],vertex_id[7]);
4615  va.AddLine(vertex_id[10],vertex_id[8]);
4616  va.AddLine(vertex_id[10],vertex_id[9]);
4617  va.AddLine(vertex_id[11],vertex_id[3]);
4618  va.AddLine(vertex_id[11],vertex_id[4]);
4619  va.AddLine(vertex_id[11],vertex_id[7]);
4620  va.AddLine(vertex_id[11],vertex_id[8]);
4621  va.AddLine(vertex_id[11],vertex_id[9]);
4622  va.AddLine(vertex_id[11],vertex_id[10]);
4623  va.AddTriN(vertex_id[4],vertex_id[9],vertex_id[8]);
4624 
4625 #ifdef MAP_ISO_DEBUG
4626  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 92 << std::endl;
4627  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 92 << std::endl;
4628  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 92 << std::endl;
4629 #endif
4630  va.AddTriN(vertex_id[4],vertex_id[1],vertex_id[9]);
4631 
4632 #ifdef MAP_ISO_DEBUG
4633  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 92 << std::endl;
4634  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 92 << std::endl;
4635  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 92 << std::endl;
4636 #endif
4637  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[1]);
4638 
4639 #ifdef MAP_ISO_DEBUG
4640  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 92 << std::endl;
4641  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 92 << std::endl;
4642  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 92 << std::endl;
4643 #endif
4644  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
4645 
4646 #ifdef MAP_ISO_DEBUG
4647  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 92 << std::endl;
4648  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 92 << std::endl;
4649  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 92 << std::endl;
4650 #endif
4651  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
4652 
4653 #ifdef MAP_ISO_DEBUG
4654  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 92 << std::endl;
4655  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 92 << std::endl;
4656  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 92 << std::endl;
4657 #endif
4658  va.AddTriN(vertex_id[8],vertex_id[7],vertex_id[11]);
4659 
4660 #ifdef MAP_ISO_DEBUG
4661  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 92 << std::endl;
4662  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 92 << std::endl;
4663  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 92 << std::endl;
4664 #endif
4665  va.AddTriN(vertex_id[8],vertex_id[10],vertex_id[7]);
4666 
4667 #ifdef MAP_ISO_DEBUG
4668  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 92 << std::endl;
4669  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 92 << std::endl;
4670  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 92 << std::endl;
4671 #endif
4672  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
4673 
4674 #ifdef MAP_ISO_DEBUG
4675  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 92 << std::endl;
4676  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 92 << std::endl;
4677  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 92 << std::endl;
4678 #endif
4679 }
4680 
4681 template<>
4682 void AddLinesAndFaces<93>(IndexedVertexArray& va,unsigned int vertex_id[12] )
4683 {
4684  va.AddLine(vertex_id[1],vertex_id[0]);
4685  va.AddLine(vertex_id[8],vertex_id[0]);
4686  va.AddLine(vertex_id[9],vertex_id[1]);
4687  va.AddLine(vertex_id[9],vertex_id[8]);
4688  va.AddLine(vertex_id[10],vertex_id[7]);
4689  va.AddLine(vertex_id[10],vertex_id[8]);
4690  va.AddLine(vertex_id[10],vertex_id[9]);
4691  va.AddLine(vertex_id[11],vertex_id[7]);
4692  va.AddLine(vertex_id[11],vertex_id[8]);
4693  va.AddLine(vertex_id[11],vertex_id[9]);
4694  va.AddLine(vertex_id[11],vertex_id[10]);
4695  va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[0]);
4696 
4697 #ifdef MAP_ISO_DEBUG
4698  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 93 << std::endl;
4699  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 93 << std::endl;
4700  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 93 << std::endl;
4701 #endif
4702  va.AddTriN(vertex_id[1],vertex_id[9],vertex_id[8]);
4703 
4704 #ifdef MAP_ISO_DEBUG
4705  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 93 << std::endl;
4706  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 93 << std::endl;
4707  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 93 << std::endl;
4708 #endif
4709  va.AddTriN(vertex_id[8],vertex_id[7],vertex_id[11]);
4710 
4711 #ifdef MAP_ISO_DEBUG
4712  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 93 << std::endl;
4713  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 93 << std::endl;
4714  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 93 << std::endl;
4715 #endif
4716  va.AddTriN(vertex_id[8],vertex_id[10],vertex_id[7]);
4717 
4718 #ifdef MAP_ISO_DEBUG
4719  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 93 << std::endl;
4720  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 93 << std::endl;
4721  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 93 << std::endl;
4722 #endif
4723  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
4724 
4725 #ifdef MAP_ISO_DEBUG
4726  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 93 << std::endl;
4727  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 93 << std::endl;
4728  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 93 << std::endl;
4729 #endif
4730 }
4731 
4732 template<>
4733 void AddLinesAndFaces<94>(IndexedVertexArray& va,unsigned int vertex_id[12] )
4734 {
4735  va.AddLine(vertex_id[3],vertex_id[0]);
4736  va.AddLine(vertex_id[4],vertex_id[0]);
4737  va.AddLine(vertex_id[4],vertex_id[3]);
4738  va.AddLine(vertex_id[5],vertex_id[0]);
4739  va.AddLine(vertex_id[5],vertex_id[4]);
4740  va.AddLine(vertex_id[7],vertex_id[3]);
4741  va.AddLine(vertex_id[7],vertex_id[4]);
4742  va.AddLine(vertex_id[8],vertex_id[0]);
4743  va.AddLine(vertex_id[8],vertex_id[4]);
4744  va.AddLine(vertex_id[8],vertex_id[5]);
4745  va.AddLine(vertex_id[9],vertex_id[5]);
4746  va.AddLine(vertex_id[9],vertex_id[8]);
4747  va.AddLine(vertex_id[10],vertex_id[7]);
4748  va.AddLine(vertex_id[10],vertex_id[8]);
4749  va.AddLine(vertex_id[10],vertex_id[9]);
4750  va.AddLine(vertex_id[11],vertex_id[3]);
4751  va.AddLine(vertex_id[11],vertex_id[4]);
4752  va.AddLine(vertex_id[11],vertex_id[7]);
4753  va.AddLine(vertex_id[11],vertex_id[8]);
4754  va.AddLine(vertex_id[11],vertex_id[9]);
4755  va.AddLine(vertex_id[11],vertex_id[10]);
4756  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
4757 
4758 #ifdef MAP_ISO_DEBUG
4759  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 94 << std::endl;
4760  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 94 << std::endl;
4761  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 94 << std::endl;
4762 #endif
4763  va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[0]);
4764 
4765 #ifdef MAP_ISO_DEBUG
4766  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 94 << std::endl;
4767  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 94 << std::endl;
4768  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 94 << std::endl;
4769 #endif
4770  va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[8]);
4771 
4772 #ifdef MAP_ISO_DEBUG
4773  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 94 << std::endl;
4774  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 94 << std::endl;
4775  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 94 << std::endl;
4776 #endif
4777  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
4778 
4779 #ifdef MAP_ISO_DEBUG
4780  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 94 << std::endl;
4781  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 94 << std::endl;
4782  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 94 << std::endl;
4783 #endif
4784  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
4785 
4786 #ifdef MAP_ISO_DEBUG
4787  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 94 << std::endl;
4788  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 94 << std::endl;
4789  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 94 << std::endl;
4790 #endif
4791  va.AddTriN(vertex_id[9],vertex_id[8],vertex_id[5]);
4792 
4793 #ifdef MAP_ISO_DEBUG
4794  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 94 << std::endl;
4795  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 94 << std::endl;
4796  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 94 << std::endl;
4797 #endif
4798  va.AddTriN(vertex_id[8],vertex_id[7],vertex_id[11]);
4799 
4800 #ifdef MAP_ISO_DEBUG
4801  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 94 << std::endl;
4802  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 94 << std::endl;
4803  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 94 << std::endl;
4804 #endif
4805  va.AddTriN(vertex_id[8],vertex_id[10],vertex_id[7]);
4806 
4807 #ifdef MAP_ISO_DEBUG
4808  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 94 << std::endl;
4809  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 94 << std::endl;
4810  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 94 << std::endl;
4811 #endif
4812  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
4813 
4814 #ifdef MAP_ISO_DEBUG
4815  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 94 << std::endl;
4816  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 94 << std::endl;
4817  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 94 << std::endl;
4818 #endif
4819 }
4820 
4821 template<>
4822 void AddLinesAndFaces<95>(IndexedVertexArray& va,unsigned int vertex_id[12] )
4823 {
4824  va.AddLine(vertex_id[8],vertex_id[5]);
4825  va.AddLine(vertex_id[9],vertex_id[5]);
4826  va.AddLine(vertex_id[9],vertex_id[8]);
4827  va.AddLine(vertex_id[10],vertex_id[7]);
4828  va.AddLine(vertex_id[10],vertex_id[8]);
4829  va.AddLine(vertex_id[10],vertex_id[9]);
4830  va.AddLine(vertex_id[11],vertex_id[7]);
4831  va.AddLine(vertex_id[11],vertex_id[8]);
4832  va.AddLine(vertex_id[11],vertex_id[9]);
4833  va.AddLine(vertex_id[11],vertex_id[10]);
4834  va.AddTriN(vertex_id[9],vertex_id[8],vertex_id[5]);
4835 
4836 #ifdef MAP_ISO_DEBUG
4837  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 95 << std::endl;
4838  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 95 << std::endl;
4839  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 95 << std::endl;
4840 #endif
4841  va.AddTriN(vertex_id[8],vertex_id[7],vertex_id[11]);
4842 
4843 #ifdef MAP_ISO_DEBUG
4844  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 95 << std::endl;
4845  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 95 << std::endl;
4846  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 95 << std::endl;
4847 #endif
4848  va.AddTriN(vertex_id[8],vertex_id[10],vertex_id[7]);
4849 
4850 #ifdef MAP_ISO_DEBUG
4851  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 95 << std::endl;
4852  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 95 << std::endl;
4853  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 95 << std::endl;
4854 #endif
4855  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
4856 
4857 #ifdef MAP_ISO_DEBUG
4858  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 95 << std::endl;
4859  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 95 << std::endl;
4860  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 95 << std::endl;
4861 #endif
4862 }
4863 
4864 template<>
4865 void AddLinesAndFaces<96>(IndexedVertexArray& va,unsigned int vertex_id[12] )
4866 {
4867  va.AddLine(vertex_id[6],vertex_id[5]);
4868  va.AddLine(vertex_id[8],vertex_id[5]);
4869  va.AddLine(vertex_id[10],vertex_id[6]);
4870  va.AddLine(vertex_id[10],vertex_id[8]);
4871  va.AddTriN(vertex_id[10],vertex_id[5],vertex_id[8]);
4872 
4873 #ifdef MAP_ISO_DEBUG
4874  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 96 << std::endl;
4875  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 96 << std::endl;
4876  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 96 << std::endl;
4877 #endif
4878  va.AddTriN(vertex_id[10],vertex_id[6],vertex_id[5]);
4879 
4880 #ifdef MAP_ISO_DEBUG
4881  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 96 << std::endl;
4882  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 96 << std::endl;
4883  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 96 << std::endl;
4884 #endif
4885 }
4886 
4887 template<>
4888 void AddLinesAndFaces<97>(IndexedVertexArray& va,unsigned int vertex_id[12] )
4889 {
4890  va.AddLine(vertex_id[3],vertex_id[0]);
4891  va.AddLine(vertex_id[4],vertex_id[0]);
4892  va.AddLine(vertex_id[4],vertex_id[3]);
4893  va.AddLine(vertex_id[5],vertex_id[0]);
4894  va.AddLine(vertex_id[5],vertex_id[4]);
4895  va.AddLine(vertex_id[6],vertex_id[5]);
4896  va.AddLine(vertex_id[8],vertex_id[0]);
4897  va.AddLine(vertex_id[8],vertex_id[4]);
4898  va.AddLine(vertex_id[8],vertex_id[5]);
4899  va.AddLine(vertex_id[10],vertex_id[6]);
4900  va.AddLine(vertex_id[10],vertex_id[8]);
4901  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
4902 
4903 #ifdef MAP_ISO_DEBUG
4904  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 97 << std::endl;
4905  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 97 << std::endl;
4906  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 97 << std::endl;
4907 #endif
4908  va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[0]);
4909 
4910 #ifdef MAP_ISO_DEBUG
4911  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 97 << std::endl;
4912  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 97 << std::endl;
4913  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 97 << std::endl;
4914 #endif
4915  va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[8]);
4916 
4917 #ifdef MAP_ISO_DEBUG
4918  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 97 << std::endl;
4919  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 97 << std::endl;
4920  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 97 << std::endl;
4921 #endif
4922  va.AddTriN(vertex_id[10],vertex_id[5],vertex_id[8]);
4923 
4924 #ifdef MAP_ISO_DEBUG
4925  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 97 << std::endl;
4926  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 97 << std::endl;
4927  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 97 << std::endl;
4928 #endif
4929  va.AddTriN(vertex_id[10],vertex_id[6],vertex_id[5]);
4930 
4931 #ifdef MAP_ISO_DEBUG
4932  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 97 << std::endl;
4933  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 97 << std::endl;
4934  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 97 << std::endl;
4935 #endif
4936 }
4937 
4938 template<>
4939 void AddLinesAndFaces<98>(IndexedVertexArray& va,unsigned int vertex_id[12] )
4940 {
4941  va.AddLine(vertex_id[1],vertex_id[0]);
4942  va.AddLine(vertex_id[6],vertex_id[1]);
4943  va.AddLine(vertex_id[8],vertex_id[0]);
4944  va.AddLine(vertex_id[10],vertex_id[6]);
4945  va.AddLine(vertex_id[10],vertex_id[8]);
4946  va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[10]);
4947 
4948 #ifdef MAP_ISO_DEBUG
4949  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 98 << std::endl;
4950  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 98 << std::endl;
4951  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 98 << std::endl;
4952 #endif
4953  va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[8]);
4954 
4955 #ifdef MAP_ISO_DEBUG
4956  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 98 << std::endl;
4957  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 98 << std::endl;
4958  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 98 << std::endl;
4959 #endif
4960  va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[0]);
4961 
4962 #ifdef MAP_ISO_DEBUG
4963  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 98 << std::endl;
4964  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 98 << std::endl;
4965  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 98 << std::endl;
4966 #endif
4967 }
4968 
4969 template<>
4970 void AddLinesAndFaces<99>(IndexedVertexArray& va,unsigned int vertex_id[12] )
4971 {
4972  va.AddLine(vertex_id[3],vertex_id[1]);
4973  va.AddLine(vertex_id[4],vertex_id[3]);
4974  va.AddLine(vertex_id[6],vertex_id[1]);
4975  va.AddLine(vertex_id[8],vertex_id[4]);
4976  va.AddLine(vertex_id[10],vertex_id[6]);
4977  va.AddLine(vertex_id[10],vertex_id[8]);
4978  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[1]);
4979 
4980 #ifdef MAP_ISO_DEBUG
4981  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 99 << std::endl;
4982  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 99 << std::endl;
4983  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 99 << std::endl;
4984 #endif
4985  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[6]);
4986 
4987 #ifdef MAP_ISO_DEBUG
4988  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 99 << std::endl;
4989  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 99 << std::endl;
4990  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 99 << std::endl;
4991 #endif
4992  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[10]);
4993 
4994 #ifdef MAP_ISO_DEBUG
4995  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 99 << std::endl;
4996  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 99 << std::endl;
4997  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 99 << std::endl;
4998 #endif
4999  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
5000 
5001 #ifdef MAP_ISO_DEBUG
5002  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 99 << std::endl;
5003  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 99 << std::endl;
5004  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 99 << std::endl;
5005 #endif
5006 }
5007 
5008 template<>
5009 void AddLinesAndFaces<100>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5010 {
5011  va.AddLine(vertex_id[2],vertex_id[1]);
5012  va.AddLine(vertex_id[5],vertex_id[1]);
5013  va.AddLine(vertex_id[8],vertex_id[5]);
5014  va.AddLine(vertex_id[10],vertex_id[2]);
5015  va.AddLine(vertex_id[10],vertex_id[8]);
5016  va.AddTriN(vertex_id[10],vertex_id[5],vertex_id[8]);
5017 
5018 #ifdef MAP_ISO_DEBUG
5019  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 100 << std::endl;
5020  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 100 << std::endl;
5021  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 100 << std::endl;
5022 #endif
5023  va.AddTriN(vertex_id[10],vertex_id[1],vertex_id[5]);
5024 
5025 #ifdef MAP_ISO_DEBUG
5026  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 100 << std::endl;
5027  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 100 << std::endl;
5028  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 100 << std::endl;
5029 #endif
5030  va.AddTriN(vertex_id[10],vertex_id[2],vertex_id[1]);
5031 
5032 #ifdef MAP_ISO_DEBUG
5033  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 100 << std::endl;
5034  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 100 << std::endl;
5035  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 100 << std::endl;
5036 #endif
5037 }
5038 
5039 template<>
5040 void AddLinesAndFaces<101>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5041 {
5042  va.AddLine(vertex_id[1],vertex_id[0]);
5043  va.AddLine(vertex_id[2],vertex_id[0]);
5044  va.AddLine(vertex_id[2],vertex_id[1]);
5045  va.AddLine(vertex_id[3],vertex_id[0]);
5046  va.AddLine(vertex_id[3],vertex_id[1]);
5047  va.AddLine(vertex_id[3],vertex_id[2]);
5048  va.AddLine(vertex_id[4],vertex_id[0]);
5049  va.AddLine(vertex_id[4],vertex_id[3]);
5050  va.AddLine(vertex_id[5],vertex_id[0]);
5051  va.AddLine(vertex_id[5],vertex_id[1]);
5052  va.AddLine(vertex_id[5],vertex_id[4]);
5053  va.AddLine(vertex_id[8],vertex_id[0]);
5054  va.AddLine(vertex_id[8],vertex_id[4]);
5055  va.AddLine(vertex_id[8],vertex_id[5]);
5056  va.AddLine(vertex_id[10],vertex_id[2]);
5057  va.AddLine(vertex_id[10],vertex_id[8]);
5058  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
5059 
5060 #ifdef MAP_ISO_DEBUG
5061  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 101 << std::endl;
5062  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 101 << std::endl;
5063  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 101 << std::endl;
5064 #endif
5065  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
5066 
5067 #ifdef MAP_ISO_DEBUG
5068  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
5069  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 101 << std::endl;
5070  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 101 << std::endl;
5071 #endif
5072  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
5073 
5074 #ifdef MAP_ISO_DEBUG
5075  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
5076  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 101 << std::endl;
5077  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 101 << std::endl;
5078 #endif
5079  va.AddTriN(vertex_id[3],vertex_id[0],vertex_id[5]);
5080 
5081 #ifdef MAP_ISO_DEBUG
5082  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
5083  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 101 << std::endl;
5084  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 101 << std::endl;
5085 #endif
5086  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
5087 
5088 #ifdef MAP_ISO_DEBUG
5089  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
5090  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 101 << std::endl;
5091  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 101 << std::endl;
5092 #endif
5093  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
5094 
5095 #ifdef MAP_ISO_DEBUG
5096  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
5097  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 101 << std::endl;
5098  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 101 << std::endl;
5099 #endif
5100  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[4]);
5101 
5102 #ifdef MAP_ISO_DEBUG
5103  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
5104  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 101 << std::endl;
5105  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 101 << std::endl;
5106 #endif
5107  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
5108 
5109 #ifdef MAP_ISO_DEBUG
5110  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
5111  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 101 << std::endl;
5112  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 101 << std::endl;
5113 #endif
5114  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[8]);
5115 
5116 #ifdef MAP_ISO_DEBUG
5117  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
5118  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 101 << std::endl;
5119  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 101 << std::endl;
5120 #endif
5121  va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[10]);
5122 
5123 #ifdef MAP_ISO_DEBUG
5124  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 101 << std::endl;
5125  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 101 << std::endl;
5126  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 101 << std::endl;
5127 #endif
5128 }
5129 
5130 template<>
5131 void AddLinesAndFaces<102>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5132 {
5133  va.AddLine(vertex_id[2],vertex_id[0]);
5134  va.AddLine(vertex_id[8],vertex_id[0]);
5135  va.AddLine(vertex_id[10],vertex_id[2]);
5136  va.AddLine(vertex_id[10],vertex_id[8]);
5137  va.AddTriN(vertex_id[10],vertex_id[0],vertex_id[8]);
5138 
5139 #ifdef MAP_ISO_DEBUG
5140  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 102 << std::endl;
5141  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 102 << std::endl;
5142  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 102 << std::endl;
5143 #endif
5144  va.AddTriN(vertex_id[10],vertex_id[2],vertex_id[0]);
5145 
5146 #ifdef MAP_ISO_DEBUG
5147  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 102 << std::endl;
5148  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 102 << std::endl;
5149  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 102 << std::endl;
5150 #endif
5151 }
5152 
5153 template<>
5154 void AddLinesAndFaces<103>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5155 {
5156  va.AddLine(vertex_id[3],vertex_id[2]);
5157  va.AddLine(vertex_id[4],vertex_id[3]);
5158  va.AddLine(vertex_id[8],vertex_id[4]);
5159  va.AddLine(vertex_id[10],vertex_id[2]);
5160  va.AddLine(vertex_id[10],vertex_id[8]);
5161  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
5162 
5163 #ifdef MAP_ISO_DEBUG
5164  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 103 << std::endl;
5165  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 103 << std::endl;
5166  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 103 << std::endl;
5167 #endif
5168  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[10]);
5169 
5170 #ifdef MAP_ISO_DEBUG
5171  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 103 << std::endl;
5172  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 103 << std::endl;
5173  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 103 << std::endl;
5174 #endif
5175  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
5176 
5177 #ifdef MAP_ISO_DEBUG
5178  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 103 << std::endl;
5179  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 103 << std::endl;
5180  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 103 << std::endl;
5181 #endif
5182 }
5183 
5184 template<>
5185 void AddLinesAndFaces<104>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5186 {
5187  va.AddLine(vertex_id[3],vertex_id[2]);
5188  va.AddLine(vertex_id[6],vertex_id[2]);
5189  va.AddLine(vertex_id[6],vertex_id[5]);
5190  va.AddLine(vertex_id[7],vertex_id[2]);
5191  va.AddLine(vertex_id[7],vertex_id[3]);
5192  va.AddLine(vertex_id[7],vertex_id[6]);
5193  va.AddLine(vertex_id[8],vertex_id[5]);
5194  va.AddLine(vertex_id[10],vertex_id[2]);
5195  va.AddLine(vertex_id[10],vertex_id[6]);
5196  va.AddLine(vertex_id[10],vertex_id[7]);
5197  va.AddLine(vertex_id[10],vertex_id[8]);
5198  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
5199 
5200 #ifdef MAP_ISO_DEBUG
5201  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 104 << std::endl;
5202  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 104 << std::endl;
5203  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 104 << std::endl;
5204 #endif
5205  va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[10]);
5206 
5207 #ifdef MAP_ISO_DEBUG
5208  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 104 << std::endl;
5209  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 104 << std::endl;
5210  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 104 << std::endl;
5211 #endif
5212  va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[8]);
5213 
5214 #ifdef MAP_ISO_DEBUG
5215  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 104 << std::endl;
5216  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 104 << std::endl;
5217  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 104 << std::endl;
5218 #endif
5219  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[5]);
5220 
5221 #ifdef MAP_ISO_DEBUG
5222  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 104 << std::endl;
5223  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 104 << std::endl;
5224  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 104 << std::endl;
5225 #endif
5226  va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[6]);
5227 
5228 #ifdef MAP_ISO_DEBUG
5229  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 104 << std::endl;
5230  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 104 << std::endl;
5231  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 104 << std::endl;
5232 #endif
5233  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[2]);
5234 
5235 #ifdef MAP_ISO_DEBUG
5236  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 104 << std::endl;
5237  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 104 << std::endl;
5238  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 104 << std::endl;
5239 #endif
5240  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[6]);
5241 
5242 #ifdef MAP_ISO_DEBUG
5243  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 104 << std::endl;
5244  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 104 << std::endl;
5245  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 104 << std::endl;
5246 #endif
5247 }
5248 
5249 template<>
5250 void AddLinesAndFaces<105>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5251 {
5252  va.AddLine(vertex_id[2],vertex_id[0]);
5253  va.AddLine(vertex_id[4],vertex_id[0]);
5254  va.AddLine(vertex_id[5],vertex_id[0]);
5255  va.AddLine(vertex_id[5],vertex_id[4]);
5256  va.AddLine(vertex_id[6],vertex_id[2]);
5257  va.AddLine(vertex_id[6],vertex_id[5]);
5258  va.AddLine(vertex_id[7],vertex_id[2]);
5259  va.AddLine(vertex_id[7],vertex_id[4]);
5260  va.AddLine(vertex_id[7],vertex_id[6]);
5261  va.AddLine(vertex_id[8],vertex_id[0]);
5262  va.AddLine(vertex_id[8],vertex_id[4]);
5263  va.AddLine(vertex_id[8],vertex_id[5]);
5264  va.AddLine(vertex_id[10],vertex_id[2]);
5265  va.AddLine(vertex_id[10],vertex_id[6]);
5266  va.AddLine(vertex_id[10],vertex_id[7]);
5267  va.AddLine(vertex_id[10],vertex_id[8]);
5268  va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[0]);
5269 
5270 #ifdef MAP_ISO_DEBUG
5271  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 105 << std::endl;
5272  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 105 << std::endl;
5273  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 105 << std::endl;
5274 #endif
5275  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[4]);
5276 
5277 #ifdef MAP_ISO_DEBUG
5278  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 105 << std::endl;
5279  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 105 << std::endl;
5280  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 105 << std::endl;
5281 #endif
5282  va.AddTriN(vertex_id[2],vertex_id[0],vertex_id[5]);
5283 
5284 #ifdef MAP_ISO_DEBUG
5285  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 105 << std::endl;
5286  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 105 << std::endl;
5287  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 105 << std::endl;
5288 #endif
5289  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[0]);
5290 
5291 #ifdef MAP_ISO_DEBUG
5292  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 105 << std::endl;
5293  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 105 << std::endl;
5294  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 105 << std::endl;
5295 #endif
5296  va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[8]);
5297 
5298 #ifdef MAP_ISO_DEBUG
5299  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 105 << std::endl;
5300  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 105 << std::endl;
5301  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 105 << std::endl;
5302 #endif
5303  va.AddTriN(vertex_id[2],vertex_id[7],vertex_id[4]);
5304 
5305 #ifdef MAP_ISO_DEBUG
5306  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 105 << std::endl;
5307  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 105 << std::endl;
5308  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 105 << std::endl;
5309 #endif
5310  va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[2]);
5311 
5312 #ifdef MAP_ISO_DEBUG
5313  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 105 << std::endl;
5314  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 105 << std::endl;
5315  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 105 << std::endl;
5316 #endif
5317  va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[10]);
5318 
5319 #ifdef MAP_ISO_DEBUG
5320  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 105 << std::endl;
5321  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 105 << std::endl;
5322  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 105 << std::endl;
5323 #endif
5324  va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[8]);
5325 
5326 #ifdef MAP_ISO_DEBUG
5327  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 105 << std::endl;
5328  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 105 << std::endl;
5329  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 105 << std::endl;
5330 #endif
5331  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[5]);
5332 
5333 #ifdef MAP_ISO_DEBUG
5334  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 105 << std::endl;
5335  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 105 << std::endl;
5336  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 105 << std::endl;
5337 #endif
5338 }
5339 
5340 template<>
5341 void AddLinesAndFaces<106>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5342 {
5343  va.AddLine(vertex_id[1],vertex_id[0]);
5344  va.AddLine(vertex_id[2],vertex_id[0]);
5345  va.AddLine(vertex_id[2],vertex_id[1]);
5346  va.AddLine(vertex_id[3],vertex_id[0]);
5347  va.AddLine(vertex_id[3],vertex_id[1]);
5348  va.AddLine(vertex_id[3],vertex_id[2]);
5349  va.AddLine(vertex_id[6],vertex_id[1]);
5350  va.AddLine(vertex_id[6],vertex_id[2]);
5351  va.AddLine(vertex_id[7],vertex_id[2]);
5352  va.AddLine(vertex_id[7],vertex_id[3]);
5353  va.AddLine(vertex_id[7],vertex_id[6]);
5354  va.AddLine(vertex_id[8],vertex_id[0]);
5355  va.AddLine(vertex_id[10],vertex_id[2]);
5356  va.AddLine(vertex_id[10],vertex_id[6]);
5357  va.AddLine(vertex_id[10],vertex_id[7]);
5358  va.AddLine(vertex_id[10],vertex_id[8]);
5359  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
5360 
5361 #ifdef MAP_ISO_DEBUG
5362  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 106 << std::endl;
5363  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 106 << std::endl;
5364  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 106 << std::endl;
5365 #endif
5366  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[10]);
5367 
5368 #ifdef MAP_ISO_DEBUG
5369  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 106 << std::endl;
5370  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 106 << std::endl;
5371  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 106 << std::endl;
5372 #endif
5373  va.AddTriN(vertex_id[2],vertex_id[0],vertex_id[8]);
5374 
5375 #ifdef MAP_ISO_DEBUG
5376  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 106 << std::endl;
5377  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 106 << std::endl;
5378  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 106 << std::endl;
5379 #endif
5380  va.AddTriN(vertex_id[2],vertex_id[3],vertex_id[0]);
5381 
5382 #ifdef MAP_ISO_DEBUG
5383  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 106 << std::endl;
5384  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 106 << std::endl;
5385  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 106 << std::endl;
5386 #endif
5387  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[2]);
5388 
5389 #ifdef MAP_ISO_DEBUG
5390  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 106 << std::endl;
5391  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 106 << std::endl;
5392  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 106 << std::endl;
5393 #endif
5394  va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[6]);
5395 
5396 #ifdef MAP_ISO_DEBUG
5397  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 106 << std::endl;
5398  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 106 << std::endl;
5399  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 106 << std::endl;
5400 #endif
5401  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[1]);
5402 
5403 #ifdef MAP_ISO_DEBUG
5404  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 106 << std::endl;
5405  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 106 << std::endl;
5406  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 106 << std::endl;
5407 #endif
5408  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[6]);
5409 
5410 #ifdef MAP_ISO_DEBUG
5411  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 106 << std::endl;
5412  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 106 << std::endl;
5413  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 106 << std::endl;
5414 #endif
5415 }
5416 
5417 template<>
5418 void AddLinesAndFaces<107>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5419 {
5420  va.AddLine(vertex_id[2],vertex_id[1]);
5421  va.AddLine(vertex_id[6],vertex_id[1]);
5422  va.AddLine(vertex_id[6],vertex_id[2]);
5423  va.AddLine(vertex_id[7],vertex_id[2]);
5424  va.AddLine(vertex_id[7],vertex_id[4]);
5425  va.AddLine(vertex_id[7],vertex_id[6]);
5426  va.AddLine(vertex_id[8],vertex_id[4]);
5427  va.AddLine(vertex_id[10],vertex_id[2]);
5428  va.AddLine(vertex_id[10],vertex_id[6]);
5429  va.AddLine(vertex_id[10],vertex_id[7]);
5430  va.AddLine(vertex_id[10],vertex_id[8]);
5431  va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[1]);
5432 
5433 #ifdef MAP_ISO_DEBUG
5434  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 107 << std::endl;
5435  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 107 << std::endl;
5436  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 107 << std::endl;
5437 #endif
5438  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
5439 
5440 #ifdef MAP_ISO_DEBUG
5441  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 107 << std::endl;
5442  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 107 << std::endl;
5443  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 107 << std::endl;
5444 #endif
5445  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
5446 
5447 #ifdef MAP_ISO_DEBUG
5448  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 107 << std::endl;
5449  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 107 << std::endl;
5450  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 107 << std::endl;
5451 #endif
5452  va.AddTriN(vertex_id[10],vertex_id[4],vertex_id[8]);
5453 
5454 #ifdef MAP_ISO_DEBUG
5455  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 107 << std::endl;
5456  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 107 << std::endl;
5457  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 107 << std::endl;
5458 #endif
5459  va.AddTriN(vertex_id[10],vertex_id[7],vertex_id[4]);
5460 
5461 #ifdef MAP_ISO_DEBUG
5462  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 107 << std::endl;
5463  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 107 << std::endl;
5464  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 107 << std::endl;
5465 #endif
5466 }
5467 
5468 template<>
5469 void AddLinesAndFaces<108>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5470 {
5471  va.AddLine(vertex_id[3],vertex_id[1]);
5472  va.AddLine(vertex_id[5],vertex_id[1]);
5473  va.AddLine(vertex_id[7],vertex_id[3]);
5474  va.AddLine(vertex_id[8],vertex_id[5]);
5475  va.AddLine(vertex_id[10],vertex_id[7]);
5476  va.AddLine(vertex_id[10],vertex_id[8]);
5477  va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[10]);
5478 
5479 #ifdef MAP_ISO_DEBUG
5480  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 108 << std::endl;
5481  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 108 << std::endl;
5482  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 108 << std::endl;
5483 #endif
5484  va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[8]);
5485 
5486 #ifdef MAP_ISO_DEBUG
5487  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 108 << std::endl;
5488  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 108 << std::endl;
5489  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 108 << std::endl;
5490 #endif
5491  va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[5]);
5492 
5493 #ifdef MAP_ISO_DEBUG
5494  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 108 << std::endl;
5495  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 108 << std::endl;
5496  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 108 << std::endl;
5497 #endif
5498  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[1]);
5499 
5500 #ifdef MAP_ISO_DEBUG
5501  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 108 << std::endl;
5502  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 108 << std::endl;
5503  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 108 << std::endl;
5504 #endif
5505 }
5506 
5507 template<>
5508 void AddLinesAndFaces<109>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5509 {
5510  va.AddLine(vertex_id[1],vertex_id[0]);
5511  va.AddLine(vertex_id[4],vertex_id[0]);
5512  va.AddLine(vertex_id[5],vertex_id[0]);
5513  va.AddLine(vertex_id[5],vertex_id[1]);
5514  va.AddLine(vertex_id[5],vertex_id[4]);
5515  va.AddLine(vertex_id[7],vertex_id[4]);
5516  va.AddLine(vertex_id[8],vertex_id[0]);
5517  va.AddLine(vertex_id[8],vertex_id[4]);
5518  va.AddLine(vertex_id[8],vertex_id[5]);
5519  va.AddLine(vertex_id[10],vertex_id[7]);
5520  va.AddLine(vertex_id[10],vertex_id[8]);
5521  va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[0]);
5522 
5523 #ifdef MAP_ISO_DEBUG
5524  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
5525  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 109 << std::endl;
5526  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 109 << std::endl;
5527 #endif
5528  va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[4]);
5529 
5530 #ifdef MAP_ISO_DEBUG
5531  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
5532  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 109 << std::endl;
5533  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 109 << std::endl;
5534 #endif
5535  va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[5]);
5536 
5537 #ifdef MAP_ISO_DEBUG
5538  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
5539  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 109 << std::endl;
5540  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 109 << std::endl;
5541 #endif
5542  va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[0]);
5543 
5544 #ifdef MAP_ISO_DEBUG
5545  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
5546  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 109 << std::endl;
5547  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 109 << std::endl;
5548 #endif
5549  va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[8]);
5550 
5551 #ifdef MAP_ISO_DEBUG
5552  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
5553  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 109 << std::endl;
5554  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 109 << std::endl;
5555 #endif
5556  va.AddTriN(vertex_id[1],vertex_id[7],vertex_id[4]);
5557 
5558 #ifdef MAP_ISO_DEBUG
5559  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
5560  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 109 << std::endl;
5561  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 109 << std::endl;
5562 #endif
5563  va.AddTriN(vertex_id[1],vertex_id[10],vertex_id[7]);
5564 
5565 #ifdef MAP_ISO_DEBUG
5566  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
5567  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 109 << std::endl;
5568  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 109 << std::endl;
5569 #endif
5570  va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[10]);
5571 
5572 #ifdef MAP_ISO_DEBUG
5573  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
5574  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 109 << std::endl;
5575  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 109 << std::endl;
5576 #endif
5577  va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[8]);
5578 
5579 #ifdef MAP_ISO_DEBUG
5580  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 109 << std::endl;
5581  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 109 << std::endl;
5582  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 109 << std::endl;
5583 #endif
5584 }
5585 
5586 template<>
5587 void AddLinesAndFaces<110>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5588 {
5589  va.AddLine(vertex_id[3],vertex_id[0]);
5590  va.AddLine(vertex_id[7],vertex_id[3]);
5591  va.AddLine(vertex_id[8],vertex_id[0]);
5592  va.AddLine(vertex_id[10],vertex_id[7]);
5593  va.AddLine(vertex_id[10],vertex_id[8]);
5594  va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[10]);
5595 
5596 #ifdef MAP_ISO_DEBUG
5597  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 110 << std::endl;
5598  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 110 << std::endl;
5599  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 110 << std::endl;
5600 #endif
5601  va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[8]);
5602 
5603 #ifdef MAP_ISO_DEBUG
5604  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 110 << std::endl;
5605  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 110 << std::endl;
5606  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 110 << std::endl;
5607 #endif
5608  va.AddTriN(vertex_id[7],vertex_id[3],vertex_id[0]);
5609 
5610 #ifdef MAP_ISO_DEBUG
5611  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 110 << std::endl;
5612  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 110 << std::endl;
5613  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 110 << std::endl;
5614 #endif
5615 }
5616 
5617 template<>
5618 void AddLinesAndFaces<111>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5619 {
5620  va.AddLine(vertex_id[7],vertex_id[4]);
5621  va.AddLine(vertex_id[8],vertex_id[4]);
5622  va.AddLine(vertex_id[10],vertex_id[7]);
5623  va.AddLine(vertex_id[10],vertex_id[8]);
5624  va.AddTriN(vertex_id[10],vertex_id[4],vertex_id[8]);
5625 
5626 #ifdef MAP_ISO_DEBUG
5627  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 111 << std::endl;
5628  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 111 << std::endl;
5629  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 111 << std::endl;
5630 #endif
5631  va.AddTriN(vertex_id[10],vertex_id[7],vertex_id[4]);
5632 
5633 #ifdef MAP_ISO_DEBUG
5634  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 111 << std::endl;
5635  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 111 << std::endl;
5636  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 111 << std::endl;
5637 #endif
5638 }
5639 
5640 template<>
5641 void AddLinesAndFaces<112>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5642 {
5643  va.AddLine(vertex_id[5],vertex_id[4]);
5644  va.AddLine(vertex_id[6],vertex_id[5]);
5645  va.AddLine(vertex_id[10],vertex_id[6]);
5646  va.AddLine(vertex_id[11],vertex_id[4]);
5647  va.AddLine(vertex_id[11],vertex_id[10]);
5648  va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[10]);
5649 
5650 #ifdef MAP_ISO_DEBUG
5651  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 112 << std::endl;
5652  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 112 << std::endl;
5653  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 112 << std::endl;
5654 #endif
5655  va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[11]);
5656 
5657 #ifdef MAP_ISO_DEBUG
5658  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 112 << std::endl;
5659  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 112 << std::endl;
5660  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 112 << std::endl;
5661 #endif
5662  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[4]);
5663 
5664 #ifdef MAP_ISO_DEBUG
5665  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 112 << std::endl;
5666  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 112 << std::endl;
5667  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 112 << std::endl;
5668 #endif
5669 }
5670 
5671 template<>
5672 void AddLinesAndFaces<113>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5673 {
5674  va.AddLine(vertex_id[3],vertex_id[0]);
5675  va.AddLine(vertex_id[5],vertex_id[0]);
5676  va.AddLine(vertex_id[6],vertex_id[5]);
5677  va.AddLine(vertex_id[10],vertex_id[6]);
5678  va.AddLine(vertex_id[11],vertex_id[3]);
5679  va.AddLine(vertex_id[11],vertex_id[10]);
5680  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[0]);
5681 
5682 #ifdef MAP_ISO_DEBUG
5683  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 113 << std::endl;
5684  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 113 << std::endl;
5685  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 113 << std::endl;
5686 #endif
5687  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[5]);
5688 
5689 #ifdef MAP_ISO_DEBUG
5690  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 113 << std::endl;
5691  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 113 << std::endl;
5692  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 113 << std::endl;
5693 #endif
5694  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[6]);
5695 
5696 #ifdef MAP_ISO_DEBUG
5697  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 113 << std::endl;
5698  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 113 << std::endl;
5699  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 113 << std::endl;
5700 #endif
5701  va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[10]);
5702 
5703 #ifdef MAP_ISO_DEBUG
5704  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 113 << std::endl;
5705  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 113 << std::endl;
5706  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 113 << std::endl;
5707 #endif
5708 }
5709 
5710 template<>
5711 void AddLinesAndFaces<114>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5712 {
5713  va.AddLine(vertex_id[1],vertex_id[0]);
5714  va.AddLine(vertex_id[4],vertex_id[0]);
5715  va.AddLine(vertex_id[6],vertex_id[1]);
5716  va.AddLine(vertex_id[10],vertex_id[6]);
5717  va.AddLine(vertex_id[11],vertex_id[4]);
5718  va.AddLine(vertex_id[11],vertex_id[10]);
5719  va.AddTriN(vertex_id[6],vertex_id[11],vertex_id[10]);
5720 
5721 #ifdef MAP_ISO_DEBUG
5722  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 114 << std::endl;
5723  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 114 << std::endl;
5724  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 114 << std::endl;
5725 #endif
5726  va.AddTriN(vertex_id[6],vertex_id[4],vertex_id[11]);
5727 
5728 #ifdef MAP_ISO_DEBUG
5729  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 114 << std::endl;
5730  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 114 << std::endl;
5731  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 114 << std::endl;
5732 #endif
5733  va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[4]);
5734 
5735 #ifdef MAP_ISO_DEBUG
5736  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 114 << std::endl;
5737  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 114 << std::endl;
5738  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 114 << std::endl;
5739 #endif
5740  va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[0]);
5741 
5742 #ifdef MAP_ISO_DEBUG
5743  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 114 << std::endl;
5744  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 114 << std::endl;
5745  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 114 << std::endl;
5746 #endif
5747 }
5748 
5749 template<>
5750 void AddLinesAndFaces<115>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5751 {
5752  va.AddLine(vertex_id[3],vertex_id[1]);
5753  va.AddLine(vertex_id[6],vertex_id[1]);
5754  va.AddLine(vertex_id[10],vertex_id[6]);
5755  va.AddLine(vertex_id[11],vertex_id[3]);
5756  va.AddLine(vertex_id[11],vertex_id[10]);
5757  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[1]);
5758 
5759 #ifdef MAP_ISO_DEBUG
5760  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 115 << std::endl;
5761  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 115 << std::endl;
5762  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 115 << std::endl;
5763 #endif
5764  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[6]);
5765 
5766 #ifdef MAP_ISO_DEBUG
5767  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 115 << std::endl;
5768  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 115 << std::endl;
5769  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 115 << std::endl;
5770 #endif
5771  va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[10]);
5772 
5773 #ifdef MAP_ISO_DEBUG
5774  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 115 << std::endl;
5775  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 115 << std::endl;
5776  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 115 << std::endl;
5777 #endif
5778 }
5779 
5780 template<>
5781 void AddLinesAndFaces<116>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5782 {
5783  va.AddLine(vertex_id[2],vertex_id[1]);
5784  va.AddLine(vertex_id[5],vertex_id[1]);
5785  va.AddLine(vertex_id[5],vertex_id[4]);
5786  va.AddLine(vertex_id[10],vertex_id[2]);
5787  va.AddLine(vertex_id[11],vertex_id[4]);
5788  va.AddLine(vertex_id[11],vertex_id[10]);
5789  va.AddTriN(vertex_id[10],vertex_id[4],vertex_id[11]);
5790 
5791 #ifdef MAP_ISO_DEBUG
5792  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 116 << std::endl;
5793  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 116 << std::endl;
5794  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 116 << std::endl;
5795 #endif
5796  va.AddTriN(vertex_id[10],vertex_id[5],vertex_id[4]);
5797 
5798 #ifdef MAP_ISO_DEBUG
5799  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 116 << std::endl;
5800  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 116 << std::endl;
5801  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 116 << std::endl;
5802 #endif
5803  va.AddTriN(vertex_id[10],vertex_id[1],vertex_id[5]);
5804 
5805 #ifdef MAP_ISO_DEBUG
5806  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 116 << std::endl;
5807  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 116 << std::endl;
5808  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 116 << std::endl;
5809 #endif
5810  va.AddTriN(vertex_id[10],vertex_id[2],vertex_id[1]);
5811 
5812 #ifdef MAP_ISO_DEBUG
5813  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 116 << std::endl;
5814  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 116 << std::endl;
5815  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 116 << std::endl;
5816 #endif
5817 }
5818 
5819 template<>
5820 void AddLinesAndFaces<117>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5821 {
5822  va.AddLine(vertex_id[1],vertex_id[0]);
5823  va.AddLine(vertex_id[2],vertex_id[0]);
5824  va.AddLine(vertex_id[2],vertex_id[1]);
5825  va.AddLine(vertex_id[3],vertex_id[0]);
5826  va.AddLine(vertex_id[3],vertex_id[1]);
5827  va.AddLine(vertex_id[3],vertex_id[2]);
5828  va.AddLine(vertex_id[5],vertex_id[0]);
5829  va.AddLine(vertex_id[5],vertex_id[1]);
5830  va.AddLine(vertex_id[10],vertex_id[2]);
5831  va.AddLine(vertex_id[11],vertex_id[3]);
5832  va.AddLine(vertex_id[11],vertex_id[10]);
5833  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
5834 
5835 #ifdef MAP_ISO_DEBUG
5836  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 117 << std::endl;
5837  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 117 << std::endl;
5838  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 117 << std::endl;
5839 #endif
5840  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[0]);
5841 
5842 #ifdef MAP_ISO_DEBUG
5843  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 117 << std::endl;
5844  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 117 << std::endl;
5845  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 117 << std::endl;
5846 #endif
5847  va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[5]);
5848 
5849 #ifdef MAP_ISO_DEBUG
5850  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 117 << std::endl;
5851  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 117 << std::endl;
5852  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 117 << std::endl;
5853 #endif
5854  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
5855 
5856 #ifdef MAP_ISO_DEBUG
5857  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 117 << std::endl;
5858  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 117 << std::endl;
5859  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 117 << std::endl;
5860 #endif
5861  va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[10]);
5862 
5863 #ifdef MAP_ISO_DEBUG
5864  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 117 << std::endl;
5865  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 117 << std::endl;
5866  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 117 << std::endl;
5867 #endif
5868 }
5869 
5870 template<>
5871 void AddLinesAndFaces<118>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5872 {
5873  va.AddLine(vertex_id[2],vertex_id[0]);
5874  va.AddLine(vertex_id[4],vertex_id[0]);
5875  va.AddLine(vertex_id[10],vertex_id[2]);
5876  va.AddLine(vertex_id[11],vertex_id[4]);
5877  va.AddLine(vertex_id[11],vertex_id[10]);
5878  va.AddTriN(vertex_id[10],vertex_id[4],vertex_id[11]);
5879 
5880 #ifdef MAP_ISO_DEBUG
5881  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 118 << std::endl;
5882  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 118 << std::endl;
5883  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 118 << std::endl;
5884 #endif
5885  va.AddTriN(vertex_id[10],vertex_id[0],vertex_id[4]);
5886 
5887 #ifdef MAP_ISO_DEBUG
5888  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 118 << std::endl;
5889  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 118 << std::endl;
5890  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 118 << std::endl;
5891 #endif
5892  va.AddTriN(vertex_id[10],vertex_id[2],vertex_id[0]);
5893 
5894 #ifdef MAP_ISO_DEBUG
5895  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 118 << std::endl;
5896  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 118 << std::endl;
5897  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 118 << std::endl;
5898 #endif
5899 }
5900 
5901 template<>
5902 void AddLinesAndFaces<119>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5903 {
5904  va.AddLine(vertex_id[3],vertex_id[2]);
5905  va.AddLine(vertex_id[10],vertex_id[2]);
5906  va.AddLine(vertex_id[11],vertex_id[3]);
5907  va.AddLine(vertex_id[11],vertex_id[10]);
5908  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
5909 
5910 #ifdef MAP_ISO_DEBUG
5911  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 119 << std::endl;
5912  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 119 << std::endl;
5913  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 119 << std::endl;
5914 #endif
5915  va.AddTriN(vertex_id[3],vertex_id[11],vertex_id[10]);
5916 
5917 #ifdef MAP_ISO_DEBUG
5918  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 119 << std::endl;
5919  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 119 << std::endl;
5920  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 119 << std::endl;
5921 #endif
5922 }
5923 
5924 template<>
5925 void AddLinesAndFaces<120>(IndexedVertexArray& va,unsigned int vertex_id[12] )
5926 {
5927  va.AddLine(vertex_id[3],vertex_id[2]);
5928  va.AddLine(vertex_id[4],vertex_id[3]);
5929  va.AddLine(vertex_id[5],vertex_id[4]);
5930  va.AddLine(vertex_id[6],vertex_id[2]);
5931  va.AddLine(vertex_id[6],vertex_id[5]);
5932  va.AddLine(vertex_id[7],vertex_id[2]);
5933  va.AddLine(vertex_id[7],vertex_id[3]);
5934  va.AddLine(vertex_id[7],vertex_id[4]);
5935  va.AddLine(vertex_id[7],vertex_id[6]);
5936  va.AddLine(vertex_id[10],vertex_id[2]);
5937  va.AddLine(vertex_id[10],vertex_id[6]);
5938  va.AddLine(vertex_id[10],vertex_id[7]);
5939  va.AddLine(vertex_id[11],vertex_id[3]);
5940  va.AddLine(vertex_id[11],vertex_id[4]);
5941  va.AddLine(vertex_id[11],vertex_id[7]);
5942  va.AddLine(vertex_id[11],vertex_id[10]);
5943  va.AddTriN(vertex_id[4],vertex_id[6],vertex_id[5]);
5944 
5945 #ifdef MAP_ISO_DEBUG
5946  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 120 << std::endl;
5947  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 120 << std::endl;
5948  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 120 << std::endl;
5949 #endif
5950  va.AddTriN(vertex_id[4],vertex_id[2],vertex_id[6]);
5951 
5952 #ifdef MAP_ISO_DEBUG
5953  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 120 << std::endl;
5954  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 120 << std::endl;
5955  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 120 << std::endl;
5956 #endif
5957  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[2]);
5958 
5959 #ifdef MAP_ISO_DEBUG
5960  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 120 << std::endl;
5961  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 120 << std::endl;
5962  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 120 << std::endl;
5963 #endif
5964  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
5965 
5966 #ifdef MAP_ISO_DEBUG
5967  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 120 << std::endl;
5968  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 120 << std::endl;
5969  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 120 << std::endl;
5970 #endif
5971  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
5972 
5973 #ifdef MAP_ISO_DEBUG
5974  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 120 << std::endl;
5975  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 120 << std::endl;
5976  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 120 << std::endl;
5977 #endif
5978  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
5979 
5980 #ifdef MAP_ISO_DEBUG
5981  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 120 << std::endl;
5982  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 120 << std::endl;
5983  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 120 << std::endl;
5984 #endif
5985  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
5986 
5987 #ifdef MAP_ISO_DEBUG
5988  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 120 << std::endl;
5989  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 120 << std::endl;
5990  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 120 << std::endl;
5991 #endif
5992  va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[7]);
5993 
5994 #ifdef MAP_ISO_DEBUG
5995  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 120 << std::endl;
5996  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 120 << std::endl;
5997  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 120 << std::endl;
5998 #endif
5999 }
6000 
6001 template<>
6002 void AddLinesAndFaces<121>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6003 {
6004  va.AddLine(vertex_id[2],vertex_id[0]);
6005  va.AddLine(vertex_id[5],vertex_id[0]);
6006  va.AddLine(vertex_id[6],vertex_id[2]);
6007  va.AddLine(vertex_id[6],vertex_id[5]);
6008  va.AddLine(vertex_id[7],vertex_id[2]);
6009  va.AddLine(vertex_id[7],vertex_id[6]);
6010  va.AddLine(vertex_id[10],vertex_id[2]);
6011  va.AddLine(vertex_id[10],vertex_id[6]);
6012  va.AddLine(vertex_id[10],vertex_id[7]);
6013  va.AddLine(vertex_id[11],vertex_id[7]);
6014  va.AddLine(vertex_id[11],vertex_id[10]);
6015  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[0]);
6016 
6017 #ifdef MAP_ISO_DEBUG
6018  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 121 << std::endl;
6019  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 121 << std::endl;
6020  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 121 << std::endl;
6021 #endif
6022  va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[5]);
6023 
6024 #ifdef MAP_ISO_DEBUG
6025  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 121 << std::endl;
6026  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 121 << std::endl;
6027  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 121 << std::endl;
6028 #endif
6029  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
6030 
6031 #ifdef MAP_ISO_DEBUG
6032  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 121 << std::endl;
6033  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 121 << std::endl;
6034  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 121 << std::endl;
6035 #endif
6036  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
6037 
6038 #ifdef MAP_ISO_DEBUG
6039  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 121 << std::endl;
6040  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 121 << std::endl;
6041  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 121 << std::endl;
6042 #endif
6043  va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[7]);
6044 
6045 #ifdef MAP_ISO_DEBUG
6046  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 121 << std::endl;
6047  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 121 << std::endl;
6048  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 121 << std::endl;
6049 #endif
6050 }
6051 
6052 template<>
6053 void AddLinesAndFaces<122>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6054 {
6055  va.AddLine(vertex_id[1],vertex_id[0]);
6056  va.AddLine(vertex_id[2],vertex_id[0]);
6057  va.AddLine(vertex_id[2],vertex_id[1]);
6058  va.AddLine(vertex_id[3],vertex_id[0]);
6059  va.AddLine(vertex_id[3],vertex_id[1]);
6060  va.AddLine(vertex_id[3],vertex_id[2]);
6061  va.AddLine(vertex_id[4],vertex_id[0]);
6062  va.AddLine(vertex_id[4],vertex_id[3]);
6063  va.AddLine(vertex_id[6],vertex_id[1]);
6064  va.AddLine(vertex_id[6],vertex_id[2]);
6065  va.AddLine(vertex_id[7],vertex_id[2]);
6066  va.AddLine(vertex_id[7],vertex_id[3]);
6067  va.AddLine(vertex_id[7],vertex_id[4]);
6068  va.AddLine(vertex_id[7],vertex_id[6]);
6069  va.AddLine(vertex_id[10],vertex_id[2]);
6070  va.AddLine(vertex_id[10],vertex_id[6]);
6071  va.AddLine(vertex_id[10],vertex_id[7]);
6072  va.AddLine(vertex_id[11],vertex_id[3]);
6073  va.AddLine(vertex_id[11],vertex_id[4]);
6074  va.AddLine(vertex_id[11],vertex_id[7]);
6075  va.AddLine(vertex_id[11],vertex_id[10]);
6076  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
6077 
6078 #ifdef MAP_ISO_DEBUG
6079  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 122 << std::endl;
6080  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 122 << std::endl;
6081  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 122 << std::endl;
6082 #endif
6083  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
6084 
6085 #ifdef MAP_ISO_DEBUG
6086  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 122 << std::endl;
6087  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 122 << std::endl;
6088  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 122 << std::endl;
6089 #endif
6090  va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[6]);
6091 
6092 #ifdef MAP_ISO_DEBUG
6093  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 122 << std::endl;
6094  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 122 << std::endl;
6095  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 122 << std::endl;
6096 #endif
6097  va.AddTriN(vertex_id[2],vertex_id[3],vertex_id[1]);
6098 
6099 #ifdef MAP_ISO_DEBUG
6100  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 122 << std::endl;
6101  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 122 << std::endl;
6102  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 122 << std::endl;
6103 #endif
6104  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
6105 
6106 #ifdef MAP_ISO_DEBUG
6107  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 122 << std::endl;
6108  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 122 << std::endl;
6109  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 122 << std::endl;
6110 #endif
6111  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
6112 
6113 #ifdef MAP_ISO_DEBUG
6114  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 122 << std::endl;
6115  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 122 << std::endl;
6116  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 122 << std::endl;
6117 #endif
6118  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
6119 
6120 #ifdef MAP_ISO_DEBUG
6121  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 122 << std::endl;
6122  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 122 << std::endl;
6123  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 122 << std::endl;
6124 #endif
6125  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
6126 
6127 #ifdef MAP_ISO_DEBUG
6128  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 122 << std::endl;
6129  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 122 << std::endl;
6130  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 122 << std::endl;
6131 #endif
6132  va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[7]);
6133 
6134 #ifdef MAP_ISO_DEBUG
6135  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 122 << std::endl;
6136  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 122 << std::endl;
6137  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 122 << std::endl;
6138 #endif
6139 }
6140 
6141 template<>
6142 void AddLinesAndFaces<123>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6143 {
6144  va.AddLine(vertex_id[2],vertex_id[1]);
6145  va.AddLine(vertex_id[6],vertex_id[1]);
6146  va.AddLine(vertex_id[6],vertex_id[2]);
6147  va.AddLine(vertex_id[7],vertex_id[2]);
6148  va.AddLine(vertex_id[7],vertex_id[6]);
6149  va.AddLine(vertex_id[10],vertex_id[2]);
6150  va.AddLine(vertex_id[10],vertex_id[6]);
6151  va.AddLine(vertex_id[10],vertex_id[7]);
6152  va.AddLine(vertex_id[11],vertex_id[7]);
6153  va.AddLine(vertex_id[11],vertex_id[10]);
6154  va.AddTriN(vertex_id[2],vertex_id[6],vertex_id[1]);
6155 
6156 #ifdef MAP_ISO_DEBUG
6157  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 123 << std::endl;
6158  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 123 << std::endl;
6159  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 123 << std::endl;
6160 #endif
6161  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
6162 
6163 #ifdef MAP_ISO_DEBUG
6164  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 123 << std::endl;
6165  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 123 << std::endl;
6166  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 123 << std::endl;
6167 #endif
6168  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
6169 
6170 #ifdef MAP_ISO_DEBUG
6171  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 123 << std::endl;
6172  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 123 << std::endl;
6173  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 123 << std::endl;
6174 #endif
6175  va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[7]);
6176 
6177 #ifdef MAP_ISO_DEBUG
6178  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 123 << std::endl;
6179  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 123 << std::endl;
6180  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 123 << std::endl;
6181 #endif
6182 }
6183 
6184 template<>
6185 void AddLinesAndFaces<124>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6186 {
6187  va.AddLine(vertex_id[3],vertex_id[1]);
6188  va.AddLine(vertex_id[4],vertex_id[3]);
6189  va.AddLine(vertex_id[5],vertex_id[1]);
6190  va.AddLine(vertex_id[5],vertex_id[4]);
6191  va.AddLine(vertex_id[7],vertex_id[3]);
6192  va.AddLine(vertex_id[7],vertex_id[4]);
6193  va.AddLine(vertex_id[10],vertex_id[7]);
6194  va.AddLine(vertex_id[11],vertex_id[3]);
6195  va.AddLine(vertex_id[11],vertex_id[4]);
6196  va.AddLine(vertex_id[11],vertex_id[7]);
6197  va.AddLine(vertex_id[11],vertex_id[10]);
6198  va.AddTriN(vertex_id[4],vertex_id[1],vertex_id[5]);
6199 
6200 #ifdef MAP_ISO_DEBUG
6201  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 124 << std::endl;
6202  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 124 << std::endl;
6203  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 124 << std::endl;
6204 #endif
6205  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[1]);
6206 
6207 #ifdef MAP_ISO_DEBUG
6208  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 124 << std::endl;
6209  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 124 << std::endl;
6210  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 124 << std::endl;
6211 #endif
6212  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
6213 
6214 #ifdef MAP_ISO_DEBUG
6215  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 124 << std::endl;
6216  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 124 << std::endl;
6217  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 124 << std::endl;
6218 #endif
6219  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
6220 
6221 #ifdef MAP_ISO_DEBUG
6222  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 124 << std::endl;
6223  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 124 << std::endl;
6224  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 124 << std::endl;
6225 #endif
6226  va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[7]);
6227 
6228 #ifdef MAP_ISO_DEBUG
6229  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 124 << std::endl;
6230  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 124 << std::endl;
6231  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 124 << std::endl;
6232 #endif
6233 }
6234 
6235 template<>
6236 void AddLinesAndFaces<125>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6237 {
6238  va.AddLine(vertex_id[1],vertex_id[0]);
6239  va.AddLine(vertex_id[5],vertex_id[0]);
6240  va.AddLine(vertex_id[5],vertex_id[1]);
6241  va.AddLine(vertex_id[10],vertex_id[7]);
6242  va.AddLine(vertex_id[11],vertex_id[7]);
6243  va.AddLine(vertex_id[11],vertex_id[10]);
6244  va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[0]);
6245 
6246 #ifdef MAP_ISO_DEBUG
6247  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 125 << std::endl;
6248  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 125 << std::endl;
6249  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 125 << std::endl;
6250 #endif
6251  va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[7]);
6252 
6253 #ifdef MAP_ISO_DEBUG
6254  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 125 << std::endl;
6255  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 125 << std::endl;
6256  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 125 << std::endl;
6257 #endif
6258 }
6259 
6260 template<>
6261 void AddLinesAndFaces<126>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6262 {
6263  va.AddLine(vertex_id[3],vertex_id[0]);
6264  va.AddLine(vertex_id[4],vertex_id[0]);
6265  va.AddLine(vertex_id[4],vertex_id[3]);
6266  va.AddLine(vertex_id[7],vertex_id[3]);
6267  va.AddLine(vertex_id[7],vertex_id[4]);
6268  va.AddLine(vertex_id[10],vertex_id[7]);
6269  va.AddLine(vertex_id[11],vertex_id[3]);
6270  va.AddLine(vertex_id[11],vertex_id[4]);
6271  va.AddLine(vertex_id[11],vertex_id[7]);
6272  va.AddLine(vertex_id[11],vertex_id[10]);
6273  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
6274 
6275 #ifdef MAP_ISO_DEBUG
6276  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 126 << std::endl;
6277  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 126 << std::endl;
6278  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 126 << std::endl;
6279 #endif
6280  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
6281 
6282 #ifdef MAP_ISO_DEBUG
6283  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 126 << std::endl;
6284  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 126 << std::endl;
6285  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 126 << std::endl;
6286 #endif
6287  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
6288 
6289 #ifdef MAP_ISO_DEBUG
6290  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 126 << std::endl;
6291  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 126 << std::endl;
6292  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 126 << std::endl;
6293 #endif
6294  va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[7]);
6295 
6296 #ifdef MAP_ISO_DEBUG
6297  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 126 << std::endl;
6298  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 126 << std::endl;
6299  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 126 << std::endl;
6300 #endif
6301 }
6302 
6303 template<>
6304 void AddLinesAndFaces<127>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6305 {
6306  va.AddLine(vertex_id[10],vertex_id[7]);
6307  va.AddLine(vertex_id[11],vertex_id[7]);
6308  va.AddLine(vertex_id[11],vertex_id[10]);
6309  va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[7]);
6310 
6311 #ifdef MAP_ISO_DEBUG
6312  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 127 << std::endl;
6313  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 127 << std::endl;
6314  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 127 << std::endl;
6315 #endif
6316 }
6317 
6318 template<>
6319 void AddLinesAndFaces<128>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6320 {
6321  va.AddLine(vertex_id[10],vertex_id[7]);
6322  va.AddLine(vertex_id[11],vertex_id[7]);
6323  va.AddLine(vertex_id[11],vertex_id[10]);
6324  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
6325 
6326 #ifdef MAP_ISO_DEBUG
6327  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 128 << std::endl;
6328  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 128 << std::endl;
6329  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 128 << std::endl;
6330 #endif
6331 }
6332 
6333 template<>
6334 void AddLinesAndFaces<129>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6335 {
6336  va.AddLine(vertex_id[3],vertex_id[0]);
6337  va.AddLine(vertex_id[4],vertex_id[0]);
6338  va.AddLine(vertex_id[4],vertex_id[3]);
6339  va.AddLine(vertex_id[7],vertex_id[3]);
6340  va.AddLine(vertex_id[7],vertex_id[4]);
6341  va.AddLine(vertex_id[10],vertex_id[7]);
6342  va.AddLine(vertex_id[11],vertex_id[3]);
6343  va.AddLine(vertex_id[11],vertex_id[4]);
6344  va.AddLine(vertex_id[11],vertex_id[7]);
6345  va.AddLine(vertex_id[11],vertex_id[10]);
6346  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
6347 
6348 #ifdef MAP_ISO_DEBUG
6349  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 129 << std::endl;
6350  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 129 << std::endl;
6351  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 129 << std::endl;
6352 #endif
6353  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
6354 
6355 #ifdef MAP_ISO_DEBUG
6356  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 129 << std::endl;
6357  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 129 << std::endl;
6358  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 129 << std::endl;
6359 #endif
6360  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
6361 
6362 #ifdef MAP_ISO_DEBUG
6363  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 129 << std::endl;
6364  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 129 << std::endl;
6365  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 129 << std::endl;
6366 #endif
6367  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
6368 
6369 #ifdef MAP_ISO_DEBUG
6370  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 129 << std::endl;
6371  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 129 << std::endl;
6372  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 129 << std::endl;
6373 #endif
6374 }
6375 
6376 template<>
6377 void AddLinesAndFaces<130>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6378 {
6379  va.AddLine(vertex_id[1],vertex_id[0]);
6380  va.AddLine(vertex_id[5],vertex_id[0]);
6381  va.AddLine(vertex_id[5],vertex_id[1]);
6382  va.AddLine(vertex_id[10],vertex_id[7]);
6383  va.AddLine(vertex_id[11],vertex_id[7]);
6384  va.AddLine(vertex_id[11],vertex_id[10]);
6385  va.AddTriN(vertex_id[5],vertex_id[1],vertex_id[0]);
6386 
6387 #ifdef MAP_ISO_DEBUG
6388  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 130 << std::endl;
6389  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 130 << std::endl;
6390  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 130 << std::endl;
6391 #endif
6392  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
6393 
6394 #ifdef MAP_ISO_DEBUG
6395  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 130 << std::endl;
6396  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 130 << std::endl;
6397  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 130 << std::endl;
6398 #endif
6399 }
6400 
6401 template<>
6402 void AddLinesAndFaces<131>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6403 {
6404  va.AddLine(vertex_id[3],vertex_id[1]);
6405  va.AddLine(vertex_id[4],vertex_id[3]);
6406  va.AddLine(vertex_id[5],vertex_id[1]);
6407  va.AddLine(vertex_id[5],vertex_id[4]);
6408  va.AddLine(vertex_id[7],vertex_id[3]);
6409  va.AddLine(vertex_id[7],vertex_id[4]);
6410  va.AddLine(vertex_id[10],vertex_id[7]);
6411  va.AddLine(vertex_id[11],vertex_id[3]);
6412  va.AddLine(vertex_id[11],vertex_id[4]);
6413  va.AddLine(vertex_id[11],vertex_id[7]);
6414  va.AddLine(vertex_id[11],vertex_id[10]);
6415  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
6416 
6417 #ifdef MAP_ISO_DEBUG
6418  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 131 << std::endl;
6419  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 131 << std::endl;
6420  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 131 << std::endl;
6421 #endif
6422  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[5]);
6423 
6424 #ifdef MAP_ISO_DEBUG
6425  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 131 << std::endl;
6426  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 131 << std::endl;
6427  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 131 << std::endl;
6428 #endif
6429  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
6430 
6431 #ifdef MAP_ISO_DEBUG
6432  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 131 << std::endl;
6433  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 131 << std::endl;
6434  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 131 << std::endl;
6435 #endif
6436  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
6437 
6438 #ifdef MAP_ISO_DEBUG
6439  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 131 << std::endl;
6440  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 131 << std::endl;
6441  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 131 << std::endl;
6442 #endif
6443  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
6444 
6445 #ifdef MAP_ISO_DEBUG
6446  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 131 << std::endl;
6447  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 131 << std::endl;
6448  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 131 << std::endl;
6449 #endif
6450 }
6451 
6452 template<>
6453 void AddLinesAndFaces<132>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6454 {
6455  va.AddLine(vertex_id[2],vertex_id[1]);
6456  va.AddLine(vertex_id[6],vertex_id[1]);
6457  va.AddLine(vertex_id[6],vertex_id[2]);
6458  va.AddLine(vertex_id[7],vertex_id[2]);
6459  va.AddLine(vertex_id[7],vertex_id[6]);
6460  va.AddLine(vertex_id[10],vertex_id[2]);
6461  va.AddLine(vertex_id[10],vertex_id[6]);
6462  va.AddLine(vertex_id[10],vertex_id[7]);
6463  va.AddLine(vertex_id[11],vertex_id[7]);
6464  va.AddLine(vertex_id[11],vertex_id[10]);
6465  va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[1]);
6466 
6467 #ifdef MAP_ISO_DEBUG
6468  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 132 << std::endl;
6469  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 132 << std::endl;
6470  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 132 << std::endl;
6471 #endif
6472  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
6473 
6474 #ifdef MAP_ISO_DEBUG
6475  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 132 << std::endl;
6476  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 132 << std::endl;
6477  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 132 << std::endl;
6478 #endif
6479  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
6480 
6481 #ifdef MAP_ISO_DEBUG
6482  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 132 << std::endl;
6483  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 132 << std::endl;
6484  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 132 << std::endl;
6485 #endif
6486  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
6487 
6488 #ifdef MAP_ISO_DEBUG
6489  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 132 << std::endl;
6490  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 132 << std::endl;
6491  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 132 << std::endl;
6492 #endif
6493 }
6494 
6495 template<>
6496 void AddLinesAndFaces<133>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6497 {
6498  va.AddLine(vertex_id[1],vertex_id[0]);
6499  va.AddLine(vertex_id[2],vertex_id[0]);
6500  va.AddLine(vertex_id[2],vertex_id[1]);
6501  va.AddLine(vertex_id[3],vertex_id[0]);
6502  va.AddLine(vertex_id[3],vertex_id[1]);
6503  va.AddLine(vertex_id[3],vertex_id[2]);
6504  va.AddLine(vertex_id[4],vertex_id[0]);
6505  va.AddLine(vertex_id[4],vertex_id[3]);
6506  va.AddLine(vertex_id[6],vertex_id[1]);
6507  va.AddLine(vertex_id[6],vertex_id[2]);
6508  va.AddLine(vertex_id[7],vertex_id[2]);
6509  va.AddLine(vertex_id[7],vertex_id[3]);
6510  va.AddLine(vertex_id[7],vertex_id[4]);
6511  va.AddLine(vertex_id[7],vertex_id[6]);
6512  va.AddLine(vertex_id[10],vertex_id[2]);
6513  va.AddLine(vertex_id[10],vertex_id[6]);
6514  va.AddLine(vertex_id[10],vertex_id[7]);
6515  va.AddLine(vertex_id[11],vertex_id[3]);
6516  va.AddLine(vertex_id[11],vertex_id[4]);
6517  va.AddLine(vertex_id[11],vertex_id[7]);
6518  va.AddLine(vertex_id[11],vertex_id[10]);
6519  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
6520 
6521 #ifdef MAP_ISO_DEBUG
6522  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 133 << std::endl;
6523  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 133 << std::endl;
6524  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 133 << std::endl;
6525 #endif
6526  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
6527 
6528 #ifdef MAP_ISO_DEBUG
6529  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 133 << std::endl;
6530  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 133 << std::endl;
6531  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 133 << std::endl;
6532 #endif
6533  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[1]);
6534 
6535 #ifdef MAP_ISO_DEBUG
6536  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 133 << std::endl;
6537  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 133 << std::endl;
6538  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 133 << std::endl;
6539 #endif
6540  va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[6]);
6541 
6542 #ifdef MAP_ISO_DEBUG
6543  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 133 << std::endl;
6544  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 133 << std::endl;
6545  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 133 << std::endl;
6546 #endif
6547  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
6548 
6549 #ifdef MAP_ISO_DEBUG
6550  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 133 << std::endl;
6551  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 133 << std::endl;
6552  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 133 << std::endl;
6553 #endif
6554  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
6555 
6556 #ifdef MAP_ISO_DEBUG
6557  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 133 << std::endl;
6558  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 133 << std::endl;
6559  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 133 << std::endl;
6560 #endif
6561  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
6562 
6563 #ifdef MAP_ISO_DEBUG
6564  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 133 << std::endl;
6565  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 133 << std::endl;
6566  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 133 << std::endl;
6567 #endif
6568  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
6569 
6570 #ifdef MAP_ISO_DEBUG
6571  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 133 << std::endl;
6572  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 133 << std::endl;
6573  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 133 << std::endl;
6574 #endif
6575  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
6576 
6577 #ifdef MAP_ISO_DEBUG
6578  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 133 << std::endl;
6579  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 133 << std::endl;
6580  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 133 << std::endl;
6581 #endif
6582 }
6583 
6584 template<>
6585 void AddLinesAndFaces<134>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6586 {
6587  va.AddLine(vertex_id[2],vertex_id[0]);
6588  va.AddLine(vertex_id[5],vertex_id[0]);
6589  va.AddLine(vertex_id[6],vertex_id[2]);
6590  va.AddLine(vertex_id[6],vertex_id[5]);
6591  va.AddLine(vertex_id[7],vertex_id[2]);
6592  va.AddLine(vertex_id[7],vertex_id[6]);
6593  va.AddLine(vertex_id[10],vertex_id[2]);
6594  va.AddLine(vertex_id[10],vertex_id[6]);
6595  va.AddLine(vertex_id[10],vertex_id[7]);
6596  va.AddLine(vertex_id[11],vertex_id[7]);
6597  va.AddLine(vertex_id[11],vertex_id[10]);
6598  va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[5]);
6599 
6600 #ifdef MAP_ISO_DEBUG
6601  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 134 << std::endl;
6602  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 134 << std::endl;
6603  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 134 << std::endl;
6604 #endif
6605  va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[0]);
6606 
6607 #ifdef MAP_ISO_DEBUG
6608  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 134 << std::endl;
6609  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 134 << std::endl;
6610  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 134 << std::endl;
6611 #endif
6612  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
6613 
6614 #ifdef MAP_ISO_DEBUG
6615  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 134 << std::endl;
6616  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 134 << std::endl;
6617  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 134 << std::endl;
6618 #endif
6619  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
6620 
6621 #ifdef MAP_ISO_DEBUG
6622  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 134 << std::endl;
6623  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 134 << std::endl;
6624  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 134 << std::endl;
6625 #endif
6626  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
6627 
6628 #ifdef MAP_ISO_DEBUG
6629  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 134 << std::endl;
6630  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 134 << std::endl;
6631  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 134 << std::endl;
6632 #endif
6633 }
6634 
6635 template<>
6636 void AddLinesAndFaces<135>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6637 {
6638  va.AddLine(vertex_id[3],vertex_id[2]);
6639  va.AddLine(vertex_id[4],vertex_id[3]);
6640  va.AddLine(vertex_id[5],vertex_id[4]);
6641  va.AddLine(vertex_id[6],vertex_id[2]);
6642  va.AddLine(vertex_id[6],vertex_id[5]);
6643  va.AddLine(vertex_id[7],vertex_id[2]);
6644  va.AddLine(vertex_id[7],vertex_id[3]);
6645  va.AddLine(vertex_id[7],vertex_id[4]);
6646  va.AddLine(vertex_id[7],vertex_id[6]);
6647  va.AddLine(vertex_id[10],vertex_id[2]);
6648  va.AddLine(vertex_id[10],vertex_id[6]);
6649  va.AddLine(vertex_id[10],vertex_id[7]);
6650  va.AddLine(vertex_id[11],vertex_id[3]);
6651  va.AddLine(vertex_id[11],vertex_id[4]);
6652  va.AddLine(vertex_id[11],vertex_id[7]);
6653  va.AddLine(vertex_id[11],vertex_id[10]);
6654  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
6655 
6656 #ifdef MAP_ISO_DEBUG
6657  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 135 << std::endl;
6658  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 135 << std::endl;
6659  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 135 << std::endl;
6660 #endif
6661  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[6]);
6662 
6663 #ifdef MAP_ISO_DEBUG
6664  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 135 << std::endl;
6665  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 135 << std::endl;
6666  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 135 << std::endl;
6667 #endif
6668  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[5]);
6669 
6670 #ifdef MAP_ISO_DEBUG
6671  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 135 << std::endl;
6672  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 135 << std::endl;
6673  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 135 << std::endl;
6674 #endif
6675  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
6676 
6677 #ifdef MAP_ISO_DEBUG
6678  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 135 << std::endl;
6679  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 135 << std::endl;
6680  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 135 << std::endl;
6681 #endif
6682  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
6683 
6684 #ifdef MAP_ISO_DEBUG
6685  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 135 << std::endl;
6686  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 135 << std::endl;
6687  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 135 << std::endl;
6688 #endif
6689  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
6690 
6691 #ifdef MAP_ISO_DEBUG
6692  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 135 << std::endl;
6693  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 135 << std::endl;
6694  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 135 << std::endl;
6695 #endif
6696  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
6697 
6698 #ifdef MAP_ISO_DEBUG
6699  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 135 << std::endl;
6700  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 135 << std::endl;
6701  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 135 << std::endl;
6702 #endif
6703  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
6704 
6705 #ifdef MAP_ISO_DEBUG
6706  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 135 << std::endl;
6707  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 135 << std::endl;
6708  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 135 << std::endl;
6709 #endif
6710 }
6711 
6712 template<>
6713 void AddLinesAndFaces<136>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6714 {
6715  va.AddLine(vertex_id[3],vertex_id[2]);
6716  va.AddLine(vertex_id[10],vertex_id[2]);
6717  va.AddLine(vertex_id[11],vertex_id[3]);
6718  va.AddLine(vertex_id[11],vertex_id[10]);
6719  va.AddTriN(vertex_id[11],vertex_id[2],vertex_id[10]);
6720 
6721 #ifdef MAP_ISO_DEBUG
6722  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 136 << std::endl;
6723  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 136 << std::endl;
6724  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 136 << std::endl;
6725 #endif
6726  va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[2]);
6727 
6728 #ifdef MAP_ISO_DEBUG
6729  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 136 << std::endl;
6730  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 136 << std::endl;
6731  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 136 << std::endl;
6732 #endif
6733 }
6734 
6735 template<>
6736 void AddLinesAndFaces<137>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6737 {
6738  va.AddLine(vertex_id[2],vertex_id[0]);
6739  va.AddLine(vertex_id[4],vertex_id[0]);
6740  va.AddLine(vertex_id[10],vertex_id[2]);
6741  va.AddLine(vertex_id[11],vertex_id[4]);
6742  va.AddLine(vertex_id[11],vertex_id[10]);
6743  va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[0]);
6744 
6745 #ifdef MAP_ISO_DEBUG
6746  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 137 << std::endl;
6747  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 137 << std::endl;
6748  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 137 << std::endl;
6749 #endif
6750  va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[4]);
6751 
6752 #ifdef MAP_ISO_DEBUG
6753  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 137 << std::endl;
6754  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 137 << std::endl;
6755  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 137 << std::endl;
6756 #endif
6757  va.AddTriN(vertex_id[2],vertex_id[10],vertex_id[11]);
6758 
6759 #ifdef MAP_ISO_DEBUG
6760  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 137 << std::endl;
6761  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 137 << std::endl;
6762  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 137 << std::endl;
6763 #endif
6764 }
6765 
6766 template<>
6767 void AddLinesAndFaces<138>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6768 {
6769  va.AddLine(vertex_id[1],vertex_id[0]);
6770  va.AddLine(vertex_id[2],vertex_id[0]);
6771  va.AddLine(vertex_id[2],vertex_id[1]);
6772  va.AddLine(vertex_id[3],vertex_id[0]);
6773  va.AddLine(vertex_id[3],vertex_id[1]);
6774  va.AddLine(vertex_id[3],vertex_id[2]);
6775  va.AddLine(vertex_id[5],vertex_id[0]);
6776  va.AddLine(vertex_id[5],vertex_id[1]);
6777  va.AddLine(vertex_id[10],vertex_id[2]);
6778  va.AddLine(vertex_id[11],vertex_id[3]);
6779  va.AddLine(vertex_id[11],vertex_id[10]);
6780  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
6781 
6782 #ifdef MAP_ISO_DEBUG
6783  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 138 << std::endl;
6784  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 138 << std::endl;
6785  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 138 << std::endl;
6786 #endif
6787  va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[5]);
6788 
6789 #ifdef MAP_ISO_DEBUG
6790  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 138 << std::endl;
6791  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 138 << std::endl;
6792  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 138 << std::endl;
6793 #endif
6794  va.AddTriN(vertex_id[1],vertex_id[3],vertex_id[0]);
6795 
6796 #ifdef MAP_ISO_DEBUG
6797  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 138 << std::endl;
6798  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 138 << std::endl;
6799  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 138 << std::endl;
6800 #endif
6801  va.AddTriN(vertex_id[11],vertex_id[2],vertex_id[10]);
6802 
6803 #ifdef MAP_ISO_DEBUG
6804  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 138 << std::endl;
6805  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 138 << std::endl;
6806  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 138 << std::endl;
6807 #endif
6808  va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[2]);
6809 
6810 #ifdef MAP_ISO_DEBUG
6811  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 138 << std::endl;
6812  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 138 << std::endl;
6813  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 138 << std::endl;
6814 #endif
6815 }
6816 
6817 template<>
6818 void AddLinesAndFaces<139>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6819 {
6820  va.AddLine(vertex_id[2],vertex_id[1]);
6821  va.AddLine(vertex_id[5],vertex_id[1]);
6822  va.AddLine(vertex_id[5],vertex_id[4]);
6823  va.AddLine(vertex_id[10],vertex_id[2]);
6824  va.AddLine(vertex_id[11],vertex_id[4]);
6825  va.AddLine(vertex_id[11],vertex_id[10]);
6826  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[1]);
6827 
6828 #ifdef MAP_ISO_DEBUG
6829  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 139 << std::endl;
6830  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 139 << std::endl;
6831  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 139 << std::endl;
6832 #endif
6833  va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[5]);
6834 
6835 #ifdef MAP_ISO_DEBUG
6836  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 139 << std::endl;
6837  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 139 << std::endl;
6838  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 139 << std::endl;
6839 #endif
6840  va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[4]);
6841 
6842 #ifdef MAP_ISO_DEBUG
6843  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 139 << std::endl;
6844  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 139 << std::endl;
6845  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 139 << std::endl;
6846 #endif
6847  va.AddTriN(vertex_id[2],vertex_id[10],vertex_id[11]);
6848 
6849 #ifdef MAP_ISO_DEBUG
6850  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 139 << std::endl;
6851  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 139 << std::endl;
6852  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 139 << std::endl;
6853 #endif
6854 }
6855 
6856 template<>
6857 void AddLinesAndFaces<140>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6858 {
6859  va.AddLine(vertex_id[3],vertex_id[1]);
6860  va.AddLine(vertex_id[6],vertex_id[1]);
6861  va.AddLine(vertex_id[10],vertex_id[6]);
6862  va.AddLine(vertex_id[11],vertex_id[3]);
6863  va.AddLine(vertex_id[11],vertex_id[10]);
6864  va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[10]);
6865 
6866 #ifdef MAP_ISO_DEBUG
6867  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 140 << std::endl;
6868  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 140 << std::endl;
6869  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 140 << std::endl;
6870 #endif
6871  va.AddTriN(vertex_id[11],vertex_id[1],vertex_id[6]);
6872 
6873 #ifdef MAP_ISO_DEBUG
6874  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 140 << std::endl;
6875  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 140 << std::endl;
6876  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 140 << std::endl;
6877 #endif
6878  va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[1]);
6879 
6880 #ifdef MAP_ISO_DEBUG
6881  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 140 << std::endl;
6882  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 140 << std::endl;
6883  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 140 << std::endl;
6884 #endif
6885 }
6886 
6887 template<>
6888 void AddLinesAndFaces<141>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6889 {
6890  va.AddLine(vertex_id[1],vertex_id[0]);
6891  va.AddLine(vertex_id[4],vertex_id[0]);
6892  va.AddLine(vertex_id[6],vertex_id[1]);
6893  va.AddLine(vertex_id[10],vertex_id[6]);
6894  va.AddLine(vertex_id[11],vertex_id[4]);
6895  va.AddLine(vertex_id[11],vertex_id[10]);
6896  va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[0]);
6897 
6898 #ifdef MAP_ISO_DEBUG
6899  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 141 << std::endl;
6900  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 141 << std::endl;
6901  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 141 << std::endl;
6902 #endif
6903  va.AddTriN(vertex_id[1],vertex_id[11],vertex_id[4]);
6904 
6905 #ifdef MAP_ISO_DEBUG
6906  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 141 << std::endl;
6907  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 141 << std::endl;
6908  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 141 << std::endl;
6909 #endif
6910  va.AddTriN(vertex_id[1],vertex_id[10],vertex_id[11]);
6911 
6912 #ifdef MAP_ISO_DEBUG
6913  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 141 << std::endl;
6914  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 141 << std::endl;
6915  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 141 << std::endl;
6916 #endif
6917  va.AddTriN(vertex_id[1],vertex_id[6],vertex_id[10]);
6918 
6919 #ifdef MAP_ISO_DEBUG
6920  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 141 << std::endl;
6921  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 141 << std::endl;
6922  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 141 << std::endl;
6923 #endif
6924 }
6925 
6926 template<>
6927 void AddLinesAndFaces<142>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6928 {
6929  va.AddLine(vertex_id[3],vertex_id[0]);
6930  va.AddLine(vertex_id[5],vertex_id[0]);
6931  va.AddLine(vertex_id[6],vertex_id[5]);
6932  va.AddLine(vertex_id[10],vertex_id[6]);
6933  va.AddLine(vertex_id[11],vertex_id[3]);
6934  va.AddLine(vertex_id[11],vertex_id[10]);
6935  va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[10]);
6936 
6937 #ifdef MAP_ISO_DEBUG
6938  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 142 << std::endl;
6939  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 142 << std::endl;
6940  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 142 << std::endl;
6941 #endif
6942  va.AddTriN(vertex_id[11],vertex_id[5],vertex_id[6]);
6943 
6944 #ifdef MAP_ISO_DEBUG
6945  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 142 << std::endl;
6946  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 142 << std::endl;
6947  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 142 << std::endl;
6948 #endif
6949  va.AddTriN(vertex_id[11],vertex_id[0],vertex_id[5]);
6950 
6951 #ifdef MAP_ISO_DEBUG
6952  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 142 << std::endl;
6953  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 142 << std::endl;
6954  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 142 << std::endl;
6955 #endif
6956  va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[0]);
6957 
6958 #ifdef MAP_ISO_DEBUG
6959  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 142 << std::endl;
6960  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 142 << std::endl;
6961  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 142 << std::endl;
6962 #endif
6963 }
6964 
6965 template<>
6966 void AddLinesAndFaces<143>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6967 {
6968  va.AddLine(vertex_id[5],vertex_id[4]);
6969  va.AddLine(vertex_id[6],vertex_id[5]);
6970  va.AddLine(vertex_id[10],vertex_id[6]);
6971  va.AddLine(vertex_id[11],vertex_id[4]);
6972  va.AddLine(vertex_id[11],vertex_id[10]);
6973  va.AddTriN(vertex_id[5],vertex_id[11],vertex_id[4]);
6974 
6975 #ifdef MAP_ISO_DEBUG
6976  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 143 << std::endl;
6977  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 143 << std::endl;
6978  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 143 << std::endl;
6979 #endif
6980  va.AddTriN(vertex_id[5],vertex_id[10],vertex_id[11]);
6981 
6982 #ifdef MAP_ISO_DEBUG
6983  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 143 << std::endl;
6984  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 143 << std::endl;
6985  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 143 << std::endl;
6986 #endif
6987  va.AddTriN(vertex_id[5],vertex_id[6],vertex_id[10]);
6988 
6989 #ifdef MAP_ISO_DEBUG
6990  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 143 << std::endl;
6991  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 143 << std::endl;
6992  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 143 << std::endl;
6993 #endif
6994 }
6995 
6996 template<>
6997 void AddLinesAndFaces<144>(IndexedVertexArray& va,unsigned int vertex_id[12] )
6998 {
6999  va.AddLine(vertex_id[7],vertex_id[4]);
7000  va.AddLine(vertex_id[8],vertex_id[4]);
7001  va.AddLine(vertex_id[10],vertex_id[7]);
7002  va.AddLine(vertex_id[10],vertex_id[8]);
7003  va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[4]);
7004 
7005 #ifdef MAP_ISO_DEBUG
7006  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 144 << std::endl;
7007  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 144 << std::endl;
7008  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 144 << std::endl;
7009 #endif
7010  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[8]);
7011 
7012 #ifdef MAP_ISO_DEBUG
7013  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 144 << std::endl;
7014  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 144 << std::endl;
7015  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 144 << std::endl;
7016 #endif
7017 }
7018 
7019 template<>
7020 void AddLinesAndFaces<145>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7021 {
7022  va.AddLine(vertex_id[3],vertex_id[0]);
7023  va.AddLine(vertex_id[7],vertex_id[3]);
7024  va.AddLine(vertex_id[8],vertex_id[0]);
7025  va.AddLine(vertex_id[10],vertex_id[7]);
7026  va.AddLine(vertex_id[10],vertex_id[8]);
7027  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
7028 
7029 #ifdef MAP_ISO_DEBUG
7030  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 145 << std::endl;
7031  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 145 << std::endl;
7032  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 145 << std::endl;
7033 #endif
7034  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[8]);
7035 
7036 #ifdef MAP_ISO_DEBUG
7037  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 145 << std::endl;
7038  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 145 << std::endl;
7039  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 145 << std::endl;
7040 #endif
7041  va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[10]);
7042 
7043 #ifdef MAP_ISO_DEBUG
7044  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 145 << std::endl;
7045  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 145 << std::endl;
7046  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 145 << std::endl;
7047 #endif
7048 }
7049 
7050 template<>
7051 void AddLinesAndFaces<146>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7052 {
7053  va.AddLine(vertex_id[1],vertex_id[0]);
7054  va.AddLine(vertex_id[4],vertex_id[0]);
7055  va.AddLine(vertex_id[5],vertex_id[0]);
7056  va.AddLine(vertex_id[5],vertex_id[1]);
7057  va.AddLine(vertex_id[5],vertex_id[4]);
7058  va.AddLine(vertex_id[7],vertex_id[4]);
7059  va.AddLine(vertex_id[8],vertex_id[0]);
7060  va.AddLine(vertex_id[8],vertex_id[4]);
7061  va.AddLine(vertex_id[8],vertex_id[5]);
7062  va.AddLine(vertex_id[10],vertex_id[7]);
7063  va.AddLine(vertex_id[10],vertex_id[8]);
7064  va.AddTriN(vertex_id[5],vertex_id[10],vertex_id[8]);
7065 
7066 #ifdef MAP_ISO_DEBUG
7067  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
7068  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 146 << std::endl;
7069  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 146 << std::endl;
7070 #endif
7071  va.AddTriN(vertex_id[5],vertex_id[7],vertex_id[10]);
7072 
7073 #ifdef MAP_ISO_DEBUG
7074  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
7075  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 146 << std::endl;
7076  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 146 << std::endl;
7077 #endif
7078  va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[7]);
7079 
7080 #ifdef MAP_ISO_DEBUG
7081  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
7082  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 146 << std::endl;
7083  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 146 << std::endl;
7084 #endif
7085  va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[4]);
7086 
7087 #ifdef MAP_ISO_DEBUG
7088  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
7089  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 146 << std::endl;
7090  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 146 << std::endl;
7091 #endif
7092  va.AddTriN(vertex_id[5],vertex_id[0],vertex_id[8]);
7093 
7094 #ifdef MAP_ISO_DEBUG
7095  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
7096  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 146 << std::endl;
7097  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 146 << std::endl;
7098 #endif
7099  va.AddTriN(vertex_id[5],vertex_id[5],vertex_id[0]);
7100 
7101 #ifdef MAP_ISO_DEBUG
7102  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
7103  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
7104  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 146 << std::endl;
7105 #endif
7106  va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[5]);
7107 
7108 #ifdef MAP_ISO_DEBUG
7109  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
7110  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 146 << std::endl;
7111  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
7112 #endif
7113  va.AddTriN(vertex_id[5],vertex_id[0],vertex_id[4]);
7114 
7115 #ifdef MAP_ISO_DEBUG
7116  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
7117  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 146 << std::endl;
7118  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 146 << std::endl;
7119 #endif
7120  va.AddTriN(vertex_id[5],vertex_id[1],vertex_id[0]);
7121 
7122 #ifdef MAP_ISO_DEBUG
7123  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 146 << std::endl;
7124  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 146 << std::endl;
7125  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 146 << std::endl;
7126 #endif
7127 }
7128 
7129 template<>
7130 void AddLinesAndFaces<147>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7131 {
7132  va.AddLine(vertex_id[3],vertex_id[1]);
7133  va.AddLine(vertex_id[5],vertex_id[1]);
7134  va.AddLine(vertex_id[7],vertex_id[3]);
7135  va.AddLine(vertex_id[8],vertex_id[5]);
7136  va.AddLine(vertex_id[10],vertex_id[7]);
7137  va.AddLine(vertex_id[10],vertex_id[8]);
7138  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
7139 
7140 #ifdef MAP_ISO_DEBUG
7141  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 147 << std::endl;
7142  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 147 << std::endl;
7143  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 147 << std::endl;
7144 #endif
7145  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
7146 
7147 #ifdef MAP_ISO_DEBUG
7148  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 147 << std::endl;
7149  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 147 << std::endl;
7150  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 147 << std::endl;
7151 #endif
7152  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[8]);
7153 
7154 #ifdef MAP_ISO_DEBUG
7155  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 147 << std::endl;
7156  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 147 << std::endl;
7157  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 147 << std::endl;
7158 #endif
7159  va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[10]);
7160 
7161 #ifdef MAP_ISO_DEBUG
7162  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 147 << std::endl;
7163  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 147 << std::endl;
7164  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 147 << std::endl;
7165 #endif
7166 }
7167 
7168 template<>
7169 void AddLinesAndFaces<148>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7170 {
7171  va.AddLine(vertex_id[2],vertex_id[1]);
7172  va.AddLine(vertex_id[6],vertex_id[1]);
7173  va.AddLine(vertex_id[6],vertex_id[2]);
7174  va.AddLine(vertex_id[7],vertex_id[2]);
7175  va.AddLine(vertex_id[7],vertex_id[4]);
7176  va.AddLine(vertex_id[7],vertex_id[6]);
7177  va.AddLine(vertex_id[8],vertex_id[4]);
7178  va.AddLine(vertex_id[10],vertex_id[2]);
7179  va.AddLine(vertex_id[10],vertex_id[6]);
7180  va.AddLine(vertex_id[10],vertex_id[7]);
7181  va.AddLine(vertex_id[10],vertex_id[8]);
7182  va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[1]);
7183 
7184 #ifdef MAP_ISO_DEBUG
7185  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 148 << std::endl;
7186  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 148 << std::endl;
7187  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 148 << std::endl;
7188 #endif
7189  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
7190 
7191 #ifdef MAP_ISO_DEBUG
7192  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 148 << std::endl;
7193  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 148 << std::endl;
7194  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 148 << std::endl;
7195 #endif
7196  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
7197 
7198 #ifdef MAP_ISO_DEBUG
7199  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 148 << std::endl;
7200  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 148 << std::endl;
7201  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 148 << std::endl;
7202 #endif
7203  va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[4]);
7204 
7205 #ifdef MAP_ISO_DEBUG
7206  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 148 << std::endl;
7207  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 148 << std::endl;
7208  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 148 << std::endl;
7209 #endif
7210  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[8]);
7211 
7212 #ifdef MAP_ISO_DEBUG
7213  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 148 << std::endl;
7214  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 148 << std::endl;
7215  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 148 << std::endl;
7216 #endif
7217 }
7218 
7219 template<>
7220 void AddLinesAndFaces<149>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7221 {
7222  va.AddLine(vertex_id[1],vertex_id[0]);
7223  va.AddLine(vertex_id[2],vertex_id[0]);
7224  va.AddLine(vertex_id[2],vertex_id[1]);
7225  va.AddLine(vertex_id[3],vertex_id[0]);
7226  va.AddLine(vertex_id[3],vertex_id[1]);
7227  va.AddLine(vertex_id[3],vertex_id[2]);
7228  va.AddLine(vertex_id[6],vertex_id[1]);
7229  va.AddLine(vertex_id[6],vertex_id[2]);
7230  va.AddLine(vertex_id[7],vertex_id[2]);
7231  va.AddLine(vertex_id[7],vertex_id[3]);
7232  va.AddLine(vertex_id[7],vertex_id[6]);
7233  va.AddLine(vertex_id[8],vertex_id[0]);
7234  va.AddLine(vertex_id[10],vertex_id[2]);
7235  va.AddLine(vertex_id[10],vertex_id[6]);
7236  va.AddLine(vertex_id[10],vertex_id[7]);
7237  va.AddLine(vertex_id[10],vertex_id[8]);
7238  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
7239 
7240 #ifdef MAP_ISO_DEBUG
7241  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 149 << std::endl;
7242  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 149 << std::endl;
7243  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 149 << std::endl;
7244 #endif
7245  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
7246 
7247 #ifdef MAP_ISO_DEBUG
7248  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 149 << std::endl;
7249  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 149 << std::endl;
7250  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 149 << std::endl;
7251 #endif
7252  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[8]);
7253 
7254 #ifdef MAP_ISO_DEBUG
7255  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 149 << std::endl;
7256  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 149 << std::endl;
7257  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 149 << std::endl;
7258 #endif
7259  va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[10]);
7260 
7261 #ifdef MAP_ISO_DEBUG
7262  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 149 << std::endl;
7263  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 149 << std::endl;
7264  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 149 << std::endl;
7265 #endif
7266  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[1]);
7267 
7268 #ifdef MAP_ISO_DEBUG
7269  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 149 << std::endl;
7270  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 149 << std::endl;
7271  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 149 << std::endl;
7272 #endif
7273  va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[6]);
7274 
7275 #ifdef MAP_ISO_DEBUG
7276  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 149 << std::endl;
7277  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 149 << std::endl;
7278  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 149 << std::endl;
7279 #endif
7280  va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[2]);
7281 
7282 #ifdef MAP_ISO_DEBUG
7283  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 149 << std::endl;
7284  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 149 << std::endl;
7285  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 149 << std::endl;
7286 #endif
7287  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[6]);
7288 
7289 #ifdef MAP_ISO_DEBUG
7290  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 149 << std::endl;
7291  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 149 << std::endl;
7292  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 149 << std::endl;
7293 #endif
7294 }
7295 
7296 template<>
7297 void AddLinesAndFaces<150>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7298 {
7299  va.AddLine(vertex_id[2],vertex_id[0]);
7300  va.AddLine(vertex_id[4],vertex_id[0]);
7301  va.AddLine(vertex_id[5],vertex_id[0]);
7302  va.AddLine(vertex_id[5],vertex_id[4]);
7303  va.AddLine(vertex_id[6],vertex_id[2]);
7304  va.AddLine(vertex_id[6],vertex_id[5]);
7305  va.AddLine(vertex_id[7],vertex_id[2]);
7306  va.AddLine(vertex_id[7],vertex_id[4]);
7307  va.AddLine(vertex_id[7],vertex_id[6]);
7308  va.AddLine(vertex_id[8],vertex_id[0]);
7309  va.AddLine(vertex_id[8],vertex_id[4]);
7310  va.AddLine(vertex_id[8],vertex_id[5]);
7311  va.AddLine(vertex_id[10],vertex_id[2]);
7312  va.AddLine(vertex_id[10],vertex_id[6]);
7313  va.AddLine(vertex_id[10],vertex_id[7]);
7314  va.AddLine(vertex_id[10],vertex_id[8]);
7315  va.AddTriN(vertex_id[7],vertex_id[8],vertex_id[4]);
7316 
7317 #ifdef MAP_ISO_DEBUG
7318  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 150 << std::endl;
7319  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 150 << std::endl;
7320  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 150 << std::endl;
7321 #endif
7322  va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[8]);
7323 
7324 #ifdef MAP_ISO_DEBUG
7325  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 150 << std::endl;
7326  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 150 << std::endl;
7327  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 150 << std::endl;
7328 #endif
7329  va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[0]);
7330 
7331 #ifdef MAP_ISO_DEBUG
7332  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 150 << std::endl;
7333  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 150 << std::endl;
7334  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 150 << std::endl;
7335 #endif
7336  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[5]);
7337 
7338 #ifdef MAP_ISO_DEBUG
7339  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 150 << std::endl;
7340  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 150 << std::endl;
7341  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 150 << std::endl;
7342 #endif
7343  va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[4]);
7344 
7345 #ifdef MAP_ISO_DEBUG
7346  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 150 << std::endl;
7347  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 150 << std::endl;
7348  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 150 << std::endl;
7349 #endif
7350  va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[0]);
7351 
7352 #ifdef MAP_ISO_DEBUG
7353  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 150 << std::endl;
7354  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 150 << std::endl;
7355  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 150 << std::endl;
7356 #endif
7357  va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[2]);
7358 
7359 #ifdef MAP_ISO_DEBUG
7360  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 150 << std::endl;
7361  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 150 << std::endl;
7362  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 150 << std::endl;
7363 #endif
7364  va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[5]);
7365 
7366 #ifdef MAP_ISO_DEBUG
7367  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 150 << std::endl;
7368  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 150 << std::endl;
7369  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 150 << std::endl;
7370 #endif
7371  va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[8]);
7372 
7373 #ifdef MAP_ISO_DEBUG
7374  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 150 << std::endl;
7375  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 150 << std::endl;
7376  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 150 << std::endl;
7377 #endif
7378  va.AddTriN(vertex_id[6],vertex_id[7],vertex_id[10]);
7379 
7380 #ifdef MAP_ISO_DEBUG
7381  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 150 << std::endl;
7382  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 150 << std::endl;
7383  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 150 << std::endl;
7384 #endif
7385 }
7386 
7387 template<>
7388 void AddLinesAndFaces<151>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7389 {
7390  va.AddLine(vertex_id[3],vertex_id[2]);
7391  va.AddLine(vertex_id[6],vertex_id[2]);
7392  va.AddLine(vertex_id[6],vertex_id[5]);
7393  va.AddLine(vertex_id[7],vertex_id[2]);
7394  va.AddLine(vertex_id[7],vertex_id[3]);
7395  va.AddLine(vertex_id[7],vertex_id[6]);
7396  va.AddLine(vertex_id[8],vertex_id[5]);
7397  va.AddLine(vertex_id[10],vertex_id[2]);
7398  va.AddLine(vertex_id[10],vertex_id[6]);
7399  va.AddLine(vertex_id[10],vertex_id[7]);
7400  va.AddLine(vertex_id[10],vertex_id[8]);
7401  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
7402 
7403 #ifdef MAP_ISO_DEBUG
7404  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 151 << std::endl;
7405  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 151 << std::endl;
7406  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 151 << std::endl;
7407 #endif
7408  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[6]);
7409 
7410 #ifdef MAP_ISO_DEBUG
7411  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 151 << std::endl;
7412  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 151 << std::endl;
7413  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 151 << std::endl;
7414 #endif
7415  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
7416 
7417 #ifdef MAP_ISO_DEBUG
7418  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 151 << std::endl;
7419  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 151 << std::endl;
7420  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 151 << std::endl;
7421 #endif
7422  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[8]);
7423 
7424 #ifdef MAP_ISO_DEBUG
7425  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 151 << std::endl;
7426  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 151 << std::endl;
7427  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 151 << std::endl;
7428 #endif
7429  va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[10]);
7430 
7431 #ifdef MAP_ISO_DEBUG
7432  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 151 << std::endl;
7433  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 151 << std::endl;
7434  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 151 << std::endl;
7435 #endif
7436  va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[2]);
7437 
7438 #ifdef MAP_ISO_DEBUG
7439  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 151 << std::endl;
7440  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 151 << std::endl;
7441  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 151 << std::endl;
7442 #endif
7443  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[6]);
7444 
7445 #ifdef MAP_ISO_DEBUG
7446  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 151 << std::endl;
7447  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 151 << std::endl;
7448  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 151 << std::endl;
7449 #endif
7450 }
7451 
7452 template<>
7453 void AddLinesAndFaces<152>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7454 {
7455  va.AddLine(vertex_id[3],vertex_id[2]);
7456  va.AddLine(vertex_id[4],vertex_id[3]);
7457  va.AddLine(vertex_id[8],vertex_id[4]);
7458  va.AddLine(vertex_id[10],vertex_id[2]);
7459  va.AddLine(vertex_id[10],vertex_id[8]);
7460  va.AddTriN(vertex_id[4],vertex_id[10],vertex_id[8]);
7461 
7462 #ifdef MAP_ISO_DEBUG
7463  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 152 << std::endl;
7464  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 152 << std::endl;
7465  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 152 << std::endl;
7466 #endif
7467  va.AddTriN(vertex_id[4],vertex_id[2],vertex_id[10]);
7468 
7469 #ifdef MAP_ISO_DEBUG
7470  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 152 << std::endl;
7471  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 152 << std::endl;
7472  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 152 << std::endl;
7473 #endif
7474  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[2]);
7475 
7476 #ifdef MAP_ISO_DEBUG
7477  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 152 << std::endl;
7478  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 152 << std::endl;
7479  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 152 << std::endl;
7480 #endif
7481 }
7482 
7483 template<>
7484 void AddLinesAndFaces<153>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7485 {
7486  va.AddLine(vertex_id[2],vertex_id[0]);
7487  va.AddLine(vertex_id[8],vertex_id[0]);
7488  va.AddLine(vertex_id[10],vertex_id[2]);
7489  va.AddLine(vertex_id[10],vertex_id[8]);
7490  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[0]);
7491 
7492 #ifdef MAP_ISO_DEBUG
7493  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 153 << std::endl;
7494  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 153 << std::endl;
7495  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 153 << std::endl;
7496 #endif
7497  va.AddTriN(vertex_id[2],vertex_id[10],vertex_id[8]);
7498 
7499 #ifdef MAP_ISO_DEBUG
7500  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 153 << std::endl;
7501  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 153 << std::endl;
7502  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 153 << std::endl;
7503 #endif
7504 }
7505 
7506 template<>
7507 void AddLinesAndFaces<154>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7508 {
7509  va.AddLine(vertex_id[1],vertex_id[0]);
7510  va.AddLine(vertex_id[2],vertex_id[0]);
7511  va.AddLine(vertex_id[2],vertex_id[1]);
7512  va.AddLine(vertex_id[3],vertex_id[0]);
7513  va.AddLine(vertex_id[3],vertex_id[1]);
7514  va.AddLine(vertex_id[3],vertex_id[2]);
7515  va.AddLine(vertex_id[4],vertex_id[0]);
7516  va.AddLine(vertex_id[4],vertex_id[3]);
7517  va.AddLine(vertex_id[5],vertex_id[0]);
7518  va.AddLine(vertex_id[5],vertex_id[1]);
7519  va.AddLine(vertex_id[5],vertex_id[4]);
7520  va.AddLine(vertex_id[8],vertex_id[0]);
7521  va.AddLine(vertex_id[8],vertex_id[4]);
7522  va.AddLine(vertex_id[8],vertex_id[5]);
7523  va.AddLine(vertex_id[10],vertex_id[2]);
7524  va.AddLine(vertex_id[10],vertex_id[8]);
7525  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
7526 
7527 #ifdef MAP_ISO_DEBUG
7528  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 154 << std::endl;
7529  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
7530  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 154 << std::endl;
7531 #endif
7532  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
7533 
7534 #ifdef MAP_ISO_DEBUG
7535  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 154 << std::endl;
7536  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 154 << std::endl;
7537  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 154 << std::endl;
7538 #endif
7539  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[10]);
7540 
7541 #ifdef MAP_ISO_DEBUG
7542  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
7543  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 154 << std::endl;
7544  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 154 << std::endl;
7545 #endif
7546  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[8]);
7547 
7548 #ifdef MAP_ISO_DEBUG
7549  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
7550  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 154 << std::endl;
7551  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 154 << std::endl;
7552 #endif
7553  va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[5]);
7554 
7555 #ifdef MAP_ISO_DEBUG
7556  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
7557  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 154 << std::endl;
7558  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 154 << std::endl;
7559 #endif
7560  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[4]);
7561 
7562 #ifdef MAP_ISO_DEBUG
7563  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
7564  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 154 << std::endl;
7565  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 154 << std::endl;
7566 #endif
7567  va.AddTriN(vertex_id[2],vertex_id[0],vertex_id[8]);
7568 
7569 #ifdef MAP_ISO_DEBUG
7570  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
7571  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 154 << std::endl;
7572  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 154 << std::endl;
7573 #endif
7574  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[0]);
7575 
7576 #ifdef MAP_ISO_DEBUG
7577  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
7578  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 154 << std::endl;
7579  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 154 << std::endl;
7580 #endif
7581  va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[5]);
7582 
7583 #ifdef MAP_ISO_DEBUG
7584  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
7585  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 154 << std::endl;
7586  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 154 << std::endl;
7587 #endif
7588  va.AddTriN(vertex_id[2],vertex_id[3],vertex_id[1]);
7589 
7590 #ifdef MAP_ISO_DEBUG
7591  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 154 << std::endl;
7592  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 154 << std::endl;
7593  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 154 << std::endl;
7594 #endif
7595 }
7596 
7597 template<>
7598 void AddLinesAndFaces<155>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7599 {
7600  va.AddLine(vertex_id[2],vertex_id[1]);
7601  va.AddLine(vertex_id[5],vertex_id[1]);
7602  va.AddLine(vertex_id[8],vertex_id[5]);
7603  va.AddLine(vertex_id[10],vertex_id[2]);
7604  va.AddLine(vertex_id[10],vertex_id[8]);
7605  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[1]);
7606 
7607 #ifdef MAP_ISO_DEBUG
7608  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 155 << std::endl;
7609  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 155 << std::endl;
7610  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 155 << std::endl;
7611 #endif
7612  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[5]);
7613 
7614 #ifdef MAP_ISO_DEBUG
7615  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 155 << std::endl;
7616  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 155 << std::endl;
7617  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 155 << std::endl;
7618 #endif
7619  va.AddTriN(vertex_id[2],vertex_id[10],vertex_id[8]);
7620 
7621 #ifdef MAP_ISO_DEBUG
7622  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 155 << std::endl;
7623  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 155 << std::endl;
7624  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 155 << std::endl;
7625 #endif
7626 }
7627 
7628 template<>
7629 void AddLinesAndFaces<156>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7630 {
7631  va.AddLine(vertex_id[3],vertex_id[1]);
7632  va.AddLine(vertex_id[4],vertex_id[3]);
7633  va.AddLine(vertex_id[6],vertex_id[1]);
7634  va.AddLine(vertex_id[8],vertex_id[4]);
7635  va.AddLine(vertex_id[10],vertex_id[6]);
7636  va.AddLine(vertex_id[10],vertex_id[8]);
7637  va.AddTriN(vertex_id[4],vertex_id[10],vertex_id[8]);
7638 
7639 #ifdef MAP_ISO_DEBUG
7640  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 156 << std::endl;
7641  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 156 << std::endl;
7642  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 156 << std::endl;
7643 #endif
7644  va.AddTriN(vertex_id[4],vertex_id[6],vertex_id[10]);
7645 
7646 #ifdef MAP_ISO_DEBUG
7647  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 156 << std::endl;
7648  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 156 << std::endl;
7649  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 156 << std::endl;
7650 #endif
7651  va.AddTriN(vertex_id[4],vertex_id[1],vertex_id[6]);
7652 
7653 #ifdef MAP_ISO_DEBUG
7654  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 156 << std::endl;
7655  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 156 << std::endl;
7656  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 156 << std::endl;
7657 #endif
7658  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[1]);
7659 
7660 #ifdef MAP_ISO_DEBUG
7661  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 156 << std::endl;
7662  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 156 << std::endl;
7663  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 156 << std::endl;
7664 #endif
7665 }
7666 
7667 template<>
7668 void AddLinesAndFaces<157>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7669 {
7670  va.AddLine(vertex_id[1],vertex_id[0]);
7671  va.AddLine(vertex_id[6],vertex_id[1]);
7672  va.AddLine(vertex_id[8],vertex_id[0]);
7673  va.AddLine(vertex_id[10],vertex_id[6]);
7674  va.AddLine(vertex_id[10],vertex_id[8]);
7675  va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[0]);
7676 
7677 #ifdef MAP_ISO_DEBUG
7678  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 157 << std::endl;
7679  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 157 << std::endl;
7680  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 157 << std::endl;
7681 #endif
7682  va.AddTriN(vertex_id[1],vertex_id[10],vertex_id[8]);
7683 
7684 #ifdef MAP_ISO_DEBUG
7685  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 157 << std::endl;
7686  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 157 << std::endl;
7687  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 157 << std::endl;
7688 #endif
7689  va.AddTriN(vertex_id[1],vertex_id[6],vertex_id[10]);
7690 
7691 #ifdef MAP_ISO_DEBUG
7692  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 157 << std::endl;
7693  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 157 << std::endl;
7694  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 157 << std::endl;
7695 #endif
7696 }
7697 
7698 template<>
7699 void AddLinesAndFaces<158>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7700 {
7701  va.AddLine(vertex_id[3],vertex_id[0]);
7702  va.AddLine(vertex_id[4],vertex_id[0]);
7703  va.AddLine(vertex_id[4],vertex_id[3]);
7704  va.AddLine(vertex_id[5],vertex_id[0]);
7705  va.AddLine(vertex_id[5],vertex_id[4]);
7706  va.AddLine(vertex_id[6],vertex_id[5]);
7707  va.AddLine(vertex_id[8],vertex_id[0]);
7708  va.AddLine(vertex_id[8],vertex_id[4]);
7709  va.AddLine(vertex_id[8],vertex_id[5]);
7710  va.AddLine(vertex_id[10],vertex_id[6]);
7711  va.AddLine(vertex_id[10],vertex_id[8]);
7712  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
7713 
7714 #ifdef MAP_ISO_DEBUG
7715  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 158 << std::endl;
7716  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 158 << std::endl;
7717  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 158 << std::endl;
7718 #endif
7719  va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[0]);
7720 
7721 #ifdef MAP_ISO_DEBUG
7722  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 158 << std::endl;
7723  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 158 << std::endl;
7724  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 158 << std::endl;
7725 #endif
7726  va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[8]);
7727 
7728 #ifdef MAP_ISO_DEBUG
7729  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 158 << std::endl;
7730  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 158 << std::endl;
7731  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 158 << std::endl;
7732 #endif
7733  va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[5]);
7734 
7735 #ifdef MAP_ISO_DEBUG
7736  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 158 << std::endl;
7737  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 158 << std::endl;
7738  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 158 << std::endl;
7739 #endif
7740  va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[8]);
7741 
7742 #ifdef MAP_ISO_DEBUG
7743  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 158 << std::endl;
7744  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 158 << std::endl;
7745  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 158 << std::endl;
7746 #endif
7747 }
7748 
7749 template<>
7750 void AddLinesAndFaces<159>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7751 {
7752  va.AddLine(vertex_id[6],vertex_id[5]);
7753  va.AddLine(vertex_id[8],vertex_id[5]);
7754  va.AddLine(vertex_id[10],vertex_id[6]);
7755  va.AddLine(vertex_id[10],vertex_id[8]);
7756  va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[5]);
7757 
7758 #ifdef MAP_ISO_DEBUG
7759  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 159 << std::endl;
7760  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 159 << std::endl;
7761  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 159 << std::endl;
7762 #endif
7763  va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[8]);
7764 
7765 #ifdef MAP_ISO_DEBUG
7766  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 159 << std::endl;
7767  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 159 << std::endl;
7768  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 159 << std::endl;
7769 #endif
7770 }
7771 
7772 template<>
7773 void AddLinesAndFaces<160>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7774 {
7775  va.AddLine(vertex_id[8],vertex_id[5]);
7776  va.AddLine(vertex_id[9],vertex_id[5]);
7777  va.AddLine(vertex_id[9],vertex_id[8]);
7778  va.AddLine(vertex_id[10],vertex_id[7]);
7779  va.AddLine(vertex_id[10],vertex_id[8]);
7780  va.AddLine(vertex_id[10],vertex_id[9]);
7781  va.AddLine(vertex_id[11],vertex_id[7]);
7782  va.AddLine(vertex_id[11],vertex_id[8]);
7783  va.AddLine(vertex_id[11],vertex_id[9]);
7784  va.AddLine(vertex_id[11],vertex_id[10]);
7785  va.AddTriN(vertex_id[8],vertex_id[9],vertex_id[5]);
7786 
7787 #ifdef MAP_ISO_DEBUG
7788  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 160 << std::endl;
7789  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 160 << std::endl;
7790  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 160 << std::endl;
7791 #endif
7792  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
7793 
7794 #ifdef MAP_ISO_DEBUG
7795  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 160 << std::endl;
7796  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 160 << std::endl;
7797  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 160 << std::endl;
7798 #endif
7799  va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[11]);
7800 
7801 #ifdef MAP_ISO_DEBUG
7802  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 160 << std::endl;
7803  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 160 << std::endl;
7804  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 160 << std::endl;
7805 #endif
7806  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
7807 
7808 #ifdef MAP_ISO_DEBUG
7809  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 160 << std::endl;
7810  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 160 << std::endl;
7811  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 160 << std::endl;
7812 #endif
7813 }
7814 
7815 template<>
7816 void AddLinesAndFaces<161>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7817 {
7818  va.AddLine(vertex_id[3],vertex_id[0]);
7819  va.AddLine(vertex_id[4],vertex_id[0]);
7820  va.AddLine(vertex_id[4],vertex_id[3]);
7821  va.AddLine(vertex_id[5],vertex_id[0]);
7822  va.AddLine(vertex_id[5],vertex_id[4]);
7823  va.AddLine(vertex_id[7],vertex_id[3]);
7824  va.AddLine(vertex_id[7],vertex_id[4]);
7825  va.AddLine(vertex_id[8],vertex_id[0]);
7826  va.AddLine(vertex_id[8],vertex_id[4]);
7827  va.AddLine(vertex_id[8],vertex_id[5]);
7828  va.AddLine(vertex_id[9],vertex_id[5]);
7829  va.AddLine(vertex_id[9],vertex_id[8]);
7830  va.AddLine(vertex_id[10],vertex_id[7]);
7831  va.AddLine(vertex_id[10],vertex_id[8]);
7832  va.AddLine(vertex_id[10],vertex_id[9]);
7833  va.AddLine(vertex_id[11],vertex_id[3]);
7834  va.AddLine(vertex_id[11],vertex_id[4]);
7835  va.AddLine(vertex_id[11],vertex_id[7]);
7836  va.AddLine(vertex_id[11],vertex_id[8]);
7837  va.AddLine(vertex_id[11],vertex_id[9]);
7838  va.AddLine(vertex_id[11],vertex_id[10]);
7839  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
7840 
7841 #ifdef MAP_ISO_DEBUG
7842  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 161 << std::endl;
7843  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 161 << std::endl;
7844  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 161 << std::endl;
7845 #endif
7846  va.AddTriN(vertex_id[5],vertex_id[8],vertex_id[0]);
7847 
7848 #ifdef MAP_ISO_DEBUG
7849  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 161 << std::endl;
7850  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 161 << std::endl;
7851  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 161 << std::endl;
7852 #endif
7853  va.AddTriN(vertex_id[5],vertex_id[4],vertex_id[8]);
7854 
7855 #ifdef MAP_ISO_DEBUG
7856  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 161 << std::endl;
7857  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 161 << std::endl;
7858  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 161 << std::endl;
7859 #endif
7860  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
7861 
7862 #ifdef MAP_ISO_DEBUG
7863  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 161 << std::endl;
7864  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 161 << std::endl;
7865  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 161 << std::endl;
7866 #endif
7867  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
7868 
7869 #ifdef MAP_ISO_DEBUG
7870  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 161 << std::endl;
7871  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 161 << std::endl;
7872  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 161 << std::endl;
7873 #endif
7874  va.AddTriN(vertex_id[8],vertex_id[9],vertex_id[5]);
7875 
7876 #ifdef MAP_ISO_DEBUG
7877  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 161 << std::endl;
7878  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 161 << std::endl;
7879  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 161 << std::endl;
7880 #endif
7881  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
7882 
7883 #ifdef MAP_ISO_DEBUG
7884  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 161 << std::endl;
7885  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 161 << std::endl;
7886  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 161 << std::endl;
7887 #endif
7888  va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[11]);
7889 
7890 #ifdef MAP_ISO_DEBUG
7891  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 161 << std::endl;
7892  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 161 << std::endl;
7893  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 161 << std::endl;
7894 #endif
7895  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
7896 
7897 #ifdef MAP_ISO_DEBUG
7898  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 161 << std::endl;
7899  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 161 << std::endl;
7900  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 161 << std::endl;
7901 #endif
7902 }
7903 
7904 template<>
7905 void AddLinesAndFaces<162>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7906 {
7907  va.AddLine(vertex_id[1],vertex_id[0]);
7908  va.AddLine(vertex_id[8],vertex_id[0]);
7909  va.AddLine(vertex_id[9],vertex_id[1]);
7910  va.AddLine(vertex_id[9],vertex_id[8]);
7911  va.AddLine(vertex_id[10],vertex_id[7]);
7912  va.AddLine(vertex_id[10],vertex_id[8]);
7913  va.AddLine(vertex_id[10],vertex_id[9]);
7914  va.AddLine(vertex_id[11],vertex_id[7]);
7915  va.AddLine(vertex_id[11],vertex_id[8]);
7916  va.AddLine(vertex_id[11],vertex_id[9]);
7917  va.AddLine(vertex_id[11],vertex_id[10]);
7918  va.AddTriN(vertex_id[9],vertex_id[0],vertex_id[8]);
7919 
7920 #ifdef MAP_ISO_DEBUG
7921  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 162 << std::endl;
7922  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 162 << std::endl;
7923  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 162 << std::endl;
7924 #endif
7925  va.AddTriN(vertex_id[9],vertex_id[1],vertex_id[0]);
7926 
7927 #ifdef MAP_ISO_DEBUG
7928  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 162 << std::endl;
7929  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 162 << std::endl;
7930  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 162 << std::endl;
7931 #endif
7932  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
7933 
7934 #ifdef MAP_ISO_DEBUG
7935  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 162 << std::endl;
7936  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 162 << std::endl;
7937  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 162 << std::endl;
7938 #endif
7939  va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[11]);
7940 
7941 #ifdef MAP_ISO_DEBUG
7942  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 162 << std::endl;
7943  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 162 << std::endl;
7944  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 162 << std::endl;
7945 #endif
7946  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
7947 
7948 #ifdef MAP_ISO_DEBUG
7949  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 162 << std::endl;
7950  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 162 << std::endl;
7951  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 162 << std::endl;
7952 #endif
7953 }
7954 
7955 template<>
7956 void AddLinesAndFaces<163>(IndexedVertexArray& va,unsigned int vertex_id[12] )
7957 {
7958  va.AddLine(vertex_id[3],vertex_id[1]);
7959  va.AddLine(vertex_id[4],vertex_id[3]);
7960  va.AddLine(vertex_id[7],vertex_id[3]);
7961  va.AddLine(vertex_id[7],vertex_id[4]);
7962  va.AddLine(vertex_id[8],vertex_id[4]);
7963  va.AddLine(vertex_id[9],vertex_id[1]);
7964  va.AddLine(vertex_id[9],vertex_id[8]);
7965  va.AddLine(vertex_id[10],vertex_id[7]);
7966  va.AddLine(vertex_id[10],vertex_id[8]);
7967  va.AddLine(vertex_id[10],vertex_id[9]);
7968  va.AddLine(vertex_id[11],vertex_id[3]);
7969  va.AddLine(vertex_id[11],vertex_id[4]);
7970  va.AddLine(vertex_id[11],vertex_id[7]);
7971  va.AddLine(vertex_id[11],vertex_id[8]);
7972  va.AddLine(vertex_id[11],vertex_id[9]);
7973  va.AddLine(vertex_id[11],vertex_id[10]);
7974  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
7975 
7976 #ifdef MAP_ISO_DEBUG
7977  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 163 << std::endl;
7978  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 163 << std::endl;
7979  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 163 << std::endl;
7980 #endif
7981  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[9]);
7982 
7983 #ifdef MAP_ISO_DEBUG
7984  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 163 << std::endl;
7985  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 163 << std::endl;
7986  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 163 << std::endl;
7987 #endif
7988  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
7989 
7990 #ifdef MAP_ISO_DEBUG
7991  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 163 << std::endl;
7992  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 163 << std::endl;
7993  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 163 << std::endl;
7994 #endif
7995  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
7996 
7997 #ifdef MAP_ISO_DEBUG
7998  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 163 << std::endl;
7999  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 163 << std::endl;
8000  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 163 << std::endl;
8001 #endif
8002  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
8003 
8004 #ifdef MAP_ISO_DEBUG
8005  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 163 << std::endl;
8006  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 163 << std::endl;
8007  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 163 << std::endl;
8008 #endif
8009  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
8010 
8011 #ifdef MAP_ISO_DEBUG
8012  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 163 << std::endl;
8013  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 163 << std::endl;
8014  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 163 << std::endl;
8015 #endif
8016  va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[11]);
8017 
8018 #ifdef MAP_ISO_DEBUG
8019  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 163 << std::endl;
8020  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 163 << std::endl;
8021  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 163 << std::endl;
8022 #endif
8023  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
8024 
8025 #ifdef MAP_ISO_DEBUG
8026  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 163 << std::endl;
8027  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 163 << std::endl;
8028  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 163 << std::endl;
8029 #endif
8030 }
8031 
8032 template<>
8033 void AddLinesAndFaces<164>(IndexedVertexArray& va,unsigned int vertex_id[12] )
8034 {
8035  va.AddLine(vertex_id[2],vertex_id[1]);
8036  va.AddLine(vertex_id[5],vertex_id[1]);
8037  va.AddLine(vertex_id[6],vertex_id[1]);
8038  va.AddLine(vertex_id[6],vertex_id[2]);
8039  va.AddLine(vertex_id[6],vertex_id[5]);
8040  va.AddLine(vertex_id[7],vertex_id[2]);
8041  va.AddLine(vertex_id[7],vertex_id[6]);
8042  va.AddLine(vertex_id[8],vertex_id[5]);
8043  va.AddLine(vertex_id[9],vertex_id[1]);
8044  va.AddLine(vertex_id[9],vertex_id[5]);
8045  va.AddLine(vertex_id[9],vertex_id[6]);
8046  va.AddLine(vertex_id[9],vertex_id[8]);
8047  va.AddLine(vertex_id[10],vertex_id[2]);
8048  va.AddLine(vertex_id[10],vertex_id[6]);
8049  va.AddLine(vertex_id[10],vertex_id[7]);
8050  va.AddLine(vertex_id[10],vertex_id[8]);
8051  va.AddLine(vertex_id[10],vertex_id[9]);
8052  va.AddLine(vertex_id[11],vertex_id[7]);
8053  va.AddLine(vertex_id[11],vertex_id[8]);
8054  va.AddLine(vertex_id[11],vertex_id[9]);
8055  va.AddLine(vertex_id[11],vertex_id[10]);
8056  va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[9]);
8057 
8058 #ifdef MAP_ISO_DEBUG
8059  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
8060  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 164 << std::endl;
8061  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 164 << std::endl;
8062 #endif
8063  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[8]);
8064 
8065 #ifdef MAP_ISO_DEBUG
8066  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
8067  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 164 << std::endl;
8068  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 164 << std::endl;
8069 #endif
8070  va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[5]);
8071 
8072 #ifdef MAP_ISO_DEBUG
8073  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
8074  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 164 << std::endl;
8075  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 164 << std::endl;
8076 #endif
8077  va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[9]);
8078 
8079 #ifdef MAP_ISO_DEBUG
8080  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
8081  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 164 << std::endl;
8082  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 164 << std::endl;
8083 #endif
8084  va.AddTriN(vertex_id[6],vertex_id[6],vertex_id[1]);
8085 
8086 #ifdef MAP_ISO_DEBUG
8087  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
8088  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
8089  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 164 << std::endl;
8090 #endif
8091  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[6]);
8092 
8093 #ifdef MAP_ISO_DEBUG
8094  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
8095  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 164 << std::endl;
8096  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
8097 #endif
8098  va.AddTriN(vertex_id[6],vertex_id[1],vertex_id[5]);
8099 
8100 #ifdef MAP_ISO_DEBUG
8101  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
8102  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 164 << std::endl;
8103  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 164 << std::endl;
8104 #endif
8105  va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[1]);
8106 
8107 #ifdef MAP_ISO_DEBUG
8108  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
8109  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 164 << std::endl;
8110  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 164 << std::endl;
8111 #endif
8112  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
8113 
8114 #ifdef MAP_ISO_DEBUG
8115  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 164 << std::endl;
8116  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 164 << std::endl;
8117  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 164 << std::endl;
8118 #endif
8119  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
8120 
8121 #ifdef MAP_ISO_DEBUG
8122  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 164 << std::endl;
8123  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 164 << std::endl;
8124  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 164 << std::endl;
8125 #endif
8126  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
8127 
8128 #ifdef MAP_ISO_DEBUG
8129  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 164 << std::endl;
8130  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 164 << std::endl;
8131  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 164 << std::endl;
8132 #endif
8133  va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[11]);
8134 
8135 #ifdef MAP_ISO_DEBUG
8136  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 164 << std::endl;
8137  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 164 << std::endl;
8138  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 164 << std::endl;
8139 #endif
8140  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
8141 
8142 #ifdef MAP_ISO_DEBUG
8143  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 164 << std::endl;
8144  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 164 << std::endl;
8145  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 164 << std::endl;
8146 #endif
8147 }
8148 
8149 template<>
8150 void AddLinesAndFaces<165>(IndexedVertexArray& va,unsigned int vertex_id[12] )
8151 {
8152  va.AddLine(vertex_id[1],vertex_id[0]);
8153  va.AddLine(vertex_id[2],vertex_id[0]);
8154  va.AddLine(vertex_id[2],vertex_id[1]);
8155  va.AddLine(vertex_id[3],vertex_id[0]);
8156  va.AddLine(vertex_id[3],vertex_id[1]);
8157  va.AddLine(vertex_id[3],vertex_id[2]);
8158  va.AddLine(vertex_id[4],vertex_id[0]);
8159  va.AddLine(vertex_id[4],vertex_id[3]);
8160  va.AddLine(vertex_id[5],vertex_id[0]);
8161  va.AddLine(vertex_id[5],vertex_id[1]);
8162  va.AddLine(vertex_id[5],vertex_id[4]);
8163  va.AddLine(vertex_id[6],vertex_id[1]);
8164  va.AddLine(vertex_id[6],vertex_id[2]);
8165  va.AddLine(vertex_id[6],vertex_id[5]);
8166  va.AddLine(vertex_id[7],vertex_id[2]);
8167  va.AddLine(vertex_id[7],vertex_id[3]);
8168  va.AddLine(vertex_id[7],vertex_id[4]);
8169  va.AddLine(vertex_id[7],vertex_id[6]);
8170  va.AddLine(vertex_id[8],vertex_id[0]);
8171  va.AddLine(vertex_id[8],vertex_id[4]);
8172  va.AddLine(vertex_id[8],vertex_id[5]);
8173  va.AddLine(vertex_id[9],vertex_id[1]);
8174  va.AddLine(vertex_id[9],vertex_id[5]);
8175  va.AddLine(vertex_id[9],vertex_id[6]);
8176  va.AddLine(vertex_id[9],vertex_id[8]);
8177  va.AddLine(vertex_id[10],vertex_id[2]);
8178  va.AddLine(vertex_id[10],vertex_id[6]);
8179  va.AddLine(vertex_id[10],vertex_id[7]);
8180  va.AddLine(vertex_id[10],vertex_id[8]);
8181  va.AddLine(vertex_id[10],vertex_id[9]);
8182  va.AddLine(vertex_id[11],vertex_id[3]);
8183  va.AddLine(vertex_id[11],vertex_id[4]);
8184  va.AddLine(vertex_id[11],vertex_id[7]);
8185  va.AddLine(vertex_id[11],vertex_id[8]);
8186  va.AddLine(vertex_id[11],vertex_id[9]);
8187  va.AddLine(vertex_id[11],vertex_id[10]);
8188  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
8189 
8190 #ifdef MAP_ISO_DEBUG
8191  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 165 << std::endl;
8192  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 165 << std::endl;
8193  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 165 << std::endl;
8194 #endif
8195  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
8196 
8197 #ifdef MAP_ISO_DEBUG
8198  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
8199  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 165 << std::endl;
8200  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 165 << std::endl;
8201 #endif
8202  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[1]);
8203 
8204 #ifdef MAP_ISO_DEBUG
8205  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
8206  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 165 << std::endl;
8207  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 165 << std::endl;
8208 #endif
8209  va.AddTriN(vertex_id[3],vertex_id[0],vertex_id[5]);
8210 
8211 #ifdef MAP_ISO_DEBUG
8212  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
8213  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 165 << std::endl;
8214  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 165 << std::endl;
8215 #endif
8216  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[0]);
8217 
8218 #ifdef MAP_ISO_DEBUG
8219  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
8220  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 165 << std::endl;
8221  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 165 << std::endl;
8222 #endif
8223  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
8224 
8225 #ifdef MAP_ISO_DEBUG
8226  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
8227  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 165 << std::endl;
8228  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 165 << std::endl;
8229 #endif
8230  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[4]);
8231 
8232 #ifdef MAP_ISO_DEBUG
8233  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
8234  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 165 << std::endl;
8235  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 165 << std::endl;
8236 #endif
8237  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[5]);
8238 
8239 #ifdef MAP_ISO_DEBUG
8240  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
8241  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 165 << std::endl;
8242  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 165 << std::endl;
8243 #endif
8244  va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[6]);
8245 
8246 #ifdef MAP_ISO_DEBUG
8247  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
8248  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 165 << std::endl;
8249  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 165 << std::endl;
8250 #endif
8251  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
8252 
8253 #ifdef MAP_ISO_DEBUG
8254  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
8255  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 165 << std::endl;
8256  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 165 << std::endl;
8257 #endif
8258  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[9]);
8259 
8260 #ifdef MAP_ISO_DEBUG
8261  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
8262  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 165 << std::endl;
8263  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 165 << std::endl;
8264 #endif
8265  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[5]);
8266 
8267 #ifdef MAP_ISO_DEBUG
8268  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
8269  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 165 << std::endl;
8270  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 165 << std::endl;
8271 #endif
8272  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[8]);
8273 
8274 #ifdef MAP_ISO_DEBUG
8275  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
8276  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 165 << std::endl;
8277  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 165 << std::endl;
8278 #endif
8279  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[9]);
8280 
8281 #ifdef MAP_ISO_DEBUG
8282  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
8283  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 165 << std::endl;
8284  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 165 << std::endl;
8285 #endif
8286  va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[6]);
8287 
8288 #ifdef MAP_ISO_DEBUG
8289  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
8290  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 165 << std::endl;
8291  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 165 << std::endl;
8292 #endif
8293  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
8294 
8295 #ifdef MAP_ISO_DEBUG
8296  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 165 << std::endl;
8297  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 165 << std::endl;
8298  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 165 << std::endl;
8299 #endif
8300  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
8301 
8302 #ifdef MAP_ISO_DEBUG
8303  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 165 << std::endl;
8304  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 165 << std::endl;
8305  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 165 << std::endl;
8306 #endif
8307  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
8308 
8309 #ifdef MAP_ISO_DEBUG
8310  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 165 << std::endl;
8311  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 165 << std::endl;
8312  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 165 << std::endl;
8313 #endif
8314  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
8315 
8316 #ifdef MAP_ISO_DEBUG
8317  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 165 << std::endl;
8318  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 165 << std::endl;
8319  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 165 << std::endl;
8320 #endif
8321  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
8322 
8323 #ifdef MAP_ISO_DEBUG
8324  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 165 << std::endl;
8325  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 165 << std::endl;
8326  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 165 << std::endl;
8327 #endif
8328  va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[11]);
8329 
8330 #ifdef MAP_ISO_DEBUG
8331  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 165 << std::endl;
8332  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 165 << std::endl;
8333  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 165 << std::endl;
8334 #endif
8335  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
8336 
8337 #ifdef MAP_ISO_DEBUG
8338  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 165 << std::endl;
8339  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 165 << std::endl;
8340  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 165 << std::endl;
8341 #endif
8342 }
8343 
8344 template<>
8345 void AddLinesAndFaces<166>(IndexedVertexArray& va,unsigned int vertex_id[12] )
8346 {
8347  va.AddLine(vertex_id[2],vertex_id[0]);
8348  va.AddLine(vertex_id[6],vertex_id[2]);
8349  va.AddLine(vertex_id[7],vertex_id[2]);
8350  va.AddLine(vertex_id[7],vertex_id[6]);
8351  va.AddLine(vertex_id[8],vertex_id[0]);
8352  va.AddLine(vertex_id[9],vertex_id[6]);
8353  va.AddLine(vertex_id[9],vertex_id[8]);
8354  va.AddLine(vertex_id[10],vertex_id[2]);
8355  va.AddLine(vertex_id[10],vertex_id[6]);
8356  va.AddLine(vertex_id[10],vertex_id[7]);
8357  va.AddLine(vertex_id[10],vertex_id[8]);
8358  va.AddLine(vertex_id[10],vertex_id[9]);
8359  va.AddLine(vertex_id[11],vertex_id[7]);
8360  va.AddLine(vertex_id[11],vertex_id[8]);
8361  va.AddLine(vertex_id[11],vertex_id[9]);
8362  va.AddLine(vertex_id[11],vertex_id[10]);
8363  va.AddTriN(vertex_id[6],vertex_id[8],vertex_id[9]);
8364 
8365 #ifdef MAP_ISO_DEBUG
8366  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 166 << std::endl;
8367  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 166 << std::endl;
8368  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 166 << std::endl;
8369 #endif
8370  va.AddTriN(vertex_id[6],vertex_id[0],vertex_id[8]);
8371 
8372 #ifdef MAP_ISO_DEBUG
8373  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 166 << std::endl;
8374  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 166 << std::endl;
8375  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 166 << std::endl;
8376 #endif
8377  va.AddTriN(vertex_id[6],vertex_id[2],vertex_id[0]);
8378 
8379 #ifdef MAP_ISO_DEBUG
8380  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 166 << std::endl;
8381  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 166 << std::endl;
8382  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 166 << std::endl;
8383 #endif
8384  va.AddTriN(vertex_id[7],vertex_id[10],vertex_id[2]);
8385 
8386 #ifdef MAP_ISO_DEBUG
8387  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 166 << std::endl;
8388  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 166 << std::endl;
8389  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 166 << std::endl;
8390 #endif
8391  va.AddTriN(vertex_id[7],vertex_id[6],vertex_id[10]);
8392 
8393 #ifdef MAP_ISO_DEBUG
8394  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 166 << std::endl;
8395  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 166 << std::endl;
8396  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 166 << std::endl;
8397 #endif
8398  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
8399 
8400 #ifdef MAP_ISO_DEBUG
8401  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 166 << std::endl;
8402  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 166 << std::endl;
8403  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 166 << std::endl;
8404 #endif
8405  va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[11]);
8406 
8407 #ifdef MAP_ISO_DEBUG
8408  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 166 << std::endl;
8409  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 166 << std::endl;
8410  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 166 << std::endl;
8411 #endif
8412  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
8413 
8414 #ifdef MAP_ISO_DEBUG
8415  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 166 << std::endl;
8416  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 166 << std::endl;
8417  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 166 << std::endl;
8418 #endif
8419 }
8420 
8421 template<>
8422 void AddLinesAndFaces<167>(IndexedVertexArray& va,unsigned int vertex_id[12] )
8423 {
8424  va.AddLine(vertex_id[3],vertex_id[2]);
8425  va.AddLine(vertex_id[4],vertex_id[3]);
8426  va.AddLine(vertex_id[6],vertex_id[2]);
8427  va.AddLine(vertex_id[7],vertex_id[2]);
8428  va.AddLine(vertex_id[7],vertex_id[3]);
8429  va.AddLine(vertex_id[7],vertex_id[4]);
8430  va.AddLine(vertex_id[7],vertex_id[6]);
8431  va.AddLine(vertex_id[8],vertex_id[4]);
8432  va.AddLine(vertex_id[9],vertex_id[6]);
8433  va.AddLine(vertex_id[9],vertex_id[8]);
8434  va.AddLine(vertex_id[10],vertex_id[2]);
8435  va.AddLine(vertex_id[10],vertex_id[6]);
8436  va.AddLine(vertex_id[10],vertex_id[7]);
8437  va.AddLine(vertex_id[10],vertex_id[8]);
8438  va.AddLine(vertex_id[10],vertex_id[9]);
8439  va.AddLine(vertex_id[11],vertex_id[3]);
8440  va.AddLine(vertex_id[11],vertex_id[4]);
8441  va.AddLine(vertex_id[11],vertex_id[7]);
8442  va.AddLine(vertex_id[11],vertex_id[8]);
8443  va.AddLine(vertex_id[11],vertex_id[9]);
8444  va.AddLine(vertex_id[11],vertex_id[10]);
8445  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
8446 
8447 #ifdef MAP_ISO_DEBUG
8448  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
8449  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 167 << std::endl;
8450  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 167 << std::endl;
8451 #endif
8452  va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[6]);
8453 
8454 #ifdef MAP_ISO_DEBUG
8455  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
8456  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 167 << std::endl;
8457  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 167 << std::endl;
8458 #endif
8459  va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[7]);
8460 
8461 #ifdef MAP_ISO_DEBUG
8462  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
8463  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 167 << std::endl;
8464  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 167 << std::endl;
8465 #endif
8466  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
8467 
8468 #ifdef MAP_ISO_DEBUG
8469  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
8470  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 167 << std::endl;
8471  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 167 << std::endl;
8472 #endif
8473  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[10]);
8474 
8475 #ifdef MAP_ISO_DEBUG
8476  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
8477  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 167 << std::endl;
8478  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 167 << std::endl;
8479 #endif
8480  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[6]);
8481 
8482 #ifdef MAP_ISO_DEBUG
8483  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
8484  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 167 << std::endl;
8485  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 167 << std::endl;
8486 #endif
8487  va.AddTriN(vertex_id[3],vertex_id[8],vertex_id[9]);
8488 
8489 #ifdef MAP_ISO_DEBUG
8490  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
8491  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 167 << std::endl;
8492  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 167 << std::endl;
8493 #endif
8494  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[8]);
8495 
8496 #ifdef MAP_ISO_DEBUG
8497  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
8498  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 167 << std::endl;
8499  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 167 << std::endl;
8500 #endif
8501  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
8502 
8503 #ifdef MAP_ISO_DEBUG
8504  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 167 << std::endl;
8505  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 167 << std::endl;
8506  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 167 << std::endl;
8507 #endif
8508  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
8509 
8510 #ifdef MAP_ISO_DEBUG
8511  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 167 << std::endl;
8512  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 167 << std::endl;
8513  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 167 << std::endl;
8514 #endif
8515  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[7]);
8516 
8517 #ifdef MAP_ISO_DEBUG
8518  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 167 << std::endl;
8519  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 167 << std::endl;
8520  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 167 << std::endl;
8521 #endif
8522  va.AddTriN(vertex_id[10],vertex_id[8],vertex_id[11]);
8523 
8524 #ifdef MAP_ISO_DEBUG
8525  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 167 << std::endl;
8526  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 167 << std::endl;
8527  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 167 << std::endl;
8528 #endif
8529  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
8530 
8531 #ifdef MAP_ISO_DEBUG
8532  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 167 << std::endl;
8533  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 167 << std::endl;
8534  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 167 << std::endl;
8535 #endif
8536 }
8537 
8538 template<>
8539 void AddLinesAndFaces<168>(IndexedVertexArray& va,unsigned int vertex_id[12] )
8540 {
8541  va.AddLine(vertex_id[3],vertex_id[2]);
8542  va.AddLine(vertex_id[8],vertex_id[5]);
8543  va.AddLine(vertex_id[9],vertex_id[5]);
8544  va.AddLine(vertex_id[9],vertex_id[8]);
8545  va.AddLine(vertex_id[10],vertex_id[2]);
8546  va.AddLine(vertex_id[10],vertex_id[8]);
8547  va.AddLine(vertex_id[10],vertex_id[9]);
8548  va.AddLine(vertex_id[11],vertex_id[3]);
8549  va.AddLine(vertex_id[11],vertex_id[8]);
8550  va.AddLine(vertex_id[11],vertex_id[9]);
8551  va.AddLine(vertex_id[11],vertex_id[10]);
8552  va.AddTriN(vertex_id[11],vertex_id[9],vertex_id[8]);
8553 
8554 #ifdef MAP_ISO_DEBUG
8555  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 168 << std::endl;
8556  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 168 << std::endl;
8557  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 168 << std::endl;
8558 #endif
8559  va.AddTriN(vertex_id[11],vertex_id[5],vertex_id[9]);
8560 
8561 #ifdef MAP_ISO_DEBUG
8562  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 168 << std::endl;
8563  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 168 << std::endl;
8564  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 168 << std::endl;
8565 #endif
8566  va.AddTriN(vertex_id[11],vertex_id[8],vertex_id[5]);
8567 
8568 #ifdef MAP_ISO_DEBUG
8569  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 168 << std::endl;
8570  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 168 << std::endl;
8571  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 168 << std::endl;
8572 #endif
8573  va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[8]);
8574 
8575 #ifdef MAP_ISO_DEBUG
8576  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 168 << std::endl;
8577  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 168 << std::endl;
8578  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 168 << std::endl;
8579 #endif
8580  va.AddTriN(vertex_id[11],vertex_id[2],vertex_id[10]);
8581 
8582 #ifdef MAP_ISO_DEBUG
8583  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 168 << std::endl;
8584  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 168 << std::endl;
8585  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 168 << std::endl;
8586 #endif
8587  va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[2]);
8588 
8589 #ifdef MAP_ISO_DEBUG
8590  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 168 << std::endl;
8591  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 168 << std::endl;
8592  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 168 << std::endl;
8593 #endif
8594  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
8595 
8596 #ifdef MAP_ISO_DEBUG
8597  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 168 << std::endl;
8598  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 168 << std::endl;
8599  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 168 << std::endl;
8600 #endif
8601 }
8602 
8603 template<>
8604 void AddLinesAndFaces<169>(IndexedVertexArray& va,unsigned int vertex_id[12] )
8605 {
8606  va.AddLine(vertex_id[2],vertex_id[0]);
8607  va.AddLine(vertex_id[4],vertex_id[0]);
8608  va.AddLine(vertex_id[5],vertex_id[0]);
8609  va.AddLine(vertex_id[5],vertex_id[4]);
8610  va.AddLine(vertex_id[8],vertex_id[0]);
8611  va.AddLine(vertex_id[8],vertex_id[4]);
8612  va.AddLine(vertex_id[8],vertex_id[5]);
8613  va.AddLine(vertex_id[9],vertex_id[5]);
8614  va.AddLine(vertex_id[9],vertex_id[8]);
8615  va.AddLine(vertex_id[10],vertex_id[2]);
8616  va.AddLine(vertex_id[10],vertex_id[8]);
8617  va.AddLine(vertex_id[10],vertex_id[9]);
8618  va.AddLine(vertex_id[11],vertex_id[4]);
8619  va.AddLine(vertex_id[11],vertex_id[8]);
8620  va.AddLine(vertex_id[11],vertex_id[9]);
8621  va.AddLine(vertex_id[11],vertex_id[10]);
8622  va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[0]);
8623 
8624 #ifdef MAP_ISO_DEBUG
8625  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
8626  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 169 << std::endl;
8627  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 169 << std::endl;
8628 #endif
8629  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[4]);
8630 
8631 #ifdef MAP_ISO_DEBUG
8632  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
8633  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 169 << std::endl;
8634  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 169 << std::endl;
8635 #endif
8636  va.AddTriN(vertex_id[2],vertex_id[0],vertex_id[5]);
8637 
8638 #ifdef MAP_ISO_DEBUG
8639  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
8640  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 169 << std::endl;
8641  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 169 << std::endl;
8642 #endif
8643  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[0]);
8644 
8645 #ifdef MAP_ISO_DEBUG
8646  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
8647  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 169 << std::endl;
8648  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 169 << std::endl;
8649 #endif
8650  va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[8]);
8651 
8652 #ifdef MAP_ISO_DEBUG
8653  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
8654  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 169 << std::endl;
8655  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 169 << std::endl;
8656 #endif
8657  va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[4]);
8658 
8659 #ifdef MAP_ISO_DEBUG
8660  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
8661  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 169 << std::endl;
8662  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 169 << std::endl;
8663 #endif
8664  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[11]);
8665 
8666 #ifdef MAP_ISO_DEBUG
8667  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
8668  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 169 << std::endl;
8669  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 169 << std::endl;
8670 #endif
8671  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[8]);
8672 
8673 #ifdef MAP_ISO_DEBUG
8674  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
8675  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 169 << std::endl;
8676  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 169 << std::endl;
8677 #endif
8678  va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[5]);
8679 
8680 #ifdef MAP_ISO_DEBUG
8681  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
8682  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 169 << std::endl;
8683  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 169 << std::endl;
8684 #endif
8685  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[9]);
8686 
8687 #ifdef MAP_ISO_DEBUG
8688  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
8689  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 169 << std::endl;
8690  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 169 << std::endl;
8691 #endif
8692  va.AddTriN(vertex_id[2],vertex_id[10],vertex_id[8]);
8693 
8694 #ifdef MAP_ISO_DEBUG
8695  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 169 << std::endl;
8696  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 169 << std::endl;
8697  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 169 << std::endl;
8698 #endif
8699  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
8700 
8701 #ifdef MAP_ISO_DEBUG
8702  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 169 << std::endl;
8703  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 169 << std::endl;
8704  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 169 << std::endl;
8705 #endif
8706 }
8707 
8708 template<>
8709 void AddLinesAndFaces<170>(IndexedVertexArray& va,unsigned int vertex_id[12] )
8710 {
8711  va.AddLine(vertex_id[1],vertex_id[0]);
8712  va.AddLine(vertex_id[2],vertex_id[0]);
8713  va.AddLine(vertex_id[2],vertex_id[1]);
8714  va.AddLine(vertex_id[3],vertex_id[0]);
8715  va.AddLine(vertex_id[3],vertex_id[1]);
8716  va.AddLine(vertex_id[3],vertex_id[2]);
8717  va.AddLine(vertex_id[8],vertex_id[0]);
8718  va.AddLine(vertex_id[9],vertex_id[1]);
8719  va.AddLine(vertex_id[9],vertex_id[8]);
8720  va.AddLine(vertex_id[10],vertex_id[2]);
8721  va.AddLine(vertex_id[10],vertex_id[8]);
8722  va.AddLine(vertex_id[10],vertex_id[9]);
8723  va.AddLine(vertex_id[11],vertex_id[3]);
8724  va.AddLine(vertex_id[11],vertex_id[8]);
8725  va.AddLine(vertex_id[11],vertex_id[9]);
8726  va.AddLine(vertex_id[11],vertex_id[10]);
8727  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
8728 
8729 #ifdef MAP_ISO_DEBUG
8730  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 170 << std::endl;
8731  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 170 << std::endl;
8732  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 170 << std::endl;
8733 #endif
8734  va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[9]);
8735 
8736 #ifdef MAP_ISO_DEBUG
8737  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 170 << std::endl;
8738  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 170 << std::endl;
8739  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 170 << std::endl;
8740 #endif
8741  va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[8]);
8742 
8743 #ifdef MAP_ISO_DEBUG
8744  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 170 << std::endl;
8745  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 170 << std::endl;
8746  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 170 << std::endl;
8747 #endif
8748  va.AddTriN(vertex_id[1],vertex_id[3],vertex_id[0]);
8749 
8750 #ifdef MAP_ISO_DEBUG
8751  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 170 << std::endl;
8752  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 170 << std::endl;
8753  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 170 << std::endl;
8754 #endif
8755  va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[8]);
8756 
8757 #ifdef MAP_ISO_DEBUG
8758  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 170 << std::endl;
8759  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 170 << std::endl;
8760  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 170 << std::endl;
8761 #endif
8762  va.AddTriN(vertex_id[11],vertex_id[2],vertex_id[10]);
8763 
8764 #ifdef MAP_ISO_DEBUG
8765  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 170 << std::endl;
8766  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 170 << std::endl;
8767  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 170 << std::endl;
8768 #endif
8769  va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[2]);
8770 
8771 #ifdef MAP_ISO_DEBUG
8772  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 170 << std::endl;
8773  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 170 << std::endl;
8774  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 170 << std::endl;
8775 #endif
8776  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
8777 
8778 #ifdef MAP_ISO_DEBUG
8779  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 170 << std::endl;
8780  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 170 << std::endl;
8781  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 170 << std::endl;
8782 #endif
8783 }
8784 
8785 template<>
8786 void AddLinesAndFaces<171>(IndexedVertexArray& va,unsigned int vertex_id[12] )
8787 {
8788  va.AddLine(vertex_id[2],vertex_id[1]);
8789  va.AddLine(vertex_id[8],vertex_id[4]);
8790  va.AddLine(vertex_id[9],vertex_id[1]);
8791  va.AddLine(vertex_id[9],vertex_id[8]);
8792  va.AddLine(vertex_id[10],vertex_id[2]);
8793  va.AddLine(vertex_id[10],vertex_id[8]);
8794  va.AddLine(vertex_id[10],vertex_id[9]);
8795  va.AddLine(vertex_id[11],vertex_id[4]);
8796  va.AddLine(vertex_id[11],vertex_id[8]);
8797  va.AddLine(vertex_id[11],vertex_id[9]);
8798  va.AddLine(vertex_id[11],vertex_id[10]);
8799  va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[1]);
8800 
8801 #ifdef MAP_ISO_DEBUG
8802  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 171 << std::endl;
8803  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 171 << std::endl;
8804  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 171 << std::endl;
8805 #endif
8806  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[9]);
8807 
8808 #ifdef MAP_ISO_DEBUG
8809  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 171 << std::endl;
8810  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 171 << std::endl;
8811  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 171 << std::endl;
8812 #endif
8813  va.AddTriN(vertex_id[2],vertex_id[4],vertex_id[8]);
8814 
8815 #ifdef MAP_ISO_DEBUG
8816  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 171 << std::endl;
8817  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 171 << std::endl;
8818  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 171 << std::endl;
8819 #endif
8820  va.AddTriN(vertex_id[2],vertex_id[11],vertex_id[4]);
8821 
8822 #ifdef MAP_ISO_DEBUG
8823  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 171 << std::endl;
8824  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 171 << std::endl;
8825  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 171 << std::endl;
8826 #endif
8827  va.AddTriN(vertex_id[2],vertex_id[8],vertex_id[11]);
8828 
8829 #ifdef MAP_ISO_DEBUG
8830  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 171 << std::endl;
8831  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 171 << std::endl;
8832  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 171 << std::endl;
8833 #endif
8834  va.AddTriN(vertex_id[2],vertex_id[10],vertex_id[8]);
8835 
8836 #ifdef MAP_ISO_DEBUG
8837  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 171 << std::endl;
8838  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 171 << std::endl;
8839  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 171 << std::endl;
8840 #endif
8841  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
8842 
8843 #ifdef MAP_ISO_DEBUG
8844  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 171 << std::endl;
8845  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 171 << std::endl;
8846  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 171 << std::endl;
8847 #endif
8848 }
8849 
8850 template<>
8851 void AddLinesAndFaces<172>(IndexedVertexArray& va,unsigned int vertex_id[12] )
8852 {
8853  va.AddLine(vertex_id[3],vertex_id[1]);
8854  va.AddLine(vertex_id[5],vertex_id[1]);
8855  va.AddLine(vertex_id[6],vertex_id[1]);
8856  va.AddLine(vertex_id[6],vertex_id[5]);
8857  va.AddLine(vertex_id[8],vertex_id[5]);
8858  va.AddLine(vertex_id[9],vertex_id[1]);
8859  va.AddLine(vertex_id[9],vertex_id[5]);
8860  va.AddLine(vertex_id[9],vertex_id[6]);
8861  va.AddLine(vertex_id[9],vertex_id[8]);
8862  va.AddLine(vertex_id[10],vertex_id[6]);
8863  va.AddLine(vertex_id[10],vertex_id[8]);
8864  va.AddLine(vertex_id[10],vertex_id[9]);
8865  va.AddLine(vertex_id[11],vertex_id[3]);
8866  va.AddLine(vertex_id[11],vertex_id[8]);
8867  va.AddLine(vertex_id[11],vertex_id[9]);
8868  va.AddLine(vertex_id[11],vertex_id[10]);
8869  va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[8]);
8870 
8871 #ifdef MAP_ISO_DEBUG
8872  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
8873  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 172 << std::endl;
8874  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 172 << std::endl;
8875 #endif
8876  va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[10]);
8877 
8878 #ifdef MAP_ISO_DEBUG
8879  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
8880  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 172 << std::endl;
8881  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 172 << std::endl;
8882 #endif
8883  va.AddTriN(vertex_id[11],vertex_id[9],vertex_id[6]);
8884 
8885 #ifdef MAP_ISO_DEBUG
8886  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
8887  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 172 << std::endl;
8888  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 172 << std::endl;
8889 #endif
8890  va.AddTriN(vertex_id[11],vertex_id[8],vertex_id[9]);
8891 
8892 #ifdef MAP_ISO_DEBUG
8893  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
8894  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 172 << std::endl;
8895  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 172 << std::endl;
8896 #endif
8897  va.AddTriN(vertex_id[11],vertex_id[5],vertex_id[8]);
8898 
8899 #ifdef MAP_ISO_DEBUG
8900  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
8901  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 172 << std::endl;
8902  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 172 << std::endl;
8903 #endif
8904  va.AddTriN(vertex_id[11],vertex_id[9],vertex_id[5]);
8905 
8906 #ifdef MAP_ISO_DEBUG
8907  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
8908  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 172 << std::endl;
8909  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 172 << std::endl;
8910 #endif
8911  va.AddTriN(vertex_id[11],vertex_id[1],vertex_id[9]);
8912 
8913 #ifdef MAP_ISO_DEBUG
8914  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
8915  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 172 << std::endl;
8916  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 172 << std::endl;
8917 #endif
8918  va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[1]);
8919 
8920 #ifdef MAP_ISO_DEBUG
8921  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
8922  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 172 << std::endl;
8923  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 172 << std::endl;
8924 #endif
8925  va.AddTriN(vertex_id[11],vertex_id[5],vertex_id[6]);
8926 
8927 #ifdef MAP_ISO_DEBUG
8928  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
8929  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 172 << std::endl;
8930  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 172 << std::endl;
8931 #endif
8932  va.AddTriN(vertex_id[11],vertex_id[1],vertex_id[5]);
8933 
8934 #ifdef MAP_ISO_DEBUG
8935  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
8936  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 172 << std::endl;
8937  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 172 << std::endl;
8938 #endif
8939  va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[1]);
8940 
8941 #ifdef MAP_ISO_DEBUG
8942  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
8943  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 172 << std::endl;
8944  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 172 << std::endl;
8945 #endif
8946  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
8947 
8948 #ifdef MAP_ISO_DEBUG
8949  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 172 << std::endl;
8950  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 172 << std::endl;
8951  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 172 << std::endl;
8952 #endif
8953 }
8954 
8955 template<>
8956 void AddLinesAndFaces<173>(IndexedVertexArray& va,unsigned int vertex_id[12] )
8957 {
8958  va.AddLine(vertex_id[1],vertex_id[0]);
8959  va.AddLine(vertex_id[4],vertex_id[0]);
8960  va.AddLine(vertex_id[5],vertex_id[0]);
8961  va.AddLine(vertex_id[5],vertex_id[1]);
8962  va.AddLine(vertex_id[5],vertex_id[4]);
8963  va.AddLine(vertex_id[6],vertex_id[1]);
8964  va.AddLine(vertex_id[6],vertex_id[5]);
8965  va.AddLine(vertex_id[8],vertex_id[0]);
8966  va.AddLine(vertex_id[8],vertex_id[4]);
8967  va.AddLine(vertex_id[8],vertex_id[5]);
8968  va.AddLine(vertex_id[9],vertex_id[1]);
8969  va.AddLine(vertex_id[9],vertex_id[5]);
8970  va.AddLine(vertex_id[9],vertex_id[6]);
8971  va.AddLine(vertex_id[9],vertex_id[8]);
8972  va.AddLine(vertex_id[10],vertex_id[6]);
8973  va.AddLine(vertex_id[10],vertex_id[8]);
8974  va.AddLine(vertex_id[10],vertex_id[9]);
8975  va.AddLine(vertex_id[11],vertex_id[4]);
8976  va.AddLine(vertex_id[11],vertex_id[8]);
8977  va.AddLine(vertex_id[11],vertex_id[9]);
8978  va.AddLine(vertex_id[11],vertex_id[10]);
8979  va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[0]);
8980 
8981 #ifdef MAP_ISO_DEBUG
8982  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
8983  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 173 << std::endl;
8984  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 173 << std::endl;
8985 #endif
8986  va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[4]);
8987 
8988 #ifdef MAP_ISO_DEBUG
8989  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
8990  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 173 << std::endl;
8991  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 173 << std::endl;
8992 #endif
8993  va.AddTriN(vertex_id[1],vertex_id[0],vertex_id[5]);
8994 
8995 #ifdef MAP_ISO_DEBUG
8996  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
8997  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 173 << std::endl;
8998  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 173 << std::endl;
8999 #endif
9000  va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[0]);
9001 
9002 #ifdef MAP_ISO_DEBUG
9003  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
9004  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 173 << std::endl;
9005  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 173 << std::endl;
9006 #endif
9007  va.AddTriN(vertex_id[1],vertex_id[4],vertex_id[8]);
9008 
9009 #ifdef MAP_ISO_DEBUG
9010  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
9011  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 173 << std::endl;
9012  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 173 << std::endl;
9013 #endif
9014  va.AddTriN(vertex_id[1],vertex_id[11],vertex_id[4]);
9015 
9016 #ifdef MAP_ISO_DEBUG
9017  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
9018  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 173 << std::endl;
9019  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 173 << std::endl;
9020 #endif
9021  va.AddTriN(vertex_id[1],vertex_id[8],vertex_id[11]);
9022 
9023 #ifdef MAP_ISO_DEBUG
9024  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
9025  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 173 << std::endl;
9026  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 173 << std::endl;
9027 #endif
9028  va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[8]);
9029 
9030 #ifdef MAP_ISO_DEBUG
9031  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
9032  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 173 << std::endl;
9033  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 173 << std::endl;
9034 #endif
9035  va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
9036 
9037 #ifdef MAP_ISO_DEBUG
9038  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 173 << std::endl;
9039  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 173 << std::endl;
9040  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 173 << std::endl;
9041 #endif
9042  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
9043 
9044 #ifdef MAP_ISO_DEBUG
9045  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 173 << std::endl;
9046  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 173 << std::endl;
9047  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 173 << std::endl;
9048 #endif
9049  va.AddTriN(vertex_id[8],vertex_id[6],vertex_id[10]);
9050 
9051 #ifdef MAP_ISO_DEBUG
9052  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 173 << std::endl;
9053  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 173 << std::endl;
9054  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 173 << std::endl;
9055 #endif
9056  va.AddTriN(vertex_id[8],vertex_id[9],vertex_id[6]);
9057 
9058 #ifdef MAP_ISO_DEBUG
9059  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 173 << std::endl;
9060  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 173 << std::endl;
9061  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 173 << std::endl;
9062 #endif
9063  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
9064 
9065 #ifdef MAP_ISO_DEBUG
9066  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 173 << std::endl;
9067  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 173 << std::endl;
9068  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 173 << std::endl;
9069 #endif
9070 }
9071 
9072 template<>
9073 void AddLinesAndFaces<174>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9074 {
9075  va.AddLine(vertex_id[3],vertex_id[0]);
9076  va.AddLine(vertex_id[8],vertex_id[0]);
9077  va.AddLine(vertex_id[9],vertex_id[6]);
9078  va.AddLine(vertex_id[9],vertex_id[8]);
9079  va.AddLine(vertex_id[10],vertex_id[6]);
9080  va.AddLine(vertex_id[10],vertex_id[8]);
9081  va.AddLine(vertex_id[10],vertex_id[9]);
9082  va.AddLine(vertex_id[11],vertex_id[3]);
9083  va.AddLine(vertex_id[11],vertex_id[8]);
9084  va.AddLine(vertex_id[11],vertex_id[9]);
9085  va.AddLine(vertex_id[11],vertex_id[10]);
9086  va.AddTriN(vertex_id[11],vertex_id[10],vertex_id[8]);
9087 
9088 #ifdef MAP_ISO_DEBUG
9089  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 174 << std::endl;
9090  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 174 << std::endl;
9091  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 174 << std::endl;
9092 #endif
9093  va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[10]);
9094 
9095 #ifdef MAP_ISO_DEBUG
9096  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 174 << std::endl;
9097  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 174 << std::endl;
9098  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 174 << std::endl;
9099 #endif
9100  va.AddTriN(vertex_id[11],vertex_id[9],vertex_id[6]);
9101 
9102 #ifdef MAP_ISO_DEBUG
9103  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 174 << std::endl;
9104  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 174 << std::endl;
9105  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 174 << std::endl;
9106 #endif
9107  va.AddTriN(vertex_id[11],vertex_id[8],vertex_id[9]);
9108 
9109 #ifdef MAP_ISO_DEBUG
9110  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 174 << std::endl;
9111  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 174 << std::endl;
9112  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 174 << std::endl;
9113 #endif
9114  va.AddTriN(vertex_id[11],vertex_id[0],vertex_id[8]);
9115 
9116 #ifdef MAP_ISO_DEBUG
9117  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 174 << std::endl;
9118  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 174 << std::endl;
9119  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 174 << std::endl;
9120 #endif
9121  va.AddTriN(vertex_id[11],vertex_id[3],vertex_id[0]);
9122 
9123 #ifdef MAP_ISO_DEBUG
9124  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 174 << std::endl;
9125  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 174 << std::endl;
9126  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 174 << std::endl;
9127 #endif
9128  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
9129 
9130 #ifdef MAP_ISO_DEBUG
9131  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 174 << std::endl;
9132  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 174 << std::endl;
9133  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 174 << std::endl;
9134 #endif
9135 }
9136 
9137 template<>
9138 void AddLinesAndFaces<175>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9139 {
9140  va.AddLine(vertex_id[8],vertex_id[4]);
9141  va.AddLine(vertex_id[9],vertex_id[6]);
9142  va.AddLine(vertex_id[9],vertex_id[8]);
9143  va.AddLine(vertex_id[10],vertex_id[6]);
9144  va.AddLine(vertex_id[10],vertex_id[8]);
9145  va.AddLine(vertex_id[10],vertex_id[9]);
9146  va.AddLine(vertex_id[11],vertex_id[4]);
9147  va.AddLine(vertex_id[11],vertex_id[8]);
9148  va.AddLine(vertex_id[11],vertex_id[9]);
9149  va.AddLine(vertex_id[11],vertex_id[10]);
9150  va.AddTriN(vertex_id[8],vertex_id[11],vertex_id[4]);
9151 
9152 #ifdef MAP_ISO_DEBUG
9153  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 175 << std::endl;
9154  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 175 << std::endl;
9155  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 175 << std::endl;
9156 #endif
9157  va.AddTriN(vertex_id[8],vertex_id[6],vertex_id[10]);
9158 
9159 #ifdef MAP_ISO_DEBUG
9160  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 175 << std::endl;
9161  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 175 << std::endl;
9162  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 175 << std::endl;
9163 #endif
9164  va.AddTriN(vertex_id[8],vertex_id[9],vertex_id[6]);
9165 
9166 #ifdef MAP_ISO_DEBUG
9167  if(vertex_id[8]==0) std::cerr << "ISO_DEBUG: " << 8 << " " << 175 << std::endl;
9168  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 175 << std::endl;
9169  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 175 << std::endl;
9170 #endif
9171  va.AddTriN(vertex_id[10],vertex_id[11],vertex_id[9]);
9172 
9173 #ifdef MAP_ISO_DEBUG
9174  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 175 << std::endl;
9175  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 175 << std::endl;
9176  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 175 << std::endl;
9177 #endif
9178 }
9179 
9180 template<>
9181 void AddLinesAndFaces<176>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9182 {
9183  va.AddLine(vertex_id[5],vertex_id[4]);
9184  va.AddLine(vertex_id[7],vertex_id[4]);
9185  va.AddLine(vertex_id[9],vertex_id[5]);
9186  va.AddLine(vertex_id[10],vertex_id[7]);
9187  va.AddLine(vertex_id[10],vertex_id[9]);
9188  va.AddTriN(vertex_id[9],vertex_id[7],vertex_id[10]);
9189 
9190 #ifdef MAP_ISO_DEBUG
9191  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 176 << std::endl;
9192  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 176 << std::endl;
9193  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 176 << std::endl;
9194 #endif
9195  va.AddTriN(vertex_id[9],vertex_id[4],vertex_id[7]);
9196 
9197 #ifdef MAP_ISO_DEBUG
9198  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 176 << std::endl;
9199  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 176 << std::endl;
9200  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 176 << std::endl;
9201 #endif
9202  va.AddTriN(vertex_id[9],vertex_id[5],vertex_id[4]);
9203 
9204 #ifdef MAP_ISO_DEBUG
9205  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 176 << std::endl;
9206  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 176 << std::endl;
9207  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 176 << std::endl;
9208 #endif
9209 }
9210 
9211 template<>
9212 void AddLinesAndFaces<177>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9213 {
9214  va.AddLine(vertex_id[3],vertex_id[0]);
9215  va.AddLine(vertex_id[5],vertex_id[0]);
9216  va.AddLine(vertex_id[7],vertex_id[3]);
9217  va.AddLine(vertex_id[9],vertex_id[5]);
9218  va.AddLine(vertex_id[10],vertex_id[7]);
9219  va.AddLine(vertex_id[10],vertex_id[9]);
9220  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[0]);
9221 
9222 #ifdef MAP_ISO_DEBUG
9223  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 177 << std::endl;
9224  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 177 << std::endl;
9225  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 177 << std::endl;
9226 #endif
9227  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[5]);
9228 
9229 #ifdef MAP_ISO_DEBUG
9230  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 177 << std::endl;
9231  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 177 << std::endl;
9232  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 177 << std::endl;
9233 #endif
9234  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[9]);
9235 
9236 #ifdef MAP_ISO_DEBUG
9237  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 177 << std::endl;
9238  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 177 << std::endl;
9239  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 177 << std::endl;
9240 #endif
9241  va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[10]);
9242 
9243 #ifdef MAP_ISO_DEBUG
9244  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 177 << std::endl;
9245  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 177 << std::endl;
9246  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 177 << std::endl;
9247 #endif
9248 }
9249 
9250 template<>
9251 void AddLinesAndFaces<178>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9252 {
9253  va.AddLine(vertex_id[1],vertex_id[0]);
9254  va.AddLine(vertex_id[4],vertex_id[0]);
9255  va.AddLine(vertex_id[7],vertex_id[4]);
9256  va.AddLine(vertex_id[9],vertex_id[1]);
9257  va.AddLine(vertex_id[10],vertex_id[7]);
9258  va.AddLine(vertex_id[10],vertex_id[9]);
9259  va.AddTriN(vertex_id[9],vertex_id[7],vertex_id[10]);
9260 
9261 #ifdef MAP_ISO_DEBUG
9262  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 178 << std::endl;
9263  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 178 << std::endl;
9264  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 178 << std::endl;
9265 #endif
9266  va.AddTriN(vertex_id[9],vertex_id[4],vertex_id[7]);
9267 
9268 #ifdef MAP_ISO_DEBUG
9269  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 178 << std::endl;
9270  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 178 << std::endl;
9271  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 178 << std::endl;
9272 #endif
9273  va.AddTriN(vertex_id[9],vertex_id[0],vertex_id[4]);
9274 
9275 #ifdef MAP_ISO_DEBUG
9276  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 178 << std::endl;
9277  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 178 << std::endl;
9278  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 178 << std::endl;
9279 #endif
9280  va.AddTriN(vertex_id[9],vertex_id[1],vertex_id[0]);
9281 
9282 #ifdef MAP_ISO_DEBUG
9283  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 178 << std::endl;
9284  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 178 << std::endl;
9285  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 178 << std::endl;
9286 #endif
9287 }
9288 
9289 template<>
9290 void AddLinesAndFaces<179>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9291 {
9292  va.AddLine(vertex_id[3],vertex_id[1]);
9293  va.AddLine(vertex_id[7],vertex_id[3]);
9294  va.AddLine(vertex_id[9],vertex_id[1]);
9295  va.AddLine(vertex_id[10],vertex_id[7]);
9296  va.AddLine(vertex_id[10],vertex_id[9]);
9297  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
9298 
9299 #ifdef MAP_ISO_DEBUG
9300  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 179 << std::endl;
9301  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 179 << std::endl;
9302  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 179 << std::endl;
9303 #endif
9304  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[9]);
9305 
9306 #ifdef MAP_ISO_DEBUG
9307  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 179 << std::endl;
9308  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 179 << std::endl;
9309  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 179 << std::endl;
9310 #endif
9311  va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[10]);
9312 
9313 #ifdef MAP_ISO_DEBUG
9314  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 179 << std::endl;
9315  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 179 << std::endl;
9316  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 179 << std::endl;
9317 #endif
9318 }
9319 
9320 template<>
9321 void AddLinesAndFaces<180>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9322 {
9323  va.AddLine(vertex_id[2],vertex_id[1]);
9324  va.AddLine(vertex_id[5],vertex_id[1]);
9325  va.AddLine(vertex_id[5],vertex_id[4]);
9326  va.AddLine(vertex_id[6],vertex_id[1]);
9327  va.AddLine(vertex_id[6],vertex_id[2]);
9328  va.AddLine(vertex_id[6],vertex_id[5]);
9329  va.AddLine(vertex_id[7],vertex_id[2]);
9330  va.AddLine(vertex_id[7],vertex_id[4]);
9331  va.AddLine(vertex_id[7],vertex_id[6]);
9332  va.AddLine(vertex_id[9],vertex_id[1]);
9333  va.AddLine(vertex_id[9],vertex_id[5]);
9334  va.AddLine(vertex_id[9],vertex_id[6]);
9335  va.AddLine(vertex_id[10],vertex_id[2]);
9336  va.AddLine(vertex_id[10],vertex_id[6]);
9337  va.AddLine(vertex_id[10],vertex_id[7]);
9338  va.AddLine(vertex_id[10],vertex_id[9]);
9339  va.AddTriN(vertex_id[7],vertex_id[5],vertex_id[4]);
9340 
9341 #ifdef MAP_ISO_DEBUG
9342  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 180 << std::endl;
9343  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 180 << std::endl;
9344  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 180 << std::endl;
9345 #endif
9346  va.AddTriN(vertex_id[7],vertex_id[1],vertex_id[5]);
9347 
9348 #ifdef MAP_ISO_DEBUG
9349  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 180 << std::endl;
9350  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 180 << std::endl;
9351  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 180 << std::endl;
9352 #endif
9353  va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[1]);
9354 
9355 #ifdef MAP_ISO_DEBUG
9356  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 180 << std::endl;
9357  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 180 << std::endl;
9358  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 180 << std::endl;
9359 #endif
9360  va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
9361 
9362 #ifdef MAP_ISO_DEBUG
9363  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 180 << std::endl;
9364  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 180 << std::endl;
9365  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 180 << std::endl;
9366 #endif
9367  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
9368 
9369 #ifdef MAP_ISO_DEBUG
9370  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 180 << std::endl;
9371  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 180 << std::endl;
9372  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 180 << std::endl;
9373 #endif
9374  va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[2]);
9375 
9376 #ifdef MAP_ISO_DEBUG
9377  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 180 << std::endl;
9378  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 180 << std::endl;
9379  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 180 << std::endl;
9380 #endif
9381  va.AddTriN(vertex_id[10],vertex_id[6],vertex_id[9]);
9382 
9383 #ifdef MAP_ISO_DEBUG
9384  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 180 << std::endl;
9385  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 180 << std::endl;
9386  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 180 << std::endl;
9387 #endif
9388  va.AddTriN(vertex_id[10],vertex_id[7],vertex_id[6]);
9389 
9390 #ifdef MAP_ISO_DEBUG
9391  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 180 << std::endl;
9392  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 180 << std::endl;
9393  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 180 << std::endl;
9394 #endif
9395 }
9396 
9397 template<>
9398 void AddLinesAndFaces<181>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9399 {
9400  va.AddLine(vertex_id[1],vertex_id[0]);
9401  va.AddLine(vertex_id[2],vertex_id[0]);
9402  va.AddLine(vertex_id[2],vertex_id[1]);
9403  va.AddLine(vertex_id[3],vertex_id[0]);
9404  va.AddLine(vertex_id[3],vertex_id[1]);
9405  va.AddLine(vertex_id[3],vertex_id[2]);
9406  va.AddLine(vertex_id[5],vertex_id[0]);
9407  va.AddLine(vertex_id[5],vertex_id[1]);
9408  va.AddLine(vertex_id[6],vertex_id[1]);
9409  va.AddLine(vertex_id[6],vertex_id[2]);
9410  va.AddLine(vertex_id[6],vertex_id[5]);
9411  va.AddLine(vertex_id[7],vertex_id[2]);
9412  va.AddLine(vertex_id[7],vertex_id[3]);
9413  va.AddLine(vertex_id[7],vertex_id[6]);
9414  va.AddLine(vertex_id[9],vertex_id[1]);
9415  va.AddLine(vertex_id[9],vertex_id[5]);
9416  va.AddLine(vertex_id[9],vertex_id[6]);
9417  va.AddLine(vertex_id[10],vertex_id[2]);
9418  va.AddLine(vertex_id[10],vertex_id[6]);
9419  va.AddLine(vertex_id[10],vertex_id[7]);
9420  va.AddLine(vertex_id[10],vertex_id[9]);
9421  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
9422 
9423 #ifdef MAP_ISO_DEBUG
9424  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 181 << std::endl;
9425  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 181 << std::endl;
9426  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 181 << std::endl;
9427 #endif
9428  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[0]);
9429 
9430 #ifdef MAP_ISO_DEBUG
9431  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
9432  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 181 << std::endl;
9433  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 181 << std::endl;
9434 #endif
9435  va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[5]);
9436 
9437 #ifdef MAP_ISO_DEBUG
9438  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
9439  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 181 << std::endl;
9440  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 181 << std::endl;
9441 #endif
9442  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
9443 
9444 #ifdef MAP_ISO_DEBUG
9445  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
9446  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 181 << std::endl;
9447  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 181 << std::endl;
9448 #endif
9449  va.AddTriN(vertex_id[3],vertex_id[1],vertex_id[6]);
9450 
9451 #ifdef MAP_ISO_DEBUG
9452  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
9453  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 181 << std::endl;
9454  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 181 << std::endl;
9455 #endif
9456  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[1]);
9457 
9458 #ifdef MAP_ISO_DEBUG
9459  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
9460  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 181 << std::endl;
9461  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 181 << std::endl;
9462 #endif
9463  va.AddTriN(vertex_id[3],vertex_id[5],vertex_id[9]);
9464 
9465 #ifdef MAP_ISO_DEBUG
9466  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
9467  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 181 << std::endl;
9468  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 181 << std::endl;
9469 #endif
9470  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[5]);
9471 
9472 #ifdef MAP_ISO_DEBUG
9473  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
9474  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 181 << std::endl;
9475  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 181 << std::endl;
9476 #endif
9477  va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[6]);
9478 
9479 #ifdef MAP_ISO_DEBUG
9480  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
9481  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 181 << std::endl;
9482  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 181 << std::endl;
9483 #endif
9484  va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[7]);
9485 
9486 #ifdef MAP_ISO_DEBUG
9487  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
9488  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 181 << std::endl;
9489  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 181 << std::endl;
9490 #endif
9491  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
9492 
9493 #ifdef MAP_ISO_DEBUG
9494  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
9495  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 181 << std::endl;
9496  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 181 << std::endl;
9497 #endif
9498  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[10]);
9499 
9500 #ifdef MAP_ISO_DEBUG
9501  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
9502  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 181 << std::endl;
9503  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 181 << std::endl;
9504 #endif
9505  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[6]);
9506 
9507 #ifdef MAP_ISO_DEBUG
9508  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
9509  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 181 << std::endl;
9510  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 181 << std::endl;
9511 #endif
9512  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[9]);
9513 
9514 #ifdef MAP_ISO_DEBUG
9515  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
9516  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 181 << std::endl;
9517  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 181 << std::endl;
9518 #endif
9519  va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[10]);
9520 
9521 #ifdef MAP_ISO_DEBUG
9522  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 181 << std::endl;
9523  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 181 << std::endl;
9524  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 181 << std::endl;
9525 #endif
9526 }
9527 
9528 template<>
9529 void AddLinesAndFaces<182>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9530 {
9531  va.AddLine(vertex_id[2],vertex_id[0]);
9532  va.AddLine(vertex_id[4],vertex_id[0]);
9533  va.AddLine(vertex_id[6],vertex_id[2]);
9534  va.AddLine(vertex_id[7],vertex_id[2]);
9535  va.AddLine(vertex_id[7],vertex_id[4]);
9536  va.AddLine(vertex_id[7],vertex_id[6]);
9537  va.AddLine(vertex_id[9],vertex_id[6]);
9538  va.AddLine(vertex_id[10],vertex_id[2]);
9539  va.AddLine(vertex_id[10],vertex_id[6]);
9540  va.AddLine(vertex_id[10],vertex_id[7]);
9541  va.AddLine(vertex_id[10],vertex_id[9]);
9542  va.AddTriN(vertex_id[7],vertex_id[0],vertex_id[4]);
9543 
9544 #ifdef MAP_ISO_DEBUG
9545  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 182 << std::endl;
9546  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 182 << std::endl;
9547  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 182 << std::endl;
9548 #endif
9549  va.AddTriN(vertex_id[7],vertex_id[2],vertex_id[0]);
9550 
9551 #ifdef MAP_ISO_DEBUG
9552  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 182 << std::endl;
9553  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 182 << std::endl;
9554  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 182 << std::endl;
9555 #endif
9556  va.AddTriN(vertex_id[6],vertex_id[10],vertex_id[2]);
9557 
9558 #ifdef MAP_ISO_DEBUG
9559  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 182 << std::endl;
9560  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 182 << std::endl;
9561  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 182 << std::endl;
9562 #endif
9563  va.AddTriN(vertex_id[10],vertex_id[6],vertex_id[9]);
9564 
9565 #ifdef MAP_ISO_DEBUG
9566  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 182 << std::endl;
9567  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 182 << std::endl;
9568  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 182 << std::endl;
9569 #endif
9570  va.AddTriN(vertex_id[10],vertex_id[7],vertex_id[6]);
9571 
9572 #ifdef MAP_ISO_DEBUG
9573  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 182 << std::endl;
9574  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 182 << std::endl;
9575  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 182 << std::endl;
9576 #endif
9577 }
9578 
9579 template<>
9580 void AddLinesAndFaces<183>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9581 {
9582  va.AddLine(vertex_id[3],vertex_id[2]);
9583  va.AddLine(vertex_id[6],vertex_id[2]);
9584  va.AddLine(vertex_id[7],vertex_id[2]);
9585  va.AddLine(vertex_id[7],vertex_id[3]);
9586  va.AddLine(vertex_id[7],vertex_id[6]);
9587  va.AddLine(vertex_id[9],vertex_id[6]);
9588  va.AddLine(vertex_id[10],vertex_id[2]);
9589  va.AddLine(vertex_id[10],vertex_id[6]);
9590  va.AddLine(vertex_id[10],vertex_id[7]);
9591  va.AddLine(vertex_id[10],vertex_id[9]);
9592  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[2]);
9593 
9594 #ifdef MAP_ISO_DEBUG
9595  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 183 << std::endl;
9596  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 183 << std::endl;
9597  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 183 << std::endl;
9598 #endif
9599  va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[6]);
9600 
9601 #ifdef MAP_ISO_DEBUG
9602  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 183 << std::endl;
9603  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 183 << std::endl;
9604  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 183 << std::endl;
9605 #endif
9606  va.AddTriN(vertex_id[3],vertex_id[2],vertex_id[7]);
9607 
9608 #ifdef MAP_ISO_DEBUG
9609  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 183 << std::endl;
9610  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 183 << std::endl;
9611  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 183 << std::endl;
9612 #endif
9613  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[2]);
9614 
9615 #ifdef MAP_ISO_DEBUG
9616  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 183 << std::endl;
9617  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 183 << std::endl;
9618  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 183 << std::endl;
9619 #endif
9620  va.AddTriN(vertex_id[3],vertex_id[6],vertex_id[10]);
9621 
9622 #ifdef MAP_ISO_DEBUG
9623  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 183 << std::endl;
9624  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 183 << std::endl;
9625  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 183 << std::endl;
9626 #endif
9627  va.AddTriN(vertex_id[3],vertex_id[9],vertex_id[6]);
9628 
9629 #ifdef MAP_ISO_DEBUG
9630  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 183 << std::endl;
9631  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 183 << std::endl;
9632  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 183 << std::endl;
9633 #endif
9634  va.AddTriN(vertex_id[3],vertex_id[10],vertex_id[9]);
9635 
9636 #ifdef MAP_ISO_DEBUG
9637  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 183 << std::endl;
9638  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 183 << std::endl;
9639  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 183 << std::endl;
9640 #endif
9641  va.AddTriN(vertex_id[3],vertex_id[7],vertex_id[10]);
9642 
9643 #ifdef MAP_ISO_DEBUG
9644  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 183 << std::endl;
9645  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 183 << std::endl;
9646  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 183 << std::endl;
9647 #endif
9648 }
9649 
9650 template<>
9651 void AddLinesAndFaces<184>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9652 {
9653  va.AddLine(vertex_id[3],vertex_id[2]);
9654  va.AddLine(vertex_id[4],vertex_id[3]);
9655  va.AddLine(vertex_id[5],vertex_id[4]);
9656  va.AddLine(vertex_id[9],vertex_id[5]);
9657  va.AddLine(vertex_id[10],vertex_id[2]);
9658  va.AddLine(vertex_id[10],vertex_id[9]);
9659  va.AddTriN(vertex_id[4],vertex_id[9],vertex_id[5]);
9660 
9661 #ifdef MAP_ISO_DEBUG
9662  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 184 << std::endl;
9663  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 184 << std::endl;
9664  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 184 << std::endl;
9665 #endif
9666  va.AddTriN(vertex_id[4],vertex_id[10],vertex_id[9]);
9667 
9668 #ifdef MAP_ISO_DEBUG
9669  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 184 << std::endl;
9670  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 184 << std::endl;
9671  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 184 << std::endl;
9672 #endif
9673  va.AddTriN(vertex_id[4],vertex_id[2],vertex_id[10]);
9674 
9675 #ifdef MAP_ISO_DEBUG
9676  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 184 << std::endl;
9677  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 184 << std::endl;
9678  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 184 << std::endl;
9679 #endif
9680  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[2]);
9681 
9682 #ifdef MAP_ISO_DEBUG
9683  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 184 << std::endl;
9684  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 184 << std::endl;
9685  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 184 << std::endl;
9686 #endif
9687 }
9688 
9689 template<>
9690 void AddLinesAndFaces<185>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9691 {
9692  va.AddLine(vertex_id[2],vertex_id[0]);
9693  va.AddLine(vertex_id[5],vertex_id[0]);
9694  va.AddLine(vertex_id[9],vertex_id[5]);
9695  va.AddLine(vertex_id[10],vertex_id[2]);
9696  va.AddLine(vertex_id[10],vertex_id[9]);
9697  va.AddTriN(vertex_id[2],vertex_id[5],vertex_id[0]);
9698 
9699 #ifdef MAP_ISO_DEBUG
9700  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 185 << std::endl;
9701  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 185 << std::endl;
9702  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 185 << std::endl;
9703 #endif
9704  va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[5]);
9705 
9706 #ifdef MAP_ISO_DEBUG
9707  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 185 << std::endl;
9708  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 185 << std::endl;
9709  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 185 << std::endl;
9710 #endif
9711  va.AddTriN(vertex_id[2],vertex_id[10],vertex_id[9]);
9712 
9713 #ifdef MAP_ISO_DEBUG
9714  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 185 << std::endl;
9715  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 185 << std::endl;
9716  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 185 << std::endl;
9717 #endif
9718 }
9719 
9720 template<>
9721 void AddLinesAndFaces<186>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9722 {
9723  va.AddLine(vertex_id[1],vertex_id[0]);
9724  va.AddLine(vertex_id[2],vertex_id[0]);
9725  va.AddLine(vertex_id[2],vertex_id[1]);
9726  va.AddLine(vertex_id[3],vertex_id[0]);
9727  va.AddLine(vertex_id[3],vertex_id[1]);
9728  va.AddLine(vertex_id[3],vertex_id[2]);
9729  va.AddLine(vertex_id[4],vertex_id[0]);
9730  va.AddLine(vertex_id[4],vertex_id[3]);
9731  va.AddLine(vertex_id[9],vertex_id[1]);
9732  va.AddLine(vertex_id[10],vertex_id[2]);
9733  va.AddLine(vertex_id[10],vertex_id[9]);
9734  va.AddTriN(vertex_id[1],vertex_id[2],vertex_id[0]);
9735 
9736 #ifdef MAP_ISO_DEBUG
9737  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 186 << std::endl;
9738  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 186 << std::endl;
9739  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 186 << std::endl;
9740 #endif
9741  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
9742 
9743 #ifdef MAP_ISO_DEBUG
9744  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 186 << std::endl;
9745  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 186 << std::endl;
9746  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 186 << std::endl;
9747 #endif
9748  va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[10]);
9749 
9750 #ifdef MAP_ISO_DEBUG
9751  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 186 << std::endl;
9752  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 186 << std::endl;
9753  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 186 << std::endl;
9754 #endif
9755  va.AddTriN(vertex_id[2],vertex_id[1],vertex_id[9]);
9756 
9757 #ifdef MAP_ISO_DEBUG
9758  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 186 << std::endl;
9759  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 186 << std::endl;
9760  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 186 << std::endl;
9761 #endif
9762  va.AddTriN(vertex_id[2],vertex_id[3],vertex_id[1]);
9763 
9764 #ifdef MAP_ISO_DEBUG
9765  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 186 << std::endl;
9766  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 186 << std::endl;
9767  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 186 << std::endl;
9768 #endif
9769 }
9770 
9771 template<>
9772 void AddLinesAndFaces<187>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9773 {
9774  va.AddLine(vertex_id[2],vertex_id[1]);
9775  va.AddLine(vertex_id[9],vertex_id[1]);
9776  va.AddLine(vertex_id[10],vertex_id[2]);
9777  va.AddLine(vertex_id[10],vertex_id[9]);
9778  va.AddTriN(vertex_id[2],vertex_id[9],vertex_id[1]);
9779 
9780 #ifdef MAP_ISO_DEBUG
9781  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 187 << std::endl;
9782  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 187 << std::endl;
9783  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 187 << std::endl;
9784 #endif
9785  va.AddTriN(vertex_id[2],vertex_id[10],vertex_id[9]);
9786 
9787 #ifdef MAP_ISO_DEBUG
9788  if(vertex_id[2]==0) std::cerr << "ISO_DEBUG: " << 2 << " " << 187 << std::endl;
9789  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 187 << std::endl;
9790  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 187 << std::endl;
9791 #endif
9792 }
9793 
9794 template<>
9795 void AddLinesAndFaces<188>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9796 {
9797  va.AddLine(vertex_id[3],vertex_id[1]);
9798  va.AddLine(vertex_id[4],vertex_id[3]);
9799  va.AddLine(vertex_id[5],vertex_id[1]);
9800  va.AddLine(vertex_id[5],vertex_id[4]);
9801  va.AddLine(vertex_id[6],vertex_id[1]);
9802  va.AddLine(vertex_id[6],vertex_id[5]);
9803  va.AddLine(vertex_id[9],vertex_id[1]);
9804  va.AddLine(vertex_id[9],vertex_id[5]);
9805  va.AddLine(vertex_id[9],vertex_id[6]);
9806  va.AddLine(vertex_id[10],vertex_id[6]);
9807  va.AddLine(vertex_id[10],vertex_id[9]);
9808  va.AddTriN(vertex_id[4],vertex_id[1],vertex_id[5]);
9809 
9810 #ifdef MAP_ISO_DEBUG
9811  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 188 << std::endl;
9812  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 188 << std::endl;
9813  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 188 << std::endl;
9814 #endif
9815  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[1]);
9816 
9817 #ifdef MAP_ISO_DEBUG
9818  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 188 << std::endl;
9819  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 188 << std::endl;
9820  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 188 << std::endl;
9821 #endif
9822  va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
9823 
9824 #ifdef MAP_ISO_DEBUG
9825  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 188 << std::endl;
9826  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 188 << std::endl;
9827  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 188 << std::endl;
9828 #endif
9829  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
9830 
9831 #ifdef MAP_ISO_DEBUG
9832  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 188 << std::endl;
9833  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 188 << std::endl;
9834  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 188 << std::endl;
9835 #endif
9836  va.AddTriN(vertex_id[10],vertex_id[9],vertex_id[6]);
9837 
9838 #ifdef MAP_ISO_DEBUG
9839  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 188 << std::endl;
9840  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 188 << std::endl;
9841  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 188 << std::endl;
9842 #endif
9843 }
9844 
9845 template<>
9846 void AddLinesAndFaces<189>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9847 {
9848  va.AddLine(vertex_id[1],vertex_id[0]);
9849  va.AddLine(vertex_id[5],vertex_id[0]);
9850  va.AddLine(vertex_id[5],vertex_id[1]);
9851  va.AddLine(vertex_id[6],vertex_id[1]);
9852  va.AddLine(vertex_id[6],vertex_id[5]);
9853  va.AddLine(vertex_id[9],vertex_id[1]);
9854  va.AddLine(vertex_id[9],vertex_id[5]);
9855  va.AddLine(vertex_id[9],vertex_id[6]);
9856  va.AddLine(vertex_id[10],vertex_id[6]);
9857  va.AddLine(vertex_id[10],vertex_id[9]);
9858  va.AddTriN(vertex_id[1],vertex_id[5],vertex_id[0]);
9859 
9860 #ifdef MAP_ISO_DEBUG
9861  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 189 << std::endl;
9862  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 189 << std::endl;
9863  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 189 << std::endl;
9864 #endif
9865  va.AddTriN(vertex_id[6],vertex_id[9],vertex_id[1]);
9866 
9867 #ifdef MAP_ISO_DEBUG
9868  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 189 << std::endl;
9869  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 189 << std::endl;
9870  if(vertex_id[1]==0) std::cerr << "ISO_DEBUG: " << 1 << " " << 189 << std::endl;
9871 #endif
9872  va.AddTriN(vertex_id[6],vertex_id[5],vertex_id[9]);
9873 
9874 #ifdef MAP_ISO_DEBUG
9875  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 189 << std::endl;
9876  if(vertex_id[5]==0) std::cerr << "ISO_DEBUG: " << 5 << " " << 189 << std::endl;
9877  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 189 << std::endl;
9878 #endif
9879  va.AddTriN(vertex_id[10],vertex_id[9],vertex_id[6]);
9880 
9881 #ifdef MAP_ISO_DEBUG
9882  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 189 << std::endl;
9883  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 189 << std::endl;
9884  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 189 << std::endl;
9885 #endif
9886 }
9887 
9888 template<>
9889 void AddLinesAndFaces<190>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9890 {
9891  va.AddLine(vertex_id[3],vertex_id[0]);
9892  va.AddLine(vertex_id[4],vertex_id[0]);
9893  va.AddLine(vertex_id[4],vertex_id[3]);
9894  va.AddLine(vertex_id[9],vertex_id[6]);
9895  va.AddLine(vertex_id[10],vertex_id[6]);
9896  va.AddLine(vertex_id[10],vertex_id[9]);
9897  va.AddTriN(vertex_id[4],vertex_id[3],vertex_id[0]);
9898 
9899 #ifdef MAP_ISO_DEBUG
9900  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 190 << std::endl;
9901  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 190 << std::endl;
9902  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 190 << std::endl;
9903 #endif
9904  va.AddTriN(vertex_id[10],vertex_id[9],vertex_id[6]);
9905 
9906 #ifdef MAP_ISO_DEBUG
9907  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 190 << std::endl;
9908  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 190 << std::endl;
9909  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 190 << std::endl;
9910 #endif
9911 }
9912 
9913 template<>
9914 void AddLinesAndFaces<191>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9915 {
9916  va.AddLine(vertex_id[9],vertex_id[6]);
9917  va.AddLine(vertex_id[10],vertex_id[6]);
9918  va.AddLine(vertex_id[10],vertex_id[9]);
9919  va.AddTriN(vertex_id[10],vertex_id[9],vertex_id[6]);
9920 
9921 #ifdef MAP_ISO_DEBUG
9922  if(vertex_id[10]==0) std::cerr << "ISO_DEBUG: " << 10 << " " << 191 << std::endl;
9923  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 191 << std::endl;
9924  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 191 << std::endl;
9925 #endif
9926 }
9927 
9928 template<>
9929 void AddLinesAndFaces<192>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9930 {
9931  va.AddLine(vertex_id[7],vertex_id[6]);
9932  va.AddLine(vertex_id[9],vertex_id[6]);
9933  va.AddLine(vertex_id[11],vertex_id[7]);
9934  va.AddLine(vertex_id[11],vertex_id[9]);
9935  va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[9]);
9936 
9937 #ifdef MAP_ISO_DEBUG
9938  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 192 << std::endl;
9939  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 192 << std::endl;
9940  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 192 << std::endl;
9941 #endif
9942  va.AddTriN(vertex_id[11],vertex_id[7],vertex_id[6]);
9943 
9944 #ifdef MAP_ISO_DEBUG
9945  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 192 << std::endl;
9946  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 192 << std::endl;
9947  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 192 << std::endl;
9948 #endif
9949 }
9950 
9951 template<>
9952 void AddLinesAndFaces<193>(IndexedVertexArray& va,unsigned int vertex_id[12] )
9953 {
9954  va.AddLine(vertex_id[3],vertex_id[0]);
9955  va.AddLine(vertex_id[4],vertex_id[0]);
9956  va.AddLine(vertex_id[4],vertex_id[3]);
9957  va.AddLine(vertex_id[7],vertex_id[3]);
9958  va.AddLine(vertex_id[7],vertex_id[4]);
9959  va.AddLine(vertex_id[7],vertex_id[6]);
9960  va.AddLine(vertex_id[9],vertex_id[6]);
9961  va.AddLine(vertex_id[11],vertex_id[3]);
9962  va.AddLine(vertex_id[11],vertex_id[4]);
9963  va.AddLine(vertex_id[11],vertex_id[7]);
9964  va.AddLine(vertex_id[11],vertex_id[9]);
9965  va.AddTriN(vertex_id[3],vertex_id[4],vertex_id[0]);
9966 
9967 #ifdef MAP_ISO_DEBUG
9968  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 193 << std::endl;
9969  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 193 << std::endl;
9970  if(vertex_id[0]==0) std::cerr << "ISO_DEBUG: " << 0 << " " << 193 << std::endl;
9971 #endif
9972  va.AddTriN(vertex_id[7],vertex_id[11],vertex_id[3]);
9973 
9974 #ifdef MAP_ISO_DEBUG
9975  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 193 << std::endl;
9976  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 193 << std::endl;
9977  if(vertex_id[3]==0) std::cerr << "ISO_DEBUG: " << 3 << " " << 193 << std::endl;
9978 #endif
9979  va.AddTriN(vertex_id[7],vertex_id[4],vertex_id[11]);
9980 
9981 #ifdef MAP_ISO_DEBUG
9982  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 193 << std::endl;
9983  if(vertex_id[4]==0) std::cerr << "ISO_DEBUG: " << 4 << " " << 193 << std::endl;
9984  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 193 << std::endl;
9985 #endif
9986  va.AddTriN(vertex_id[11],vertex_id[6],vertex_id[9]);
9987 
9988 #ifdef MAP_ISO_DEBUG
9989  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 193 << std::endl;
9990  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 193 << std::endl;
9991  if(vertex_id[9]==0) std::cerr << "ISO_DEBUG: " << 9 << " " << 193 << std::endl;
9992 #endif
9993  va.AddTriN(vertex_id[11],vertex_id[7],vertex_id[6]);
9994 
9995 #ifdef MAP_ISO_DEBUG
9996  if(vertex_id[11]==0) std::cerr << "ISO_DEBUG: " << 11 << " " << 193 << std::endl;
9997  if(vertex_id[7]==0) std::cerr << "ISO_DEBUG: " << 7 << " " << 193 << std::endl;
9998  if(vertex_id[6]==0) std::cerr << "ISO_DEBUG: " << 6 << " " << 193 << std::endl;
9999 #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 
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 }}} // ns