TMeshAABBTree3::FindNearestHitTriangle

Find nearest triangle from the given ray

Windows
MacOS
Linux

Override Hierarchy

IMeshSpatial::FindNearestHitTriangle()

TMeshAABBTree3::FindNearestHitTriangle()

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Spatial/MeshAABBTree3.h

Include

#include "Spatial/MeshAABBTree3.h"

Syntax

virtual bool FindNearestHitTriangle
(
    const FRay3d & Ray,
    double & NearestT,
    int & TID,
    const FQueryOptions & Options
) const

Remarks

Find nearest triangle from the given ray

Returns

true if hit, false if no hit found

Parameters

Parameter

Description

Ray

query ray

NearestT

returned-by-reference parameter of the nearest hit

TID

returned-by-reference ID of triangle intersected by ray within MaxDistance, or InvalidID if not found

MaxDistance

maximum hit distance

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss