Go to the documentation of this file.
63 #ifndef vtk_m_worklet_contourtree_augmented_mesh_dem_triangulation_contourtree_mesh_execution_obect_mesh_structure_h
64 #define vtk_m_worklet_contourtree_augmented_mesh_dem_triangulation_contourtree_mesh_execution_obect_mesh_structure_h
80 namespace contourtree_augmented
82 namespace mesh_dem_contourtree_mesh_inc
137 if (neighborsBeginIndex == neighborsEndIndex + 1)
152 ret = neighborsBegin;
165 bool getMaxComponents)
const
169 vtkm::Id numNeighbours = neighborsEndIndex - neighborsBeginIndex;
173 for (
vtkm::Id nbrNo = 0; nbrNo < numNeighbours; ++nbrNo)
176 if ((getMaxComponents && (currNeighbour > sortIndex)) ||
177 (!getMaxComponents && (currNeighbour < sortIndex)))
180 neighborComponentMask |=
vtkm::Id{ 1 } << nbrNo;
#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
VTKM_EXEC vtkm::Id GetNeighbourIndex(vtkm::Id sortIndex, vtkm::Id neighborNo) const
Definition: MeshStructureContourTreeMesh.h:123
VTKM_CONT ReadPortalType PrepareForInput(vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token) const
Prepares this array to be used as an input to an operation in the execution environment.
Definition: ArrayHandle.h:574
VTKM_CONT MeshStructureContourTreeMesh(const cpp2_ns::IdArrayType neighborConnectivity, const cpp2_ns::IdArrayType neighborOffsets, const vtkm::Id maxNeighbors, bool getMax, vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token)
Definition: MeshStructureContourTreeMesh.h:100
VTKM_EXEC vtkm::Id GetMaxNumberOfNeighbours() const
Definition: MeshStructureContourTreeMesh.h:120
bool GetMax
Definition: MeshStructureContourTreeMesh.h:190
Definition: BuildChainsWorklet.h:63
constexpr vtkm::Id TERMINAL_ELEMENT
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:74
typename StorageType::ReadPortalType ReadPortalType
Definition: ArrayHandle.h:294
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
IdArrayPortalType NeighborConnectivityPortal
Definition: MeshStructureContourTreeMesh.h:187
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:35
VTKM_EXEC vtkm::Pair< vtkm::Id, vtkm::Id > GetNeighbourComponentsMaskAndDegree(vtkm::Id sortIndex, bool getMaxComponents) const
Definition: MeshStructureContourTreeMesh.h:163
VTKM_EXEC vtkm::Id GetNumberOfVertices() const
Definition: MeshStructureContourTreeMesh.h:114
#define VTKM_CONT
Definition: ExportMacros.h:57
Definition: MeshStructureContourTreeMesh.h:86
vtkm::Id MaxNeighbors
Definition: MeshStructureContourTreeMesh.h:189
Definition: DeviceAdapterTag.h:52
IdArrayPortalType NeighborOffsetsPortal
Definition: MeshStructureContourTreeMesh.h:188
typename cpp2_ns::IdArrayType::ReadPortalType IdArrayPortalType
Definition: MeshStructureContourTreeMesh.h:89
VTKM_EXEC_CONT MeshStructureContourTreeMesh()
Definition: MeshStructureContourTreeMesh.h:93
A vtkm::Pair is essentially the same as an STL pair object except that the methods (constructors and ...
Definition: Pair.h:29
VTKM_EXEC vtkm::Id GetExtremalNeighbour(vtkm::Id sortIndex) const
Definition: MeshStructureContourTreeMesh.h:130