Go to the documentation of this file.
18 #ifndef viskores_exec_celllocatoruniformgrid_h
19 #define viskores_exec_celllocatoruniformgrid_h
58 , InvSpacing(invSpacing)
66 if (point[0] < this->Origin[0] || point[0] > this->MaxPoint[0])
68 if (point[1] < this->Origin[1] || point[1] > this->MaxPoint[1])
70 if (point[2] < this->Origin[2] || point[2] > this->MaxPoint[2])
107 return this->FindCell(point, cellId, parametric);
115 if (!this->IsInside(point))
124 temp = point - this->Origin;
125 temp = temp * this->InvSpacing;
128 logicalCell = viskores::Min(
viskores::Id3(temp), this->MaxCellIds);
131 (logicalCell[2] * this->CellDims[1] + logicalCell[1]) * this->CellDims[0] + logicalCell[0];
132 parametric = temp - logicalCell;
147 #endif //viskores_exec_celllocatoruniformgrid_h
ErrorCode
Identifies whether an operation was successful or what type of error it had.
Definition: ErrorCode.h:36
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
#define VISKORES_CONT
Definition: ExportMacros.h:65
Groups connected points that have the same field value.
Definition: Atomic.h:27
@ CellNotFound
A cell matching some given criteria could not be found.
@ Success
A successful operation.
#define VISKORES_EXEC
Definition: ExportMacros.h:59