VTK  9.0.1
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 {
45  // Linear cells
49  VTK_LINE = 3,
54  VTK_PIXEL = 8,
55  VTK_QUAD = 9,
56  VTK_TETRA = 10,
57  VTK_VOXEL = 11,
59  VTK_WEDGE = 13,
63 
64  // Quadratic, isoparametric cells
80 
81  // Cubic, isoparametric cell
83 
84  // Special class of cells formed by convex group of points
86 
87  // Polyhedron cell (consisting of polygonal faces)
89 
90  // Higher order cells in parametric form
97 
98  // Higher order cells
107 
108  // Arbitrary order Lagrange elements (formulated separated from generic higher order cells)
116 
117  // Arbitrary order Bezier elements (formulated separated from generic higher order cells)
125 
127 } VTKCellType;
128 
129 #endif
130 // VTK-HeaderTest-Exclude: vtkCellType.h
VTKCellType
Definition: vtkCellType.h:43