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 =========================================================================*/
25 #ifndef vtkCellType_h
26 #define vtkCellType_h
27 
28 // To add a new cell type, define a new integer type flag here, then
29 // create a subclass of vtkCell to implement the proper behavior. You
30 // may have to modify the following methods: vtkDataSet (and subclasses)
31 // GetCell() and vtkGenericCell::SetCellType(). Also, to do the job right,
32 // you'll also have to modify some filters (vtkGeometryFilter...) and
33 // regression tests (example scripts) to reflect the new cell addition.
34 // Also, make sure to update vtkCellTypesStrings in vtkCellTypes.cxx
35 // and the vtkCellTypes::IsLinear method in vtkCellTypes.h.
36 
37 // .SECTION Caveats
38 // An unstructured grid stores the types of its cells as a
39 // unsigned char array. Therefore, the maximum encoding number for a cell type
40 // is 255.
41 
42 typedef enum {
43  // Linear cells
47  VTK_LINE = 3,
52  VTK_PIXEL = 8,
53  VTK_QUAD = 9,
54  VTK_TETRA = 10,
55  VTK_VOXEL = 11,
57  VTK_WEDGE = 13,
61 
62  // Quadratic, isoparametric cells
78 
79  // Cubic, isoparametric cell
81 
82  // Special class of cells formed by convex group of points
84 
85  // Polyhedron cell (consisting of polygonal faces)
87 
88  // Higher order cells in parametric form
95 
96  // Higher order cells
105 
107 } VTKCellType;
108 
109 #endif
110 // VTK-HeaderTest-Exclude: vtkCellType.h
VTKCellType
Definition: vtkCellType.h:42