Navigation
API > API/Runtime > API/Runtime/GeometryCore
FMeshConnectedComponents calculates Connected Components of a Mesh, or sub-regions of a Mesh. By default the actual mesh connectivity is used, but an optional connectivity predicate can be provided to specify when two elements should be considered connected.
| Name | FMeshConnectedComponents |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Selections/MeshConnectedComponents.h |
| Include Path | #include "Selections/MeshConnectedComponents.h" |
Syntax
class FMeshConnectedComponents
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshConnectedComponents
(
const FDynamicMesh3* MeshIn |
Selections/MeshConnectedComponents.h |
Structs
| Name | Remarks |
|---|---|
| FComponent | Connected Component found by one of the calculation functions |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Components | TIndirectArray< FComponent > | List of Connected Components that have been found by one of the calculation functions | Selections/MeshConnectedComponents.h | |
| Mesh | const FDynamicMesh3 * | Selections/MeshConnectedComponents.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
auto begin () |
Selections/MeshConnectedComponents.h | ||
auto begin () |
DO NOT USE DIRECTLY STL-like iterators to enable ranged-based for loop support (forwarding TIndirectArray declarations) | Selections/MeshConnectedComponents.h | |
auto end () |
Selections/MeshConnectedComponents.h | ||
auto end () |
Selections/MeshConnectedComponents.h | ||
void FindConnectedTriangles
(
TFunctionRef< bool(int)> IndexFilterFunc, |
Find all connected triangle components of a subset of triangles of the Mesh and store in Components array. | Selections/MeshConnectedComponents.h | |
void FindConnectedTriangles
(
const TArray< int >& TriangleROI, |
Find all connected triangle components of a subset of triangles of the Mesh and store in Components array. | Selections/MeshConnectedComponents.h | |
void FindConnectedTriangles
(
TFunction< bool(int32, int32)> TrisConnectedPredicate |
Calculation functions. | Selections/MeshConnectedComponents.h | |
void FindConnectedVertices
(
TFunctionRef< bool(int)> IndexFilterFunc, |
Find all connected vertex components of a subset of vertices of the Mesh and store in Components array. | Selections/MeshConnectedComponents.h | |
void FindConnectedVertices
(
const TArray< int >& VertexROI, |
Find all connected vertex components of a subset of vertices of the Mesh and store in Components array. | Selections/MeshConnectedComponents.h | |
void FindConnectedVertices
(
TFunction< bool(int32, int32)> VertsConnectedPredicate |
Find all connected vertex components of the Mesh and store in Components array. | Selections/MeshConnectedComponents.h | |
void FindTrianglesConnectedToSeeds
(
const TArray< int >& SeedTriangles, |
Find all connected triangle components that contain one or more Seed Triangles and store in Components array. | Selections/MeshConnectedComponents.h | |
void FindVerticesConnectedToSeeds
(
const TArray< int >& SeedVertices, |
Find all connected vertex components that contain one or more Seed Vertices and store in Components array. | Selections/MeshConnectedComponents.h | |
const FComponent & GetComponent
(
int32 Index |
Selections/MeshConnectedComponents.h | ||
FComponent & GetComponent
(
int32 Index |
Selections/MeshConnectedComponents.h | ||
int32 GetLargestIndexByCount() |
Selections/MeshConnectedComponents.h | ||
bool InitializeFromTriangleComponents
(
const TArray< TArray< int32 > >& ComponentLists, |
Initialize the internal FComponent list from the input ComponentLists, skipping any empty input lists | Selections/MeshConnectedComponents.h | |
bool InitializeFromTriangleComponents
(
TArray< TArray< int32 > >& ComponentLists, |
Initialize the internal FComponent list from the input ComponentLists, skipping any empty input lists | Selections/MeshConnectedComponents.h | |
bool InitializeFromVertexComponents
(
TArray< TArray< int32 > >& ComponentLists, |
Initialize the internal FComponent list from the input ComponentLists, skipping any empty input lists | Selections/MeshConnectedComponents.h | |
bool InitializeFromVertexComponents
(
const TArray< TArray< int32 > >& ComponentLists, |
Initialize the internal FComponent list from the input ComponentLists, skipping any empty input lists | Selections/MeshConnectedComponents.h | |
int32 Num() |
Query functions. Only valid to call after a Calculation function has been called. | Selections/MeshConnectedComponents.h | |
void SortByCount
(
bool bLargestFirst |
Sort the Components array by component element count | Selections/MeshConnectedComponents.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void FindTriComponent
(
FComponent* Component, |
Selections/MeshConnectedComponents.h | ||
void FindTriComponent
(
FComponent* Component, |
Selections/MeshConnectedComponents.h | ||
void FindTriComponents
(
FInterval1i ActiveRange, |
Internal functions to calculate ROI | Selections/MeshConnectedComponents.h | |
void FindTriComponents
(
const TArray< int32 >& SeedList, |
Selections/MeshConnectedComponents.h | ||
void FindVertComponent
(
FComponent* Component, |
Selections/MeshConnectedComponents.h | ||
void FindVertComponent
(
FComponent* Component, |
Selections/MeshConnectedComponents.h | ||
void FindVertComponents
(
FInterval1i ActiveRange, |
Selections/MeshConnectedComponents.h | ||
void FindVertComponents
(
const TArray< int32 >& SeedList, |
Selections/MeshConnectedComponents.h | ||
void RemoveFromActiveSet
(
const FComponent* Component, |
Selections/MeshConnectedComponents.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void GrowToConnectedEdges
(
const FDynamicMesh3& Mesh, |
Utility function to expand an edge selection to all edges 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 | |
static void GrowToConnectedTriangles
(
const FDynamicMesh3* Mesh, |
Utility function to expand a triangle selection to all triangles considered "connected". | Selections/MeshConnectedComponents.h | |
static void GrowToConnectedVertices
(
const FDynamicMesh3& Mesh, |
Utility function to expand a vertex selection to all vertices considered "connected". | Selections/MeshConnectedComponents.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FComponent & operator[]
(
int32 Index |
Selections/MeshConnectedComponents.h | ||
const FComponent & operator[]
(
int32 Index |
Selections/MeshConnectedComponents.h |