TConvexFlattenedArrayStructureData

A container for the convex structure data arrays.

Windows
MacOS
Linux

Inheritance Hierarchy

FConvexFlattenedArrayStructureData

TConvexFlattenedArrayStructureData

References

Module

Chaos

Header

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

Include

#include "Chaos/ConvexFlattenedArrayStructureData.h"

Syntax

template<typename T_INDEX, typename T_OFFSETINDEX>
class TConvexFlattenedArrayStructureData : public Chaos::Legacy::FConvexFlattenedArrayStructureData

Remarks

A container for the convex structure data arrays. This is templated on the index type required, which needs to be large enough to hold the max of the number of vertices or planes on the convex.

T_INDEX: the type used to index into the convex vertices and planes array (in the outer convex). Must be able to contain max(NumPlanes, NumVerts).

T_OFFSETINDEX: the type used to index the flattened array of indices. Must be able to contain Max(NumPlanes*AverageVertsPerPlane)

Variables

Name Description

Public variable

TArray< FIndex ...

 

PlaneVertices

A flattened ragged array. For each plane: the set of vertex indices that form the corners of the face in counter-clockwise order.

Public variable

TArray< TPair< ...

 

PlaneVerticesOffsetCount

Array of [offset, count] for each plane that gives the set of indices in the PlaneVertices flattened array.

Public variable

TArray< FIndex ...

 

VertexPlanes

A flattened ragged array. For each vertex: the set of plane indices that use the vertex.

Public variable

TArray< TPair< ...

 

VertexPlanesOffsetCount

Array of [offset, count] for each vertex that gives the set of indices in the VertexPlanes flattened array.

Functions

Name Description

Public function Const

int32

 

GetPlaneVertex

(
    int32 PlaneIndex,
    int32 PlaneVertexIndex
)

Get the vertex index (in the outer convex container) of one of the vertices making up the corners of the specified face.

Public function Const

int32

 

GetVertexPlane

(
    int32 VertexIndex,
    int32 VertexPlaneIndex
)

Get the plane index (in the outer convex container) of one of the planes that uses the specified vertex.

Public function Const

int32

 

NumPlanes()

Public function Const

int32

 

NumPlaneVertices

(
    int32 PlaneIndex
)

The number of vertices that make up the corners of the specified face.

Public function Const

int32

 

NumVertexPlanes

(
    int32 VertexIndex
)

The number of planes that use the specified vertex.

Public function Const

int32

 

NumVertices()

Public function

void

 

Reset()

Public function

void

 

Serialize

(
    FArchive& Ar
)

Public function

void

 

SetPlaneVertices

(
    const TArray< TArray< int32 >>& In...,
    int32 NumVerts
)

Typedefs

Name

Description

FIndex

FOffsetIndex

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