|
viskores::Id | FindBinIdx (const viskores::Vec3f &point) const |
|
bool | LastCellValid (const LastCell &lastCell) const |
|
bool | IsInside (const viskores::Vec3f &point) const |
|
viskores::ErrorCode | FindCellImpl (const viskores::Vec3f &point, viskores::Id &cellId, viskores::Vec3f ¶metric, LastCell &lastCell, viskores::Id ptBinIdx=-1) const |
|
template<typename PointsVecType > |
viskores::Bounds | ComputeCellBounds (const PointsVecType &points) const |
|
template<typename CellShapeTag , typename CoordsType > |
viskores::ErrorCode | PointInsideCell (viskores::Vec3f point, CellShapeTag cellShape, CoordsType cellPoints, viskores::Vec3f ¶metricCoordinates, bool &inside) const |
|
bool | PointInBin (const viskores::Vec3f &point, const viskores::Id &binIdx, viskores::Id &cellId, viskores::Vec3f ¶metric, const viskores::Id &skipCellId=-1) const |
|
bool | PointInCell (const viskores::Vec3f &point, const viskores::Id &cid, viskores::Vec3f ¶metric) const |
|
template<typename CellStructureType>
class viskores::exec::CellLocatorUniformBins< CellStructureType >
Structure for locating cells.
Use the FindCell()
method to identify which cell contains a point in space. The FindCell()
method optionally takes a LastCell
object, which is a structure nested in this class. The LastCell
object can help speed locating cells for successive finds at nearby points.
This class is provided by viskores::cont::CellLocatorBoundingIntervalHierarchy
when passed to a worklet.
template<typename CellStructureType >
Locate the cell containing the provided point.
Given the point coordinate point
, this method determines which cell contains that point. The identification of the cell is returned in the cellId
reference parameter. The method also determines the cell's parametric coordinates to the point and returns that in the parametric
reference parameter. This result can be used in functions like viskores::exec::CellInterpolate()
.
FindCell()
takes an optional LastCell
parameter. This parameter captures the location of the found cell and can be passed to the next call of FindCell()
. If the subsequent FindCell()
call is for a point that is in or near the same cell, the operation may go faster.
This method will return viskores::ErrorCode::Success
if a cell is found. If a cell is not found, viskores::ErrorCode::CellNotFound
is returned and cellId
is set to -1
.
template<typename CellStructureType >
Locate the cell containing the provided point.
Given the point coordinate point
, this method determines which cell contains that point. The identification of the cell is returned in the cellId
reference parameter. The method also determines the cell's parametric coordinates to the point and returns that in the parametric
reference parameter. This result can be used in functions like viskores::exec::CellInterpolate()
.
FindCell()
takes an optional LastCell
parameter. This parameter captures the location of the found cell and can be passed to the next call of FindCell()
. If the subsequent FindCell()
call is for a point that is in or near the same cell, the operation may go faster.
This method will return viskores::ErrorCode::Success
if a cell is found. If a cell is not found, viskores::ErrorCode::CellNotFound
is returned and cellId
is set to -1
.