/Engine/Source/Runtime/GeometryCore/Public/Selections/MeshConnectedComponents.h
Utility function to expand a triangle selection to all triangles considered "connected". More efficient than using fullFMeshConnectedComponentsinstance if ROI is small relative to Mesh size (or if temp buffers can be re-used) This version computes an outputTSetinstead of outputTArray, which is preferable in some cases.
static void GrowToConnectedTriangles ( const [FDynamicMesh3](API\Runtime\GeometryCore\DynamicMesh\FDynamicMesh3) * Mesh, const [TArray](API\Runtime\Core\Containers\TArray)< int > & InputROI, [TSet](API\Runtime\Core\Containers\TSet)< int > & ResultROI, [TArray](API\Runtime\Core\Containers\TArray)< int32 > * QueueBuffer, [TFunctionRef](API\Runtime\Core\GenericPlatform\TFunctionRef)< bool(int32, int32)> CanGrowPredicate )