Go to the documentation of this file.
59 #ifndef vtk_m_worklet_contourtree_augmented_mesh_boundary_mesh_boundary_2d_h
60 #define vtk_m_worklet_contourtree_augmented_mesh_boundary_mesh_boundary_2d_h
73 namespace contourtree_augmented
115 (pos[1] == this->MeshStructure.MeshSize[1] - 1))
119 ((pos[1] == this->MeshStructure.MeshSize[1] - 1) &&
120 ((pos[0] == 0) || (pos[0] == this->MeshStructure.MeshSize[0] - 1))))
131 assert(meshIndex >= 1);
142 this->SortIndicesPortal.GetNumberOfValues());
149 return (sortIndex < sp && sortIndex < sn) || (sortIndex > sp && sortIndex > sn);
VTKM_EXEC_CONT MeshBoundary2D()
Definition: MeshBoundary2D.h:84
IdArrayType::ReadPortalType SortIndicesPortalType
Definition: MeshBoundary2D.h:81
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_CONT MeshBoundary2D(vtkm::Id2 meshSize, const IdArrayType &sortIndices, vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token)
Definition: MeshBoundary2D.h:90
data_set_mesh::MeshStructure2D MeshStructure
Definition: MeshBoundary2D.h:163
Definition: MeshStructure2D.h:69
VTKM_EXEC vtkm::Id2 VertexPos(vtkm::Id v) const
Get the (x,y) position of the vertex based on its index.
Definition: MeshStructure2D.h:90
typename StorageType::ReadPortalType ReadPortalType
Definition: ArrayHandle.h:294
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:35
vtkm::Id2 MeshSize
Definition: MeshBoundary2D.h:186
VTKM_CONT MeshBoundary2D PrepareForExecution(vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token) const
Definition: MeshBoundary2D.h:178
VTKM_EXEC_CONT MeshBoundary2DExec(vtkm::Id2 inMeshSize, const IdArrayType &inSortIndices)
Definition: MeshBoundary2D.h:171
Definition: MeshBoundary2D.h:167
#define VTKM_CONT
Definition: ExportMacros.h:57
Base ExecutionObjectBase for execution objects to inherit from so that you can use an arbitrary objec...
Definition: ExecutionObjectBase.h:31
Definition: DeviceAdapterTag.h:52
Definition: MeshBoundary2D.h:77
VTKM_EXEC_CONT bool LiesOnBoundary(const vtkm::Id meshIndex) const
Definition: MeshBoundary2D.h:100
VTKM_EXEC_CONT bool IsNecessary(const vtkm::Id meshIndex) const
Definition: MeshBoundary2D.h:108
vtkm::Id2 MeshSize
Definition: MeshStructure2D.h:126
SortIndicesPortalType SortIndicesPortal
Definition: MeshBoundary2D.h:164
const VTKM_EXEC_CONT data_set_mesh::MeshStructure2D & GetMeshStructure() const
Definition: MeshBoundary2D.h:159
const IdArrayType & SortIndices
Definition: MeshBoundary2D.h:187