| 2308 | //------------------------------------------------------------------------------ |
| 2309 | |
| 2310 | unsigned char vtkMPASReader::GetCellType() |
| 2311 | { |
| 2312 | // write cell types |
| 2313 | unsigned char cellType = VTK_TRIANGLE; |
| 2314 | switch (this->PointsPerCell) |
| 2315 | { |
| 2316 | case 3: |
| 2317 | if (!ShowMultilayerView) |
| 2318 | { |
| 2319 | cellType = VTK_TRIANGLE; |
| 2320 | } |
| 2321 | else |
| 2322 | { |
| 2323 | cellType = VTK_WEDGE; |
| 2324 | } |
| 2325 | break; |
| 2326 | case 4: |
| 2327 | if (!ShowMultilayerView) |
| 2328 | { |
| 2329 | cellType = VTK_QUAD; |
| 2330 | } |
| 2331 | else |
| 2332 | { |
| 2333 | cellType = VTK_HEXAHEDRON; |
| 2334 | } |
| 2335 | break; |
| 2336 | default: |
| 2337 | break; |
| 2338 | } |
| 2339 | return cellType; |
| 2340 | } |
| 2341 | |
| 2342 | //------------------------------------------------------------------------------ |
| 2343 | // Add cells to vtk data structures |
no outgoing calls