Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TPointHashGrid3
Description
Find all points in grid within a given sphere. Note: Not thread-safe to update, remove or insert points during this query.
| Name | FindPointsInBall |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Spatial/PointHashGrid3.h |
| Include Path | #include "Spatial/PointHashGrid3.h" |
int FindPointsInBall
(
const TVector < RealType > & QueryPoint,
RealType Radius,
TFunctionRef < RealType> DistanceSqFunc,
TArray < PointDataType > & ResultsOut,
TFunctionRef < bool> IgnoreFunc
) const
the number of found points
Parameters
| Name | Remarks |
|---|---|
| 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 |
| ResultsOut | Array that points in sphere will be added to |
| IgnoreFunc | optional Function you may provide which will result in a Value being ignored if IgnoreFunc(Value) returns true |