The spica renderer
Public Member Functions | List of all members
spica::HashGrid< T > Class Template Reference

Public Member Functions

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
 

Member Function Documentation

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]pointspoints stored to the grid
[in]imageWimage width used to determine the initial grid size (option)
[in]imageHimage height used to determine the initial grid size (option)

The documentation for this class was generated from the following files: