Go to the documentation of this file.
73 #ifndef vtkm_worklet_contourtree_mesh3d_dem_vertex_starter_h
74 #define vtkm_worklet_contourtree_mesh3d_dem_vertex_starter_h
117 template <
typename InFieldPortalType>
119 const InFieldPortalType& values,
131 bool isLeft = (col == 0);
132 bool isRight = (col ==
nCols - 1);
133 bool isTop = (row == 0);
134 bool isBottom = (row ==
nRows - 1);
135 bool isFront = (slice == 0);
136 bool isBack = (slice ==
nSlices - 1);
148 if (isBack || isRight || isBottom)
158 if (isBack || isBottom)
168 if (isBack || isRight)
188 if (isBottom || isRight)
190 nbr = vertex +
nCols + 1;
200 nbr = vertex +
nCols;
220 nbr = vertex -
nCols - 1;
238 if (isLeft || isFront)
258 if (isTop || isFront)
270 nbr = vertex -
nCols;
278 if (isTop || isLeft || isFront)
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
A control signature tag for output fields.
Definition: WorkletMapField.h:60
void(FieldIn vertex, WholeArrayIn values, FieldOut chain, FieldOut linkMask) ControlSignature
Definition: Mesh3D_DEM_VertexStarter.h:97
#define VERTEX_ROW_3D(V, NROWS, NCOLS)
Definition: Mesh3D_DEM_Triangulation_Macros.h:70
bool ascending
Definition: Mesh3D_DEM_VertexStarter.h:104
vtkm::Id nRows
Definition: Mesh3D_DEM_VertexStarter.h:101
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
#define N_INCIDENT_EDGES_3D
Definition: Mesh3D_DEM_Triangulation_Macros.h:66
Definition: Mesh3D_DEM_VertexStarter.h:89
A control signature tag for input fields.
Definition: WorkletMapField.h:49
void(_1, _2, _3, _4) ExecutionSignature
Definition: Mesh3D_DEM_VertexStarter.h:98
vtkm::Id nSlices
Definition: Mesh3D_DEM_VertexStarter.h:103
Definition: VertexValueComparator.h:83
VTKM_EXEC void operator()(const vtkm::Id &vertex, const InFieldPortalType &values, vtkm::Id &chain, vtkm::Id &linkMask) const
Definition: Mesh3D_DEM_VertexStarter.h:118
VTKM_EXEC_CONT Mesh3D_DEM_VertexStarter(vtkm::Id NRows, vtkm::Id NCols, vtkm::Id NSlices, bool Ascending)
Definition: Mesh3D_DEM_VertexStarter.h:108
vtkm::Id nCols
Definition: Mesh3D_DEM_VertexStarter.h:102
#define VERTEX_SLICE_3D(V, NROWS, NCOLS)
Definition: Mesh3D_DEM_Triangulation_Macros.h:76
_1 InputDomain
Definition: Mesh3D_DEM_VertexStarter.h:99
#define VERTEX_COL_3D(V, NROWS, NCOLS)
Definition: Mesh3D_DEM_Triangulation_Macros.h:73
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38