Structure for locating point.
More...
#include <PointLocatorSparseGrid.h>
|
void | FindInCell (const viskores::Vec3f &queryPoint, const viskores::Id3 &ijk, viskores::Id &nearestNeighborId, viskores::FloatDefault &nearestDistance2) const |
|
void | FindInBox (const viskores::Vec3f &queryPoint, const viskores::Id3 &boxCenter, viskores::Id level, viskores::Id &nearestNeighborId, viskores::FloatDefault &nearestDistance2) const |
|
void | FindInPlane (const viskores::Vec3f &queryPoint, const viskores::Id3 &planeCenter, const viskores::Id3 &div, const viskores::Id3 &mod, const viskores::Id3 &origin, viskores::Id numInPlane, viskores::Id &nearestNeighborId, viskores::FloatDefault &nearestDistance2) const |
|
void | FindInXPlane (const viskores::Vec3f &queryPoint, const viskores::Id3 &planeCenter, viskores::Id level, viskores::Id &nearestNeighborId, viskores::FloatDefault &nearestDistance2) const |
|
void | FindInYPlane (const viskores::Vec3f &queryPoint, viskores::Id3 planeCenter, viskores::Id level, viskores::Id &nearestNeighborId, viskores::FloatDefault &nearestDistance2) const |
|
void | FindInZPlane (const viskores::Vec3f &queryPoint, viskores::Id3 planeCenter, viskores::Id level, viskores::Id &nearestNeighborId, viskores::FloatDefault &nearestDistance2) const |
|
Structure for locating point.
Use the FindNearestNeighbor()
method to identify which cell contains a point in space.
This class is provided by viskores::cont::PointLocatorSparseGrid
when passed to a worklet.
◆ CoordPortalType
◆ IdPortalType
◆ PointLocatorSparseGrid()
◆ FindInBox()
◆ FindInCell()
◆ FindInPlane()
◆ FindInXPlane()
◆ FindInYPlane()
◆ FindInZPlane()
◆ FindNearestNeighbor()
Nearest neighbor search using a Uniform Grid.
Parallel search of nearesat neighbor for each point in the queryPoints
in the set of coords
. Returns neareast neighbot in nearestNeighborIds
and distances to nearest neighbor in distances
.
- Parameters
-
queryPoint | Point coordinates to query for nearest neighbor. |
nearestNeighborId | Neareast neighbor in the training dataset for each points in the test set |
distance2 | Squared distance between query points and their nearest neighbors. |
◆ CellLower
IdPortalType viskores::exec::PointLocatorSparseGrid::CellLower |
|
private |
◆ CellUpper
IdPortalType viskores::exec::PointLocatorSparseGrid::CellUpper |
|
private |
◆ Coords
◆ Dims
◆ Dxdydz
◆ Min
◆ PointIds
IdPortalType viskores::exec::PointLocatorSparseGrid::PointIds |
|
private |
The documentation for this class was generated from the following file: