Go to the documentation of this file.
73 #ifndef vtkm_worklet_contourtree_mesh3d_dem_triangulation_h
74 #define vtkm_worklet_contourtree_mesh3d_dem_triangulation_h
101 template <
typename T,
typename StorageType>
132 template <
typename T,
typename StorageType>
159 template <
typename T,
typename StorageType>
164 neighbourhoodMask.Allocate(NumVertices);
172 vertexStarterDispatcher.Invoke(vertexIndexArray,
179 template <
typename T,
typename StorageType>
192 vertexOutdegreeStarterDispatcher(vertexOutdegreeStarter);
194 vertexOutdegreeStarterDispatcher.Invoke(vertexIndexArray,
256 saddleStarterDispatcher.Invoke(criticalVertsIndexArray,
VTKM_CONT vtkm::cont::ArrayHandleBasic< T > make_ArrayHandle(const T *array, vtkm::Id numberOfValues, vtkm::CopyFlag copy)
A convenience function for creating an ArrayHandle from a standard C array.
Definition: ArrayHandleBasic.h:217
Definition: ChainGraph.h:127
vtkm::cont::ArrayHandle< vtkm::Id > prunesTo
Definition: ChainGraph.h:148
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
void SetStarts(vtkm::cont::ArrayHandle< vtkm::Id > &chains, bool descending)
Definition: Mesh3D_DEM_Triangulation.h:160
vtkm::Id nRows
Definition: Mesh3D_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
void SetSaddleStarts(ChainGraph< T, StorageType > &mergeGraph, bool descending)
Definition: Mesh3D_DEM_Triangulation.h:180
Definition: Mesh3D_DEM_Triangulation.h:102
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
vtkm::cont::ArrayHandle< vtkm::Id > outdegree
Definition: ChainGraph.h:154
Definition: Mesh3D_DEM_VertexOutdegreeStarter.h:88
void AllocateVertexArrays(vtkm::Id Size)
Definition: ChainGraph.h:219
Definition: Mesh3D_DEM_VertexStarter.h:89
vtkm::Id nLogSteps
Definition: Mesh3D_DEM_Triangulation.h:109
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
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
vtkm::cont::ArrayHandle< vtkm::IdComponent > neighbourOffsets3D
Definition: Mesh3D_DEM_Triangulation.h:115
const vtkm::IdComponent neighbourOffsets3D[N_INCIDENT_EDGES *2]
Definition: LinkComponentCaseTable2D.h:70
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 NumVertices
Definition: Mesh3D_DEM_Triangulation.h:109
vtkm::Id nSlices
Definition: Mesh3D_DEM_Triangulation.h:109
vtkm::Id nCols
Definition: Mesh3D_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 > neighbourhoodMask
Definition: Mesh3D_DEM_Triangulation.h:112
vtkm::cont::ArrayHandle< vtkm::Id > valueIndex
Definition: ChainGraph.h:137
vtkm::cont::ArrayHandle< vtkm::Id > & arcArray
Definition: ChainGraph.h:134
vtkm::cont::ArrayHandle< vtkm::UInt16 > linkComponentCaseTable3D
Definition: Mesh3D_DEM_Triangulation.h:116
vtkm::cont::ArrayHandle< vtkm::Id > firstEdge
Definition: ChainGraph.h:151
vtkm::cont::ArrayHandle< vtkm::Id > activeEdges
Definition: ChainGraph.h:165
const vtkm::cont::ArrayHandle< T, StorageType > & values
Definition: Mesh3D_DEM_Triangulation.h:106
Mesh3D_DEM_Triangulation(const vtkm::cont::ArrayHandle< T, StorageType > &Values, vtkm::Id NRows, vtkm::Id NCols, vtkm::Id NSlices)
Definition: Mesh3D_DEM_Triangulation.h:133
vtkm::cont::ArrayHandle< vtkm::Id > edgeNear
Definition: ChainGraph.h:161
Definition: Mesh3D_DEM_SaddleStarter.h:88
const vtkm::UInt16 linkComponentCaseTable3D[16384]
Definition: LinkComponentCaseTable3D.h:75
An implicit array handle containing the its own indices.
Definition: ArrayHandleIndex.h:54