|
using | Index = UNSIGNED_INTEGER_TYPE |
|
using | GridCoordinates = Eigen::Matrix< INTEGER_TYPE, Dimension, 1 > |
|
using | WorldCoordinates = Eigen::Matrix< FLOATING_POINT_TYPE, Dimension, 1 > |
|
using | VecFloat = Eigen::Matrix< FLOATING_POINT_TYPE, Dimension, 1 > |
|
|
| HashGrid (const FLOATING_POINT_TYPE &cell_size) |
|
| HashGrid (const FLOATING_POINT_TYPE &cell_size, const UNSIGNED_INTEGER_TYPE &number_of_elements) |
|
void | add (const Element &e, const Index &id) |
| Add an element's data to the hash grid. More...
|
|
auto | get (const WorldCoordinates &p) const -> std::set< Index > |
| Get all the data of all elements that are very close to the point p. More...
|
|
◆ add()
template<typename Element >
Add an element's data to the hash grid.
- Parameters
-
e | The element defined by its nodes. |
id | The element's identifier (usually its index within a topology). |
◆ get()
template<typename Element >
Get all the data of all elements that are very close to the point p.
Note that the returned elements do not ensure that the point p resides inside of them. One has to further check each ones of them with an intersection test.
The documentation for this class was generated from the following file:
- /home/jnbrunet/sources/caribou/src/Topology/HashGrid.h