TMeshAABBTree3::FindNearestTriangle

Find the triangle closest to P, and distance to it, within distance MaxDist, or return InvalidID Use MeshQueries.TriangleDistance() to get more information

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

IMeshSpatial::FindNearestTriangle()

TMeshAABBTree3::FindNearestTriangle()

References

Module

GeometryCore

Header

/Engine/Source/Runtime/GeometryCore/Public/Spatial/MeshAABBTree3.h

Include

#include "Spatial/MeshAABBTree3.h"

Syntax

virtual int FindNearestTriangle
(
    const FVector3d & P,
    double & NearestDistSqr,
    const FQueryOptions & Options
) const

Remarks

Find the triangle closest to P, and distance to it, within distance MaxDist, or return InvalidID Use MeshQueries.TriangleDistance() to get more information