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