16 #ifndef __UT_HashGrid_h__
17 #define __UT_HashGrid_h__
26 template <
typename utPtr>
38 template <
typename utPtr>
58 bool fullinit,
unsigned int sz = 0);
89 void reset(
unsigned int sz = 0);
101 inline utPtr
getElement(
int idx)
const {
return myElements(idx); }
126 ut_CellArray myCellArray;
void insertBlanks(int nblanks)
~UT_HashGrid()
Trivial destructor.
UT_HashGrid(fpreal cellsize, const UT_Vector3 &origin, bool fullinit, unsigned int sz=0)
UT_Vector3 getPos(int idx) const
void reset(unsigned int sz=0)
void findCloseElements(const UT_Vector3 &p, UT_Array< utPtr > &list) const
utPtr getElement(int idx) const
int64 getMemoryUsage(bool inclusive) const
void findAllCloseIndices(const UT_Vector3 &p, UT_IntArray &idxlist) const
exint entries() const
Alias of size(). size() is preferred.
A class that defines a cubic grid cell.
fpreal getCellWidth() const
bool insert(const UT_Vector3 &p, utPtr t)