Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/FMeshGeodesicSurfaceTracer
Description
Populate internal SurfaceTrace array of FTraceResults while following a "straight" path on the surface of a mesh. The starting location and direction are given in terms of a local parameterization of the initial triangle.
NB: it is assumed the edge Direction.EdgeID is adjacent to VID. ( otherwise the result will be unexpected)
| Name | TraceMeshFromVertex |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/MeshGeodesicSurfaceTracer.h |
| Include Path | #include "Operations/MeshGeodesicSurfaceTracer.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Operations/MeshGeodesicSurfaceTracer.cpp |
double TraceMeshFromVertex
(
const FMeshTangentDirection & Direction,
double MaxDistance
)
total distance of the trace, this may be less than the MaxDist (e.g. in the event the trace encounters a mesh edge)
Parameters
| Name | Remarks |
|---|---|
| Direction | Tangent plane direction of trace, defines the origin (VID) and the zero radian direction (EID.A to EID.B) along with a polar angle |
| MaxDist | Max distance the path is allowed to travel for this triangle trace. |