Go to the documentation of this file.
10 #ifndef vtkm_exec_celllocatoruniformgrid_h
11 #define vtkm_exec_celllocatoruniformgrid_h
41 , InvSpacing(invSpacing)
49 if (point[0] < this->Origin[0] || point[0] > this->MaxPoint[0])
51 if (point[1] < this->Origin[1] || point[1] > this->MaxPoint[1])
53 if (point[2] < this->Origin[2] || point[2] > this->MaxPoint[2])
68 return this->FindCell(point, cellId, parametric);
76 if (!this->IsInside(point))
85 temp = point - this->Origin;
86 temp = temp * this->InvSpacing;
89 logicalCell = vtkm::Min(
vtkm::Id3(temp), this->MaxCellIds);
92 (logicalCell[2] * this->CellDims[1] + logicalCell[1]) * this->CellDims[0] + logicalCell[0];
93 parametric = temp - logicalCell;
108 #endif //vtkm_exec_celllocatoruniformgrid_h
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.
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::Int64 Id
Base type to use to index arrays.
Definition: Types.h:227
#define vtkmNotUsed(parameter_name)
Simple macro to identify a parameter as unused.
Definition: ExportMacros.h:128
@ CellNotFound
A cell matching some given criteria could not be found.
#define VTKM_ALWAYS_EXPORT
Definition: ExportMacros.h:89