Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Spatial > API/Runtime/GeometryCore/Spatial/TPointHashGrid3
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Spatial/PointHashGrid3.h |
| Include | #include "Spatial/PointHashGrid3.h" |
void EnumeratePointsInBall
(
const TVector < RealType > & QueryPoint,
RealType Radius,
TFunctionRef < RealType> DistanceSqFunc,
TFunctionRef < bool> ProcessPointFunc,
TFunctionRef < bool> IgnoreFunc
) const
Remarks
Call ProcessPointFunc on all points in grid within a given sphere, or until the function returns false Note: Not thread-safe to update, remove or insert points during enumeration.
Parameters
| Name | Description |
|---|---|
| QueryPoint | the center of the query sphere |
| Radius | the radius of the query sphere |
| DistanceSqFunc | Function you provide which measures the squared distance between QueryPoint and a Value |
| ProcessPointFunc | Function you provide to process each found point. Takes point data and the distance squared; returns true to continue iteration, or false to stop. |
| IgnoreFunc | optional Function you may provide which will result in a Value being ignored if IgnoreFunc(Value) returns true |