WalkMeshPlanar

Walk the surface of an FDynamicMesh to try find a planar path connecting two points.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/Operations/EmbedSurfacePath.h

Include

#include "Operations/EmbedSurfacePath.h"

Syntax

bool WalkMeshPlanar
(
    const FDynamicMesh3 * Mesh,
    int StartTri,
    int EndVertID,
    FVector3d StartPt,
    int EndTri,
    FVector3d EndPt,
    FVector3d WalkPlaneNormal,
    TFunction< FVector3d *, int)> VertexToPosnFn,
    bool bAllowBackwardsSearch,
    double AcceptEndPtOutsideDist,
    double PtOnPlaneThreshold,
    TArray< TPair< FMeshSurfacePoint, int >> & WalkedPath,
    double BackwardsTolerance
)

Remarks

Walk the surface of an FDynamicMesh to try find a planar path connecting two points. Paths include every vertex and edge they need to cross. Greedy algorithm will only return one path if there are multiple.

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