TTriangleMesh

Windows
MacOS
Linux

References

Module

Chaos

Header

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

Include

#include "Chaos/Levelset.h"

Syntax

template<class T>
class TTriangleMesh

Constructors

Name Description

Public function

TTriangleMesh()

Public function

TTriangleMesh

(
    const TTriangleMesh & Other
)

Public function

TTriangleMesh

(
    TTriangleMesh && Other
)

Public function

TTriangleMesh

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

Destructors

Name Description

Public function

~TTriangleMesh()

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 TArrayView < const TVector < T,...
)

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

TTriangleMes ...

 

GetConvexHullFromParticles

(
    const TArrayView < const TVector < T,...
)

Public function Static

TTriangleMes ...

 

GetConvexHullFromParticles

(
    const TParticles < T, 3 >& InPartic...
)

  1. Use TArrayView version.

Public function

TArray < T >

 

GetCurvatureOnEdges

(
    const TArrayView < const TVector < T,...
)

Helper that generates face normals on the fly.

Public function

TArray < T >

 

GetCurvatureOnEdges

(
    const TArray < TVector < T, 3 >>& fa...
)

Curvature between adjacent faces, specified on edges in radians.

Public function

TArray < T >

 

GetCurvatureOnPoints

(
    const TArrayView < const TVector < T,...
)

Helper that generates edge curvatures on the fly.

Public function

TArray < T >

 

GetCurvatureOnPoints

(
    const TArray < T >& edgeCurvatures
)

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 < TVector < T, 3 >>& Normals,
    const TArrayView < const TVector < T,...,
    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 < TVec ...

 

GetFaceNormals

(
    const TParticles < T, 3 >& InPartic...,
    const bool ReturnEmptyOnError
)

  1. Use TArrayView version.

Public function Const

TArray < TVec ...

 

GetFaceNormals

(
    const TArrayView < const TVector < T,...,
    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

TArray < TVec ...

 

GetPointNormals

(
    const TArrayView < const TVector < T,...,
    const bool bReturnEmptyOnError,
    const bool bUseGlobalArray
)

Public function Const

void

 

GetPointNormals

(
    TArray < TVector < T, 3 >>& PointNor...,
    const TArray < TVector < T, 3 >>& Fa...,
    const bool bReturnEmptyOnError,
    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

(
    TArray < TVector < T, 3 >>& PointNor...,
    const TArray < TVector < T, 3 >>& Fa...,
    const bool ReturnEmptyOnError,
    const bool bUseGlobalArray
)

Public function

TArray < TVec ...

 

GetPointNormals

(
    const TParticles < T, 3 >& InPartic...,
    const bool bReturnEmptyOnError,
    const bool bUseGlobalArray
)

  1. Use TArrayView version.

Public function Const

const TMap < ...

 

GetPointToNeighborsMap()

Public function Const

const TMap < ...

 

GetPointToTriangleMap()

Public function

TSegmentMesh ...

 

GetSegmentMesh()

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

Public function Const

const TArray ...

 

GetSurfaceElements()

Public function

TArray < TVec ...

 

GetSurfaceElements()

Move accessor for topology array.

Public function Const

TArray < Chao ...

 

GetUniqueAdjacentElements()

Public function Const

TArray < Chao ...

 

GetUniqueAdjacentPoints()

Public function

TArray < int3 ...

 

GetVertexImportanceOrdering

(
    const TArrayView < const TVector < T,...,
    TArray < int32 >* CoincidentVer...,
    const bool RestrictToLocalIndexRang...
)

Helper that generates point curvatures on the fly.

Public function

TArray < int3 ...

 

GetVertexImportanceOrdering

(
    const TArrayView < const TVector < T,...,
    const TArray < T >& PointCurvatures,
    TArray < int32 >* CoincidentVer...,
    const bool RestrictToLocalIndexRang...
)

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

Public function Const

TPair < 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 < TVector < int32 , 3 >>&& Ele...,
    const int32 StartIdx,
    const int32 EndIdx,
    const bool CullDegenerateElements
)

Initialize the `TTriangleMesh _.

Public function

void

 

Init

(
    const TArray < TVector < int32 , 3 >> ...,
    const int32 StartIdx,
    const int32 EndIdx,
    const bool CullDegenerateElements
)

Initialize the `TTriangleMesh _.

Public function Static

void

 

InitEquilateralTriangleXY

(
    TTriangleMesh < T >& TriMesh,
    TParticles < T, 3 >& Particles
)

Public function Static

void

 

InitEquilateralTriangleYZ

(
    TTriangleMesh < T >& TriMesh,
    TParticles < T, 3 >& Particles
)

Public function

void

 

RemapVertices

(
    const TArray < int32 >& Order
)

Reorder vertices according to.

Public function

void

 

RemapVertices

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

Reorder vertices according to.

Public function

void

 

RemoveDegenerateElements()

Public function

void

 

RemoveDuplicateElements()

Public function

void

 

ResetAuxiliaryStructures()

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback