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" |
int FindPointsInBall
(
const TVector < RealType > & QueryPoint,
RealType Radius,
TFunctionRef < RealType> DistanceSqFunc,
TArray < PointDataType > & ResultsOut,
TFunctionRef < bool> IgnoreFunc
) const
Remarks
Find all points in grid within a given sphere. Note: Not thread-safe to update, remove or insert points during this query. the number of found points
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 |
| 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 |