Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Spatial > API/Runtime/GeometryCore/Spatial/TMeshAABBTree3
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Spatial/MeshAABBTree3.h |
| Include | #include "Spatial/MeshAABBTree3.h" |
virtual bool IsWithinDistanceSquared
(
const FVector3d & Point,
double ThresholdDistanceSqr,
int & OutTriangleID,
const FQueryOptions & Options
) const
Remarks
Test whether there is any triangle closer than sqrt(ThresholdDistanceSqr) to Point Note that FQueryOptions::MaxDistance is ignored by this query, as ThresholdDistanceSqr controls the query distance instead
Parameters
| Name | Description |
|---|---|
| OutTriangleID | The ID of a triangle (not necessarily the closest) within the distance threshold, or InvalidID if none found. |