Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FGeometrySet3
Warnings * PointWithinToleranceTest is called in parallel and hence must be thread-safe/re-entrant!
Description
Like FindNearestPointToRay, but gives all elements within tolerance, rather than just the closest.
PointWithinToleranceTest is called in parallel and hence must be thread-safe/re-entrant!
| Name | CollectPointsNearRay |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Spatial/GeometrySet3.h |
| Include Path | #include "Spatial/GeometrySet3.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/Spatial/GeometrySet3.cpp |
bool CollectPointsNearRay
(
const FRay3d & Ray,
TArray < FNearest > & ResultsOut,
TFunction < bool> PointWithinToleranceTest
) const
true if at least one result was added (ie, passed PointWithinToleranceTest).
Parameters
| Name | Remarks |
|---|---|
| Ray | query ray |
| ResultsOut | populated with information about successful nearest point results. Not cleared in advance. |
| PointWithinToleranceTest | should return true if two 3D points are "close enough" to be considered a hit |