Go to the documentation of this file.
10 #ifndef vtk_m_exec_CellLocatorPartitioned_h
11 #define vtk_m_exec_CellLocatorPartitioned_h
53 Locators.Get(partitionIndex).FindCell(point, cellIndex, parametricLocal);
54 if (status != vtkm ::ErrorCode ::Success)
59 if (Ghosts.Get(partitionIndex).Get(cellIndex) == 0)
61 partitionId = partitionIndex;
63 parametric = parametricLocal;
82 #endif //vtk_m_exec_CellLocatorPartitioned_h
vtkm::cont::ArrayHandle< vtkm::cont::CellLocatorGeneral::ExecObjType >::ReadPortalType Locators
Definition: exec/CellLocatorPartitioned.h:24
Manages an array-worth of data.
Definition: ArrayHandle.h:300
ErrorCode
Identifies whether an operation was successful or what type of error it had.
Definition: ErrorCode.h:28
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
@ Success
A successful operation.
vtkm::Id GetNumberOfValues() const
Returns the number of entries in the array.
Definition: ArrayHandle.h:468
typename StorageType::ReadPortalType ReadPortalType
The type of portal used when accessing data in a read-only mode.
Definition: ArrayHandle.h:312
Definition: exec/CellLocatorPartitioned.h:21
vtkm::cont::ArrayHandle< vtkm::cont::ArrayHandleStride< vtkm::UInt8 >::ReadPortalType >::ReadPortalType Ghosts
Definition: exec/CellLocatorPartitioned.h:26
typename Superclass::ReadPortalType ReadPortalType
Definition: ArrayHandleStride.h:338
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::Int64 Id
Base type to use to index arrays.
Definition: Types.h:227
@ CellNotFound
A cell matching some given criteria could not be found.
vtkm::Vec< vtkm::FloatDefault, 3 > Vec3f
Vec3f corresponds to a 3-dimensional vector of floating point values.
Definition: Types.h:1052
#define VTKM_ALWAYS_EXPORT
Definition: ExportMacros.h:89
vtkm::ErrorCode FindCell(const vtkm::Vec3f &point, vtkm::Id &partitionId, vtkm::Id &cellId, vtkm::Vec3f ¶metric) const
Definition: exec/CellLocatorPartitioned.h:41
CellLocatorPartitioned(const vtkm::cont::ArrayHandle< vtkm::cont::CellLocatorGeneral::ExecObjType >::ReadPortalType &locators, vtkm::cont::ArrayHandle< vtkm::cont::ArrayHandleStride< vtkm::UInt8 >::ReadPortalType >::ReadPortalType ghosts)
Definition: exec/CellLocatorPartitioned.h:30