FMeshConnectedComponents::FindConnectedTriangles

Find all connected triangle components of a subset of triangles of the Mesh and store in Components array.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/Selections/MeshConnectedComponents.h

Include

#include "Selections/MeshConnectedComponents.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/Selections/MeshConnectedComponents.cpp

Syntax

void FindConnectedTriangles
(
    TFunctionRef< bool> IndexFilterFunc,
    TFunction< bool, int32)> TrisConnectedPredicate
)

Remarks

Find all connected triangle components of a subset of triangles of the Mesh and store in Components array. Triangle connectivity is based on edge connectivity, ie bowtie-vertices are not connections between triangles.

Parameters

Parameter

Description

IndexFilterFunc

defines set of triangles to search across, return true for triangle IDs that are to be considered

TrisConnectedPredicate

optional function that specifies whether two edge-connected triangles should be considered connected by the search

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss