FMeshConnectedComponents::FindTrianglesConnectedToSeeds

Find all connected triangle components that contain one or more Seed Triangles 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 FindTrianglesConnectedToSeeds
(
    const TArray< int > & SeedTriangles,
    TFunction< bool, int32)> TrisConnectedPredicate
)

Remarks

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.

Parameters

Parameter

Description

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

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