Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FMeshConnectedComponents
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void GrowToConnectedTriangles
(
const FDynamicMesh3* Mesh, |
Utility function to expand a triangle selection to all triangles considered "connected". | Selections/MeshConnectedComponents.h | |
static void GrowToConnectedTriangles
(
const FDynamicMesh3* Mesh, |
Utility function to expand a triangle selection to all triangles considered "connected". | Selections/MeshConnectedComponents.h |
GrowToConnectedTriangles(const FDynamicMesh3 , const TArray< int > &, TSet< int > &, TArray< int32 > , TFunctionRef< bool(int32, int32)>)
Description
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) This version computes an output TSet instead of output TArray, which is preferable in some cases.
| Name | GrowToConnectedTriangles |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Selections/MeshConnectedComponents.h |
| Include Path | #include "Selections/MeshConnectedComponents.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/Selections/MeshConnectedComponents.cpp |
static void GrowToConnectedTriangles
(
const FDynamicMesh3 * Mesh,
const TArray < int > & InputROI,
TSet< int > & ResultROI,
TArray < int32 > * QueueBuffer,
TFunctionRef < bool> CanGrowPredicate
)
Parameters
| Name | Remarks |
|---|---|
| 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 |
| CanGrowPredicate | determines whether two connected mesh triangles should be considered connected while growing |
GrowToConnectedTriangles(const FDynamicMesh3 , const TArray< int > &, TArray< int > &, TArray< int32 > , TSet< int32 > *, TFunctionRef< bool(int32, int32)>)
Description
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)
| Name | GrowToConnectedTriangles |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Selections/MeshConnectedComponents.h |
| Include Path | #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> CanGrowPredicate
)
Parameters
| Name | Remarks |
|---|---|
| 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 |