FMeshConnectedComponents

[FMeshConnectedComponents](API\Plugins\DynamicMesh\Selections\FMeshConnectedComponents) calculates Connected Components of a Mesh, or sub-regions of a Mesh.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/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

Name Description

Public variable

TIndirectArray<...

 

Components

List of Connected Components that have been found by one of the calculation functions

Public variable

const FDynamicM...

 

Mesh

Constructors

Name Description

Public function

FMeshConnectedComponents

(
    const FDynamicMesh3* MeshIn
)

Functions

Name Description

Public function Const

auto

 

begin()

Public function

auto

 

begin()

DO NOT USE DIRECTLY STL-like iterators to enable ranged-based for loop support (forwarding TIndirectArray declarations)

Public function

auto

 

end()

Public function Const

auto

 

end()

Public function

void

 

FindConnectedTriangles

(
    TFunctionRef< bool> IndexFilte...,
    TFunction< bool, int32)> Tris...
)

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

Public function

void

 

FindConnectedTriangles

(
    const TArray< int >& TriangleROI,
    TFunction< bool, int32)> Tris...
)

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

Public function

void

 

FindConnectedTriangles

(
    TFunction< bool, int32)> Tris...
)

Calculation functions.

Public function

void

 

FindTrianglesConnectedToSeeds

(
    const TArray< int >& SeedTriangles,
    TFunction< bool, int32)> Tris...
)

Find all connected triangle components that contain one or more Seed Triangles and store in Components array.

Protected function

void

 

FindTriComponent

(
    FComponent* Component,
    TArray< int32 >& ComponentQueue,
    TArray< uint8 >& ActiveSet
)

Internal functions to calculate ROI

Protected function

void

 

FindTriComponent

(
    FComponent* Component,
    TArray< int32 >& ComponentQueue,
    TArray< uint8 >& ActiveSet,
    TFunctionRef< bool, int32)> T...
)

Internal functions to calculate ROI

Protected function

void

 

FindTriComponents

(
    FInterval1i ActiveRange,
    TArray< uint8 >& ActiveSet,
    TFunction< bool, int32)> TriC...
)

Internal functions to calculate ROI

Protected function

void

 

FindTriComponents

(
    const TArray< int32 >& SeedList,
    TArray< uint8 >& ActiveSet,
    TFunction< bool, int32)> TriC...
)

Internal functions to calculate ROI

Public function Const

const FCompo...

 

GetComponent

(
    int32 Index
)

Public function

FComponent &

 

GetComponent

(
    int32 Index
)

Public function Const

int32

 

GetLargestIndexByCount()

Public function Static

void

 

GrowToConnectedTriangles

(
    const FDynamicMesh3* Mesh,
    const TArray< int >& InputROI,
    TArray< int >& ResultROI,
    TArray< int32 >* QueueBuffer,
    TSet< int32 >* DoneBuffer,
    TFunctionRef< bool, int32)> C...
)

Utility function to expand a triangle selection to all triangles considered "connected".

Public function Const

int32

 

Num()

Query functions. Only valid to call after a Calculation function has been called.

Protected function

void

 

RemoveFromActiveSet

(
    const FComponent* Component,
    TArray< uint8 >& ActiveSet
)

Public function

void

 

SortByCount

(
    bool bLargestFirst
)

Sort the Components array by component element count

Classes

Name

Description

Public struct

FComponent

Connected Component found by one of the calculation functions

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