![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SegmentMesh.h>
Public Member Functions | |
| FSegmentMesh () | |
| CHAOS_API | FSegmentMesh (TArray< TVec2< int32 > > &&Elements) |
| FSegmentMesh (const FSegmentMesh &Other)=delete | |
| FSegmentMesh (FSegmentMesh &&Other) | |
| CHAOS_API | ~FSegmentMesh () |
| CHAOS_API void | Init (const TArray< TVec2< int32 > > &Elements) |
| CHAOS_API void | Init (TArray< TVec2< int32 > > &&Elements) |
| int32 | GetNumElements () const |
| const TArray< TVec2< int32 > > & | GetElements () const |
| const TSet< int32 > * | GetNeighbors (const int32 index) const |
| CHAOS_API const TMap< int32, TSet< int32 > > & | GetPointToNeighborsMap () const |
| CHAOS_API const TMap< int32, TArray< int32 > > & | GetPointToEdges () const |
| CHAOS_API TArray< FReal > | GetEdgeLengths (const TParticles< FReal, 3 > &InParticles, const bool lengthSquared=false) const |
Mesh structure of connected particles via edges.
|
inline |
|
delete |
|
inline |
| Chaos::FSegmentMesh::~FSegmentMesh | ( | ) |
| TArray< FReal > Chaos::FSegmentMesh::GetEdgeLengths | ( | const TParticles< FReal, 3 > & | InParticles, |
| const bool | lengthSquared = false |
||
| ) | const |
@ret Lengths (or lengths squared) of all edges.
| InParticles | - The particle positions to use. This routine assumes it's sized appropriately. |
| lengthSquared | - If true, the squared length is returned, which is faster. |
@ret The set of neighbor nodes, or nullptr if index is not found.
|
inline |
@ret A map of each point index to the list of connected edges.
@ret A map of each point index to the list of connected points.