VTK-m
2.2
|
Information about a cell based on its tag. More...
#include <CellTraits.h>
Public Types | |
using | TopologicalDimensionsTag = vtkm::CellTopologicalDimensionsTag< TOPOLOGICAL_DIMENSIONS > |
This tag is typedef'ed to vtkm::CellTopologicalDimensionsTag<TOPOLOGICAL_DIMENSIONS> . More... | |
using | IsSizeFixed = vtkm::CellTraitsTagSizeFixed |
A tag specifying whether the number of points is fixed. More... | |
Static Public Attributes | |
static const vtkm::IdComponent | TOPOLOGICAL_DIMENSIONS = 3 |
This defines the topological dimensions of the cell type. More... | |
static constexpr vtkm::IdComponent | NUM_POINTS = 3 |
Number of points in the cell. More... | |
Information about a cell based on its tag.
The templated CellTraits struct provides the basic high level information about cells (like the number of vertices in the cell or its dimensionality).
using vtkm::CellTraits< CellTag >::IsSizeFixed = vtkm::CellTraitsTagSizeFixed |
A tag specifying whether the number of points is fixed.
If set to vtkm::CellTraitsTagSizeFixed
, then NUM_POINTS
is set. If set to vtkm::CellTraitsTagSizeVariable
, then the number of points is not known at compile time.
using vtkm::CellTraits< CellTag >::TopologicalDimensionsTag = vtkm::CellTopologicalDimensionsTag<TOPOLOGICAL_DIMENSIONS> |
This tag is typedef'ed to vtkm::CellTopologicalDimensionsTag<TOPOLOGICAL_DIMENSIONS>
.
This provides a convenient way to overload a function based on topological dimensions (which is usually more efficient than conditionals).
|
staticconstexpr |
Number of points in the cell.
This is only defined for cell shapes of a fixed number of points (i.e., IsSizedFixed
is set to vtkm::CellTraitsTagSizeFixed
).
|
static |
This defines the topological dimensions of the cell type.
3 for polyhedra, 2 for polygons, 1 for lines, 0 for points.