Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Selections > API/Runtime/GeometryCore/Selections/FMeshConnectedComponents > API/Runtime/GeometryCore/Selections/FMeshConnectedComponents/GrowToConnectedT-
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Selections/MeshConnectedComponents.h |
| Include | #include "Selections/MeshConnectedComponents.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/Selections/MeshConnectedComponents.cpp |
static void GrowToConnectedTriangles
(
const FDynamicMesh3 * Mesh,
const TArray < int > & InputROI,
TArray < int > & ResultROI,
TArray < int32 > * QueueBuffer,
TSet < int32 > * DoneBuffer,
TFunctionRef < bool, int32 )> CanGrowPredicate
)
Remarks
Utility function to expand a triangle selection to all triangles considered "connected". More efficient than using full FMeshConnectedComponents instance if ROI is small relative to Mesh size (or if temp buffers can be re-used)
Parameters
| Name | Description |
|---|---|
| Mesh | Mesh to calculate on |
| InputROI | input set of triangles |
| ResultROI | output set of triangles connected to InputROI |
| QueueBuffer | optional buffer used as internal Queue. If passed as nullptr, a TArray will be locally allocated |
| DoneBuffer | optional set used to track which triangles have already been processed. If passed as nullptr, an TSet will be locally allocated |
| CanGrowPredicate | determines whether two connected mesh triangles should be considered connected while growing |