Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/UPreviewMesh
Warnings * returns false if preview is not visible
Description
Queries Test for ray intersection with the preview mesh. Requires that bBuildSpatialDataStructure = true
returns false if preview is not visible
| Name | TestRayIntersection |
| 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 TestRayIntersection
(
const FRay3d & WorldRay,
TFunction < bool> TriangleFilterF
)
true if ray intersections mesh
Parameters
| Name | Remarks |
|---|---|
| TriangleFilterF | optional filter function for triangles |