TMeshAABBTree3::FindNearestTriangles

Find nearest pair of triangles on this tree with OtherTree, within Options.MaxDistance.

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

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

Include

#include "Spatial/MeshAABBTree3.h"

Syntax

virtual FIndex2i FindNearestTriangles
(
    TMeshAABBTree3 & OtherTree,
    const TFunction< FVector3d &)> & TransformF,
    double & Distance,
    const FQueryOptions & Options,
    const FQueryOptions & OtherTreeOptions
)

Remarks

Find nearest pair of triangles on this tree with OtherTree, within Options.MaxDistance. TransformF transforms vertices of OtherTree into our coordinates. can be null. returns triangle-id pair (my_tri,other_tri), or FIndex2i::Invalid if not found within max_dist Use MeshQueries.TrianglesDistance() to get more information

Only uses MaxDistance from Options; OtherTreeOptions.MaxDistance is not used

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