Go to the documentation of this file.
73 #ifndef vtkm_worklet_contourtree_mesh2d_dem_triangulation_h
74 #define vtkm_worklet_contourtree_mesh2d_dem_triangulation_h
101 template <
typename T,
typename StorageType>
127 template <
typename T,
typename StorageType>
132 neighbourhoodMask.Allocate(NumVertices);
140 vertexStarterDispatcher.Invoke(vertexIndexArray,
147 template <
typename T,
typename StorageType>
165 template <
typename T,
typename StorageType>
181 vertexOutdegreeStarterDispatcher(vertexOutdegreeStarter);
183 vertexOutdegreeStarterDispatcher.Invoke(vertexIndexArray,
242 saddleStarterDispatcher.Invoke(criticalVertsIndexArray,
vtkm::Id NumVertices
Definition: Mesh2D_DEM_Triangulation.h:109
Definition: ChainGraph.h:127
vtkm::cont::ArrayHandle< vtkm::Id > prunesTo
Definition: ChainGraph.h:148
vtkm::cont::ArrayHandle< vtkm::Id > neighbourhoodMask
Definition: Mesh2D_DEM_Triangulation.h:112
void AllocateEdgeArrays(vtkm::Id Size)
Definition: ChainGraph.h:231
vtkm::cont::ArrayHandle< vtkm::Id > activeVertices
Definition: ChainGraph.h:164
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_CONT void Allocate(vtkm::Id numberOfValues, vtkm::CopyFlag preserve, vtkm::cont::Token &token) const
Allocates an array large enough to hold the given number of values.
Definition: ArrayHandle.h:465
vtkm::Id nCols
Definition: Mesh2D_DEM_Triangulation.h:109
vtkm::cont::ArrayHandle< vtkm::Id > chainExtremum
Definition: ChainGraph.h:157
VTKM_CONT T ArrayGetValue(vtkm::Id id, const vtkm::cont::ArrayHandle< T, S > &data)
Obtain a small set of values from an ArrayHandle with minimal device transfers.
Definition: ArrayGetValues.h:264
static VTKM_CONT bool Copy(vtkm::cont::DeviceAdapterId devId, const vtkm::cont::ArrayHandle< T, CIn > &input, vtkm::cont::ArrayHandle< U, COut > &output)
Definition: Algorithm.h:410
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
vtkm::cont::ArrayHandle< vtkm::Id > outdegree
Definition: ChainGraph.h:154
void SetSaddleStarts(ChainGraph< T, StorageType > &mergeGraph, bool descending)
Definition: Mesh2D_DEM_Triangulation.h:166
void SetStarts(vtkm::cont::ArrayHandle< vtkm::Id > &chains, bool descending)
Definition: Mesh2D_DEM_Triangulation.h:128
void AllocateVertexArrays(vtkm::Id Size)
Definition: ChainGraph.h:219
Dispatcher for worklets that inherit from WorkletMapField.
Definition: DispatcherMapField.h:25
vtkm::cont::ArrayHandle< vtkm::Id > edgeFar
Definition: ChainGraph.h:160
ArrayHandleZip is a specialization of ArrayHandle.
Definition: ArrayHandleZip.h:251
Definition: Mesh2D_DEM_VertexOutdegreeStarter.h:87
vtkm::cont::ArrayHandle< vtkm::Id > edgeSorter
Definition: ChainGraph.h:168
static VTKM_CONT T ScanExclusive(vtkm::cont::DeviceAdapterId devId, const vtkm::cont::ArrayHandle< T, CIn > &input, vtkm::cont::ArrayHandle< T, COut > &output)
Definition: Algorithm.h:816
Implicitly permutes the values in an array.
Definition: ArrayHandlePermutation.h:227
VTKM_CONT vtkm::cont::ArrayHandleZip< FirstHandleType, SecondHandleType > make_ArrayHandleZip(const FirstHandleType &first, const SecondHandleType &second)
A convenience function for creating an ArrayHandleZip.
Definition: ArrayHandleZip.h:288
Definition: Mesh2D_DEM_SaddleStarter.h:87
void ArrayCopy(const SourceArrayType &source, DestArrayType &destination)
Does a deep copy from one array to another array.
Definition: ArrayCopy.h:142
vtkm::cont::ArrayHandle< vtkm::Id > IdArrayType
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:90
static VTKM_CONT void CopyIf(vtkm::cont::DeviceAdapterId devId, const vtkm::cont::ArrayHandle< T, CIn > &input, const vtkm::cont::ArrayHandle< U, CStencil > &stencil, vtkm::cont::ArrayHandle< T, COut > &output)
Definition: Algorithm.h:435
vtkm::Id nRows
Definition: Mesh2D_DEM_Triangulation.h:109
vtkm::Id nLogSteps
Definition: Mesh2D_DEM_Triangulation.h:109
#define NO_VERTEX_ASSIGNED
Definition: filter/scalar_topology/worklet/contourtree/Types.h:77
An array handle with a constant value.
Definition: ArrayHandleConstant.h:63
vtkm::cont::ArrayHandle< vtkm::Id > valueIndex
Definition: ChainGraph.h:137
vtkm::cont::ArrayHandle< vtkm::Id > & arcArray
Definition: ChainGraph.h:134
vtkm::cont::ArrayHandle< vtkm::Id > firstEdge
Definition: ChainGraph.h:151
Definition: Mesh2D_DEM_Triangulation.h:102
vtkm::cont::ArrayHandle< vtkm::Id > activeEdges
Definition: ChainGraph.h:165
const vtkm::cont::ArrayHandle< T, StorageType > & values
Definition: Mesh2D_DEM_Triangulation.h:106
vtkm::cont::ArrayHandle< vtkm::Id > edgeNear
Definition: ChainGraph.h:161
Definition: Mesh2D_DEM_VertexStarter.h:89
Mesh2D_DEM_Triangulation(const vtkm::cont::ArrayHandle< T, StorageType > &Values, vtkm::Id NRows, vtkm::Id NCols)
Definition: Mesh2D_DEM_Triangulation.h:148
An implicit array handle containing the its own indices.
Definition: ArrayHandleIndex.h:54