FSegmentMesh

Mesh structure of connected particles via edges.

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/SegmentMesh.h

Include

#include "Chaos/SegmentMesh.h"

Syntax

class FSegmentMesh

Remarks

Mesh structure of connected particles via edges.

Constructors

Name Description

Public function

FSegmentMesh()

Public function

FSegmentMesh

(
    TArray< TVec2< int32 >>&& Elements
)

Public function

FSegmentMesh

(
    const FSegmentMesh& Other
)

Public function

FSegmentMesh

(
    FSegmentMesh&& Other
)

Destructors

Name Description

Public function

~FSegmentMesh()

Functions

Name Description

Public function Const

TArray< FRea...

 

GetEdgeLengths

(
    const TParticles< FReal, 3 >& InPa...,
    const bool lengthSquared
)

Lengths (or lengths squared) of all edges.

Public function Const

const TArray...

 

GetElements()

Public function Const

const TSet< ...

 

GetNeighbors

(
    const int32 index
)

The set of neighbor nodes, or nullptr if `index_ is not found.

Public function Const

int32

 

GetNumElements()

Public function Const

const TMap< ...

 

GetPointToEdges()

A map of each point index to the list of connected edges.

Public function Const

const TMap< ...

 

GetPointToNeighborsMap()

A map of each point index to the list of connected points.

Public function

void

 

Init

(
    const TArray< TVec2< int32 >>& Ele...
)

Public function

void

 

Init

(
    TArray< TVec2< int32 >>&& Elements
)

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