Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Sampling > API/Plugins/DynamicMesh/Sampling/FMeshBakerDynamicMeshSampler
- IMeshBakerDetailSampler::FindNearestHitTriangle()
- FMeshBakerDynamicMeshSampler::FindNearestHitTriangle()
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Sampling/MeshBakerCommon.h |
| Include | #include "Sampling/MeshBakerCommon.h" |
virtual const void &42; FindNearestHitTriangle
&40;
const FRay3d & Ray,
double & NearestT,
int & TriId,
FVector3d & TriBaryCoords,
const IMeshSpatial::FQueryOptions & Options
&41; const
Remarks
Find nearest triangle from the given ray a pointer to the mesh whose triangle was intersected, nullptr otherwise.
Parameters
| Name | Description |
|---|---|
| Ray | query ray |
| NearestT | [Out] parameter of the nearest hit |
| TriId | [Out] ID of triangle intersected by ray within MaxDistance, or InvalidID if not found |
| TriBaryCoords | [Out] barycentric coordinates of intersection point on the hit tri. |
| Options | query options |