Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/UPreviewMesh
Warnings * returns false if preview is not visible
Description
Find ray intersection with the preview mesh. Requires that bBuildSpatialDataStructure = true
returns false if preview is not visible
| Name | FindRayIntersection |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/PreviewMesh.h |
| Include Path | #include "PreviewMesh.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/PreviewMesh.cpp |
bool FindRayIntersection
(
const FRay3d & WorldRay,
FHitResult & HitOut,
TFunction < bool> TriangleFilterF
)
true if ray intersections mesh
Parameters
| Name | Remarks |
|---|---|
| WorldRay | ray in world space |
| HitOut | output hit data (only certain members are initialized, see implementation) |
| TriangleFilterF | optional filter function for triangles |