Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Operations > API/Plugins/DynamicMesh/Operations/FMeshGeodesicSurfaceTracer > API/Plugins/DynamicMesh/Operations/FMeshGeodesicSurfaceTracer/TraceMeshFromBar-
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/MeshGeodesicSurfaceTracer.h |
| Include | #include "Operations/MeshGeodesicSurfaceTracer.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Operations/MeshGeodesicSurfaceTracer.cpp |
double TraceMeshFromBaryPoint
&40;
const int32 TriID,
const FVector3d & BaryPoint,
const FVector3d & RayDir3,
double MaxDistance
&41;
Remarks
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: the BaryPoint must be a valid point within or on the boundary of the triangle. 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 | Description |
|---|---|
| TriID | FDynamicMesh3 TriangleID that indicated that triangle where the trace originates |
| BaryPoint | Barycentric coordinates of ray origin relative to the specified triangle. See NB below. |
| RayDir3 | Initial Direction given in R3. This will be projected on the face of the specified Triangle (TriID) |
| MaxDist | Max distance the path is allowed to travel for this triangle trace. |