Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FSegmentTree3
Description
This function tries to find the segment "hit" by the ray, where the definition of "hit" tries to balance distance from the ray origin (ie "close to eye") and distance from the hit segment (ie "on the line"). There is no correct way to do this, currently the code uses a metric based on the opening angle between ray and segment points.
| Name | FindNearestVisibleSegmentHitByRayInternal |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Spatial/SegmentTree3.h |
| Include Path | #include "Spatial/SegmentTree3.h" |
void FindNearestVisibleSegmentHitByRayInternal
(
int BoxIndex,
const FRay3d & Ray,
TFunctionRef < bool> WithinToleranceCheck,
int & NearSegmentIdx,
FRayNearestSegmentInfo & NearestInfo,
const IMeshSpatial::FQueryOptions & Options
) const