Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FMeshConnectedComponents
Description
Find all connected triangle components that contain one or more Seed Triangles and store in Components array. Search only starts from Seed Triangles. Triangle connectivity is based on edge connectivity, ie bowtie-vertices are not connections between triangles.
| Name | FindTrianglesConnectedToSeeds |
| 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 |
void FindTrianglesConnectedToSeeds
(
const TArray < int > & SeedTriangles,
TFunction < bool> TrisConnectedPredicate
)
Parameters
| Name | Remarks |
|---|---|
| SeedTriangles | list of start triangles, each component contains at least one of these triangles |
| TrisConnectedPredicate | optional function that specifies whether two edge-connected triangles should be considered connected by the search |