Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FPointSetHashtable
Description
Find all points within given query distance from query point. Note that in current implementation the distance must be less than the CellSize used in construction, ie at most the directly adjacent neighbours next to the cell containing QueryPt can be searched
| Name | FindPointsInBall |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Spatial/PointSetHashTable.h |
| Include Path | #include "Spatial/PointSetHashTable.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/Spatial/PointSetHashTable.cpp |
bool FindPointsInBall
(
const FVector3d & QueryPt,
double QueryRadius,
TArray < int > & ResultOut
)
true on success
Parameters
| Name | Remarks |
|---|---|
| QueryPt | center of search sphere/ball |
| QueryRadius | radius of search sphere/ball. Points within this distance of QueryPt are returned. |
| ResultOut | indices of discovered points are stored in this list |