VTK  9.3.1
vtkCellType.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkCellType_h
15 #define vtkCellType_h
16 
17 #include "vtkABINamespace.h"
18 
19 // To add a new cell type, define a new integer type flag here, then
20 // create a subclass of vtkCell to implement the proper behavior. You
21 // may have to modify the following methods: vtkDataSet (and subclasses)
22 // GetCell() and vtkGenericCell::SetCellType(). Also, to do the job right,
23 // you'll also have to modify some filters (vtkGeometryFilter...) and
24 // regression tests (example scripts) to reflect the new cell addition.
25 // Also, make sure to update vtkCellTypesStrings in vtkCellTypes.cxx
26 // and the vtkCellTypes::IsLinear method in vtkCellTypes.h.
27 
28 // .SECTION Caveats
29 // An unstructured grid stores the types of its cells as a
30 // unsigned char array. Therefore, the maximum encoding number for a cell type
31 // is 255.
32 
33 VTK_ABI_NAMESPACE_BEGIN
34 typedef enum
35 {
36  // Linear cells
40  VTK_LINE = 3,
45  VTK_PIXEL = 8,
46  VTK_QUAD = 9,
47  VTK_TETRA = 10,
48  VTK_VOXEL = 11,
50  VTK_WEDGE = 13,
54 
55  // Quadratic, isoparametric cells
72 
73  // Cubic, isoparametric cell
75 
76  // Special class of cells formed by convex group of points
78 
79  // Polyhedron cell (consisting of polygonal faces)
81 
82  // Higher order cells in parametric form
89 
90  // Higher order cells
99 
100  // Arbitrary order Lagrange elements (formulated separated from generic higher order cells)
108 
109  // Arbitrary order Bezier elements (formulated separated from generic higher order cells)
117 
119 } VTKCellType;
120 
121 VTK_ABI_NAMESPACE_END
122 #endif
123 // VTK-HeaderTest-Exclude: vtkCellType.h
VTKCellType
Definition: vtkCellType.h:34