VTK
vtkCellType.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCellType.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef vtkCellType_h
27 #define vtkCellType_h
28 
29 // To add a new cell type, define a new integer type flag here, then
30 // create a subclass of vtkCell to implement the proper behavior. You
31 // may have to modify the following methods: vtkDataSet (and subclasses)
32 // GetCell() and vtkGenericCell::SetCellType(). Also, to do the job right,
33 // you'll also have to modify some filters (vtkGeometryFilter...) and
34 // regression tests (example scripts) to reflect the new cell addition.
35 // Also, make sure to update vtkCellTypesStrings in vtkCellTypes.cxx
36 // and the vtkCellTypes::IsLinear method in vtkCellTypes.h.
37 
38 // .SECTION Caveats
39 // An unstructured grid stores the types of its cells as a
40 // unsigned char array. Therefore, the maximum encoding number for a cell type
41 // is 255.
42 
43 typedef enum {
44  // Linear cells
48  VTK_LINE = 3,
53  VTK_PIXEL = 8,
54  VTK_QUAD = 9,
55  VTK_TETRA = 10,
56  VTK_VOXEL = 11,
58  VTK_WEDGE = 13,
62 
63  // Quadratic, isoparametric cells
79 
80  // Cubic, isoparametric cell
82 
83  // Special class of cells formed by convex group of points
85 
86  // Polyhedron cell (consisting of polygonal faces)
88 
89  // Higher order cells in parametric form
96 
97  // Higher order cells
106 
107  // Arbitrary order Lagrange elements (formulated separated from generic higher order cells)
115 
117 } VTKCellType;
118 
119 #endif
120 // VTK-HeaderTest-Exclude: vtkCellType.h
VTKCellType
Definition: vtkCellType.h:43