Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_augmented_data_set_mesh_execution_object_mesh_2d_h
54 #define vtk_m_worklet_contourtree_augmented_data_set_mesh_execution_object_mesh_2d_h
63 namespace contourtree_augmented
65 namespace data_set_mesh
105 localToGlobalIdRelabeler)
const
111 if (((pos[1] == this->
MeshSize[1] - 1) &&
113 localToGlobalIdRelabeler.
GlobalSize[1] - 1)) ||
114 ((pos[0] == this->MeshSize[0] - 1) &&
122 return localToGlobalIdRelabeler(meshIndex);
#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
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
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_EXEC_CONT MeshStructure2D()
Definition: MeshStructure2D.h:73
A utility class that converts Ids from local to global given a mesh.
Definition: IdRelabeler.h:79
VTKM_EXEC_CONT vtkm::Id GetVertexOwned(const vtkm::Id &meshIndex, const vtkm::worklet::contourtree_augmented::mesh_dem::IdRelabeler &localToGlobalIdRelabeler) const
determine if the vertex is owned by this mesh block or not The function returns NO_SUCH_ELEMENT if th...
Definition: MeshStructure2D.h:103
vtkm::Id3 LocalBlockOrigin
Local block origin.
Definition: IdRelabeler.h:114
VTKM_EXEC_CONT vtkm::Id GetNumberOfVertices() const
Get the number of mesh vertices.
Definition: MeshStructure2D.h:86
vtkm::Id3 GlobalSize
Global mesh size.
Definition: IdRelabeler.h:118
vtkm::Id2 MeshSize
Definition: MeshStructure2D.h:126
constexpr vtkm::Id NO_SUCH_ELEMENT
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:73
VTKM_EXEC_CONT MeshStructure2D(vtkm::Id2 meshSize)
Definition: MeshStructure2D.h:79
VTKM_EXEC vtkm::Id VertexId(vtkm::Id2 pos) const
vertex ID - row * ncols + col
Definition: MeshStructure2D.h:97