neurolots
0.3.5
NeuroLOTs
|
Public Member Functions | |
NLGEOMETRY_API | SpatialHashTable (unsigned int size_=100000, float cellSize_=0.1f, float tolerance_=0.00001f, unsigned int primeX_=73856093, unsigned int primeY_=19349663, unsigned int primeZ_=83492791) |
Default Constructor. More... | |
NLGEOMETRY_API | ~SpatialHashTable (void) |
Default destructor. | |
NLGEOMETRY_API VertexPtr | insert (const VertexPtr &vertex_) |
Method that return a pointer to a vertex in the table with the same position of the given vertex if the is not vertex with the same position the given vertex will be inserted in the table and returned. More... | |
NLGEOMETRY_API void | vertices (Vertices &vertices_) const |
Method that return a vector of the vertices contained in the table. More... | |
Definition at line 33 of file SpatialHashTable.h.
NLGEOMETRY_API nlgeometry::SpatialHashTable::SpatialHashTable | ( | unsigned int | size_ = 100000 , |
float | cellSize_ = 0.1f , |
||
float | tolerance_ = 0.00001f , |
||
unsigned int | primeX_ = 73856093 , |
||
unsigned int | primeY_ = 19349663 , |
||
unsigned int | primeZ_ = 83492791 |
||
) |
Default Constructor.
size_ | number of Spatial Hash Table cells |
cellSize_ | size of the cells |
tolerance_ | vertices position comparison tolerance |
prime0_ | X axis prime number of the hash function |
prime1_ | Y axis prime number of the hash function |
prime2_ | Z axis prime number of the hash function |
Method that return a pointer to a vertex in the table with the same position of the given vertex if the is not vertex with the same position the given vertex will be inserted in the table and returned.
vertex_ | vertex pointer to be inserted in the table |
NLGEOMETRY_API void nlgeometry::SpatialHashTable::vertices | ( | Vertices & | vertices_ | ) | const |
Method that return a vector of the vertices contained in the table.