VTK  9.7.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 #include "vtkType.h" // For VTK_DEPRECATED_IN_9_7_0_TYPE
19 
20 // To add a new cell type, define a new integer type flag here, then
21 // create a subclass of vtkCell to implement the proper behavior. You
22 // may have to modify the following methods: vtkDataSet (and subclasses)
23 // GetCell() and vtkGenericCell::SetCellType(). Also, to do the job right,
24 // you'll also have to modify some filters (vtkGeometryFilter...) and
25 // regression tests (example scripts) to reflect the new cell addition.
26 // Also, make sure to update vtkCellTypeUtilities.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
83  VTK_PARAMETRIC_CURVE VTK_DEPRECATED_IN_9_7_0_TYPE("No longer used") = 51,
84  VTK_PARAMETRIC_SURFACE VTK_DEPRECATED_IN_9_7_0_TYPE("No longer used") = 52,
85  VTK_PARAMETRIC_TRI_SURFACE VTK_DEPRECATED_IN_9_7_0_TYPE("No longer used") = 53,
86  VTK_PARAMETRIC_QUAD_SURFACE VTK_DEPRECATED_IN_9_7_0_TYPE("No longer used") = 54,
87  VTK_PARAMETRIC_TETRA_REGION VTK_DEPRECATED_IN_9_7_0_TYPE("No longer used") = 55,
88  VTK_PARAMETRIC_HEX_REGION VTK_DEPRECATED_IN_9_7_0_TYPE("No longer used") = 56,
89 
90  // Higher order cells
91  VTK_HIGHER_ORDER_EDGE VTK_DEPRECATED_IN_9_7_0_TYPE("Replaced by VTK_HIGHER_ORDER_CURVE") = 60,
94  VTK_HIGHER_ORDER_QUAD VTK_DEPRECATED_IN_9_7_0_TYPE("Replaced by VTK_HIGHER_ORDER_QUADRILATERAL") =
95  62,
97  VTK_HIGHER_ORDER_POLYGON VTK_DEPRECATED_IN_9_7_0_TYPE("No longer used") = 63,
100  VTK_HIGHER_ORDER_PYRAMID = 66, // Not Implemented yet, kept as placeholder.
102 
103  // Arbitrary order Lagrange elements (formulated separated from generic higher order cells)
110  VTK_LAGRANGE_PYRAMID = 74, // Not Implemented yet, kept as placeholder.
111 
112  // Arbitrary order Bezier elements (formulated separated from generic higher order cells)
119  VTK_BEZIER_PYRAMID = 81, // Not Implemented yet, kept as placeholder.
120 
122 } VTKCellType;
123 
124 VTK_ABI_NAMESPACE_END
125 #endif
126 // VTK-HeaderTest-Exclude: vtkCellType.h
VTKCellType
Definition: vtkCellType.h:34