Go to the documentation of this file.
59 #ifndef vtk_m_worklet_contourtree_augmented_mesh_boundary_mesh_boundary_contour_tree_mesh_h
60 #define vtk_m_worklet_contourtree_augmented_mesh_boundary_mesh_boundary_contour_tree_mesh_h
71 namespace contourtree_augmented
102 vtkm::Id((global_idx % (this->GlobalSize[0] * this->GlobalSize[1])) /
103 this->GlobalSize[0]),
104 vtkm::Id(global_idx / (this->GlobalSize[0] * this->GlobalSize[1])) };
109 const auto n_dims = (
MaxIdx[2] == -1) ? 2 : 3;
110 for (
int d = 0; d < n_dims; ++d)
113 (mesh_idx[d] == this->
MinIdx[d] || mesh_idx[d] == this->
MaxIdx[d]))
vtkm::Id3 MaxIdx
Definition: MeshBoundaryContourTreeMesh.h:159
IndicesPortalType GlobalMeshIndexPortal
Definition: MeshBoundaryContourTreeMesh.h:129
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
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::Id3 MinIdx
Definition: MeshBoundaryContourTreeMesh.h:127
VTKM_EXEC_CONT MeshBoundaryContourTreeMeshExec(const IdArrayType &globalMeshIndex, vtkm::Id3 globalSize, vtkm::Id3 minIdx, vtkm::Id3 maxIdx)
Definition: MeshBoundaryContourTreeMesh.h:137
VTKM_EXEC_CONT MeshBoundaryContourTreeMesh()
Definition: MeshBoundaryContourTreeMesh.h:80
vtkm::Id3 GlobalSize
Definition: MeshBoundaryContourTreeMesh.h:157
typename StorageType::ReadPortalType ReadPortalType
Definition: ArrayHandle.h:294
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
vtkm::Id3 MinIdx
Definition: MeshBoundaryContourTreeMesh.h:158
vtkm::Id3 GlobalSize
Definition: MeshBoundaryContourTreeMesh.h:126
vtkm::Id3 MaxIdx
Definition: MeshBoundaryContourTreeMesh.h:128
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:35
VTKM_CONT MeshBoundaryContourTreeMesh(const IdArrayType &globalMeshIndex, vtkm::Id3 globalSize, vtkm::Id3 minIdx, vtkm::Id3 maxIdx, vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token)
Definition: MeshBoundaryContourTreeMesh.h:83
const IdArrayType & GlobalMeshIndex
Definition: MeshBoundaryContourTreeMesh.h:156
#define VTKM_CONT
Definition: ExportMacros.h:57
VTKM_EXEC_CONT bool IsNecessary(const vtkm::Id idx) const
Definition: MeshBoundaryContourTreeMesh.h:122
Base ExecutionObjectBase for execution objects to inherit from so that you can use an arbitrary objec...
Definition: ExecutionObjectBase.h:31
Definition: DeviceAdapterTag.h:52
VTKM_CONT MeshBoundaryContourTreeMesh PrepareForExecution(vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token) const
Definition: MeshBoundaryContourTreeMesh.h:148
VTKM_EXEC_CONT bool LiesOnBoundary(const vtkm::Id index) const
Definition: MeshBoundaryContourTreeMesh.h:98
Definition: MeshBoundaryContourTreeMesh.h:133
Definition: MeshBoundaryContourTreeMesh.h:74
IdArrayType::ReadPortalType IndicesPortalType
Definition: MeshBoundaryContourTreeMesh.h:77