FTriangleMesh

Windows
MacOS
Linux

References

Module

Chaos

Header

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

Include

#include "Chaos/TriangleMesh.h"

Syntax

class FTriangleMesh

Constructors

Name Description

Public function

FTriangleMesh()

Public function

FTriangleMesh

(
    const FTriangleMesh& Other
)

Public function

FTriangleMesh

(
    FTriangleMesh&& Other
)

Public function

FTriangleMesh

(
    TArray< TVec3< int32 >>&& Elements,
    const int32 StartIdx,
    const int32 EndIdx,
    const bool CullDegenerateElements
)

Destructors

Name Description

Public function

~FTriangleMesh()

Functions

Name Description

Public function

void

 

ExpandVertexRange

(
    const int32 StartIdx,
    const int32 EndIdx
)

Extends the vertex range.

Public function

TMap< int32,...

 

FindCoincidentVertexRemappings

(
    const TArray< int32 >& TestIndices,
    const TConstArrayView< FVec3 >& Po...
)

Find vertices that are coincident within the subset

Public function

TSet< int32 ...

 

GetBoundaryPoints()

Get the set of point indices that live on the boundary (an edge with only 1 coincident face).

Public function Const

const TArray...

 

GetCoincidentTriangles

(
    const int32 Element
)

Public function Static

FTriangleMes...

 

GetConvexHullFromParticles

(
    const FParticles& InParticles
)

  1. Use TArrayView version.

Public function Static

FTriangleMes...

 

GetConvexHullFromParticles

(
    const TConstArrayView< FVec3 >& po...
)

Public function

TArray< FRea...

 

GetCurvatureOnEdges

(
    const TConstArrayView< FVec3 >& po...
)

Helper that generates face normals on the fly.

Public function

TArray< FRea...

 

GetCurvatureOnEdges

(
    const TArray< FVec3 >& faceNormals
)

Curvature between adjacent faces, specified on edges in radians.

Public function

TArray< FRea...

 

GetCurvatureOnPoints

(
    const TConstArrayView< FVec3 >& po...
)

Helper that generates edge curvatures on the fly.

Public function

TArray< FRea...

 

GetCurvatureOnPoints

(
    const TArray< FReal >& edgeCurvatu...
)

The maximum curvature at points from connected edges, specified in radians.

Public function

const TArray...

 

GetEdgeToFaces()

A map from all edge indices, to the indices of their containing faces.

Public function

TArray< TVec...

 

GetElements()

Move accessor for topology array.

Public function Const

const TArray...

 

GetElements()

Public function Const

void

 

GetFaceNormals

(
    TArray< FVec3 >& Normals,
    const TConstArrayView< FVec3 >& Po...,
    const bool ReturnEmptyOnError
)

The GetFaceNormals functions assume Counter Clockwise triangle windings in a Left Handed coordinate system If this is not the case the returned face normals may be inverted

Public function Const

TArray< FVec...

 

GetFaceNormals

(
    const FParticles& InParticles,
    const bool ReturnEmptyOnError
)

The GetFaceNormals functions assume Counter Clockwise triangle windings in a Left Handed coordinate system If this is not the case the returned face normals may be inverted

Public function Const

TArray< FVec...

 

GetFaceNormals

(
    const TConstArrayView< FVec3 >& Po...,
    const bool ReturnEmptyOnError
)

The GetFaceNormals functions assume Counter Clockwise triangle windings in a Left Handed coordinate system If this is not the case the returned face normals may be inverted

Public function

const TArray...

 

GetFaceToEdges()

A map from all face indices, to the indices of their associated edges.

Public function Const

const TSet< ...

 

GetNeighbors

(
    const int32 Element
)

Public function Const

TSet< int32 ...

 

GetNRing

(
    const int32 Element,
    const int32 N
)

Public function Const

int32

 

GetNumElements()

Public function Const

void

 

GetPointNormals

(
    TArrayView< FVec3 > PointNormals,
    const TConstArrayView< FVec3 >& Fa...,
    const bool bUseGlobalArray
)

Get per-point normals. This const version of this function requires `GetPointToTriangleMap()_ to be called prior to invoking this function.

Public function

void

 

GetPointNormals

(
    TArrayView< FVec3 > PointNormals,
    const TConstArrayView< FVec3 >& Fa...,
    const bool bUseGlobalArray
)

Public function

TArray< FVec...

 

GetPointNormals

(
    const FParticles& InParticles,
    const bool ReturnEmptyOnError
)

Public function

TArray< FVec...

 

GetPointNormals

(
    const TConstArrayView< FVec3 >& po...,
    const bool ReturnEmptyOnError
)

Public function Const

const TMap< ...

 

GetPointToNeighborsMap()

Public function Const

TConstArrayV...

 

GetPointToTriangleMap()

Public function

FSegmentMesh...

 

GetSegmentMesh()

The connectivity of this mesh represented as a collection of unique segments.

Public function

TArray< TVec...

 

GetSurfaceElements()

Move accessor for topology array.

Public function Const

const TArray...

 

GetSurfaceElements()

Public function Const

TArray< Chao...

 

GetUniqueAdjacentElements()

Return the array of bending element indices {i0, i1, i2, i3}, with {i0, i1} the segment indices and {i2, i3} the cross segment indices.

Public function Const

TArray< Chao...

 

GetUniqueAdjacentPoints()

Return the array of all cross segment indices for all pairs of adjacent triangles.

Public function

TArray< int3...

 

GetVertexImportanceOrdering

(
    const TConstArrayView< FVec3 >& Po...,
    const TArray< FReal >& PointCurvat...,
    TArray< int32 >* CoincidentVer...,
    const bool RestrictToLocalIndexRang...
)

An array of vertex indices ordered from most important to least.

Public function

TArray< int3...

 

GetVertexImportanceOrdering

(
    const TConstArrayView< FVec3 >& Po...,
    TArray< int32 >* CoincidentVer...,
    const bool RestrictToLocalIndexRang...
)

Helper that generates point curvatures on the fly.

Public function Const

TVec2< int32...

 

GetVertexRange()

Returns the closed interval of the smallest vertex index used by this class, to the largest.

Public function Const

void

 

GetVertexSet

(
    TSet< int32 >& VertexSet
)

Returns the unique set of vertices used by this triangle mesh.

Public function Const

TSet< int32 ...

 

GetVertices()

Returns the set of vertices used by triangles.

Public function

void

 

Init

(
    TArray< TVec3< int32 >>&& Elements,
    const int32 StartIdx,
    const int32 EndIdx,
    const bool CullDegenerateElements
)

Initialize the `FTriangleMesh_.

Public function

void

 

Init

(
    const TArray< TVec3< int32 >>& Ele...,
    const int32 StartIdx,
    const int32 EndIdx,
    const bool CullDegenerateElements
)

Initialize the `FTriangleMesh_.

Public function Static

void

 

InitEquilateralTriangleXY

(
    FTriangleMesh& TriMesh,
    FParticles& Particles
)

Public function Static

void

 

InitEquilateralTriangleYZ

(
    FTriangleMesh& TriMesh,
    FParticles& Particles
)

Public function

void

 

RemapVertices

(
    const TMap< int32, int32 >& Remapp...
)

Reorder vertices according to.

Public function

void

 

RemapVertices

(
    const TArray< int32 >& Order
)

Reorder vertices according to.

Public function

void

 

RemoveDegenerateElements()

Public function

void

 

RemoveDuplicateElements()

Public function

void

 

ResetAuxiliaryStructures()

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