Go to the documentation of this file.
73 #ifndef vtkm_worklet_contourtree_mesh2d_dem_vertex_starter_h
74 #define vtkm_worklet_contourtree_mesh2d_dem_vertex_starter_h
115 template <
typename InFieldPortalType>
117 const InFieldPortalType& values,
128 bool isLeft = (col == 0);
129 bool isRight = (col ==
nCols - 1);
130 bool isTop = (row == 0);
131 bool isBottom = (row ==
nRows - 1);
142 nbr = vertex -
nCols;
152 nbr = vertex -
nCols - 1;
172 nbr = vertex +
nCols;
180 if (isBottom || isRight)
182 nbr = vertex +
nCols + 1;
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VERTEX_COL(V, NCOLS)
Definition: Mesh2D_DEM_Triangulation_Macros.h:82
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
A control signature tag for output fields.
Definition: WorkletMapField.h:60
#define N_INCIDENT_EDGES
Definition: Mesh2D_DEM_Triangulation_Macros.h:75
bool ascending
Definition: Mesh2D_DEM_VertexStarter.h:103
void(FieldIn vertex, WholeArrayIn values, FieldOut chain, FieldOut linkMask) ControlSignature
Definition: Mesh2D_DEM_VertexStarter.h:97
vtkm::Id nCols
Definition: Mesh2D_DEM_VertexStarter.h:102
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
void(_1, _2, _3, _4) ExecutionSignature
Definition: Mesh2D_DEM_VertexStarter.h:98
vtkm::Id nRows
Definition: Mesh2D_DEM_VertexStarter.h:101
A control signature tag for input fields.
Definition: WorkletMapField.h:49
#define VERTEX_ROW(V, NCOLS)
Definition: Mesh2D_DEM_Triangulation_Macros.h:79
Definition: VertexValueComparator.h:83
VTKM_EXEC_CONT Mesh2D_DEM_VertexStarter(vtkm::Id NRows, vtkm::Id NCols, bool Ascending)
Definition: Mesh2D_DEM_VertexStarter.h:107
VTKM_EXEC void operator()(const vtkm::Id &vertex, const InFieldPortalType &values, vtkm::Id &chain, vtkm::Id &linkMask) const
Definition: Mesh2D_DEM_VertexStarter.h:116
_1 InputDomain
Definition: Mesh2D_DEM_VertexStarter.h:99
Definition: Mesh2D_DEM_VertexStarter.h:89
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38