Module |
|
Header |
/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Spatial/PointHashGrid2.h |
Include |
#include "Spatial/PointHashGrid2.h" |
template<typename PointDataType>
class TPointHashGrid2d
Hash Grid for values associated with 2D points.
This class addresses the situation where you have a list of (point, point_data) and you would like to be able to do efficient proximity queries, ie find the nearest point_data for a given query point.
We don't store copies of the 2D points. You provide a point_data type. This could just be the integer index into your list for example, a pointer to something more complex, etc. Insert and Remove functions require you to pass in the 2D point for the point_data. To Update a point you need to know it's old and new 2D coordinates.
Name | Description | |
---|---|---|
|
TPointHashGrid2d ( |
Construct 2D hashgrid |
Name | Description | ||
---|---|---|---|
|
TPair< Point... |
FindNearestInRadius |
Find nearest point in grid, within a given sphere, without locking / thread-safety. |
|
InsertPoint ( |
Insert at given position. This function is thread-safe. |
|
|
InsertPointUnsafe ( |
Insert at given position, without locking / thread-safety |
|
|
PointDataTyp... |
InvalidValue() |
Invalid grid value |
|
RemovePoint ( |
Remove at given position. This function is thread-safe. |
|
|
RemovePointUnsafe ( |
Remove at given position, without locking / thread-safety |
|
|
UpdatePoint |
Move value from old to new position. This function is thread-safe. |
|
|
UpdatePointUnsafe |
Move value from old to new position, without locking / thread-safety |