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
Definition: ErrorCode.h:19
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
#define VTKM_CONT
Definition: ExportMacros.h:57
#define vtkmNotUsed(parameter_name)
Simple macro to identify a parameter as unused.
Definition: ExportMacros.h:128
#define VTKM_ALWAYS_EXPORT
Definition: ExportMacros.h:92