|
void | construct (std::vector< T > &points, const int imageW=-1, const int imageH=-1) |
| Construct hash grid. More...
|
|
void | init (const int hashSize, const double hashScale, const Bounds3d &bbox) |
| Initialize grid.
|
|
void | add (const T &p, const Point3d &boxMin, const Point3d &boxMax) |
| Set point data for the cells inside the specifed bounding box.
|
|
void | clear () |
| Clear grid data.
|
|
const std::vector< T > & | operator[] (const Point3d &v) const |
|
template<class T>
void spica::HashGrid< T >::construct |
( |
std::vector< T > & |
points, |
|
|
const int |
imageW = -1 , |
|
|
const int |
imageH = -1 |
|
) |
| |
Construct hash grid.
- Parameters
-
[in] | points | points stored to the grid |
[in] | imageW | image width used to determine the initial grid size (option) |
[in] | imageH | image height used to determine the initial grid size (option) |
The documentation for this class was generated from the following files: