Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/FMeshSceneAdapter
Description
Run a custom query across all world-transformed scene mesh vertices. Requires that SpatialEvaluationCache is available. The internal loop is run as: ParallelFor(SceneMesh, { if ( MeshFilterFunc(SceneMesh) ) { for ( FVector3d Vtx in Scene Mesh ) { PerVertexFunc(Vtx) } } }
| Name | ParallelMeshVertexEnumeration |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Scene/MeshSceneAdapter.h |
| Include Path | #include "Scene/MeshSceneAdapter.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/Scene/MeshSceneAdapter.cpp |
virtual void ParallelMeshVertexEnumeration
(
TFunctionRef < bool> InitializeFunc,
TFunctionRef < bool *SourceActor, const FActorChildMesh *ChildMeshInfo, const FAxisAlignedBox3d &WorldBounds)> MeshFilterFunc,
TFunctionRef < bool *SourceActor, const FActorChildMesh *ChildMeshInfo, const FVector3d &WorldPos)> PerVertexFunc,
bool bForceSingleThreaded
)
Parameters
| Name | Remarks |
|---|---|
| InitializeFunc | called with the total number of scene meshes. MeshIndex in later queries will be < NumMeshes Return false to terminate query. |
| MeshFilterFunc | called once for each scene mesh, with unique MeshIndex per scene mesh. Return false to skip this scene mesh. |
| PerVertexFunc | called for each worldspace-transformed scene mesh vertex. Return false to terminate enumeration over this scene mesh. |