Navigation
API > API/Runtime > API/Runtime/Chaos
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)
| Name | TConvexFlattenedArrayStructureData |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/ConvexFlattenedArrayStructureData.h |
| Include Path | #include "Chaos/ConvexFlattenedArrayStructureData.h" |
Syntax
template<typename T_INDEX, typename T_OFFSETINDEX>
class TConvexFlattenedArrayStructureData : public Chaos::Legacy::FConvexFlattenedArrayStructureData
Inheritance Hierarchy
- FConvexFlattenedArrayStructureData → TConvexFlattenedArrayStructureData
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FIndex | T_INDEX | Chaos/ConvexFlattenedArrayStructureData.h | |
| FOffsetIndex | T_OFFSETINDEX | Chaos/ConvexFlattenedArrayStructureData.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| PlaneVertices | TArray< FIndex > | A flattened ragged array. For each plane: the set of vertex indices that form the corners of the face in counter-clockwise order. | Chaos/ConvexFlattenedArrayStructureData.h | |
| PlaneVerticesOffsetCount | TArray< TPair< FOffsetIndex, FIndex > > | Array of [offset, count] for each plane that gives the set of indices in the PlaneVertices flattened array. | Chaos/ConvexFlattenedArrayStructureData.h | |
| VertexPlanes | TArray< FIndex > | A flattened ragged array. For each vertex: the set of plane indices that use the vertex. | Chaos/ConvexFlattenedArrayStructureData.h | |
| VertexPlanesOffsetCount | TArray< TPair< FOffsetIndex, FIndex > > | Array of [offset, count] for each vertex that gives the set of indices in the VertexPlanes flattened array. | Chaos/ConvexFlattenedArrayStructureData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetPlaneVertex
(
int32 PlaneIndex, |
Get the vertex index (in the outer convex container) of one of the vertices making up the corners of the specified face. | Chaos/ConvexFlattenedArrayStructureData.h | |
int32 GetVertexPlane
(
int32 VertexIndex, |
Get the plane index (in the outer convex container) of one of the planes that uses the specified vertex. | Chaos/ConvexFlattenedArrayStructureData.h | |
int32 NumPlanes() |
Chaos/ConvexFlattenedArrayStructureData.h | ||
int32 NumPlaneVertices
(
int32 PlaneIndex |
The number of vertices that make up the corners of the specified face. | Chaos/ConvexFlattenedArrayStructureData.h | |
int32 NumVertexPlanes
(
int32 VertexIndex |
The number of planes that use the specified vertex. | Chaos/ConvexFlattenedArrayStructureData.h | |
int32 NumVertices() |
Chaos/ConvexFlattenedArrayStructureData.h | ||
void Reset() |
Chaos/ConvexFlattenedArrayStructureData.h | ||
void Serialize
(
FArchive& Ar |
Chaos/ConvexFlattenedArrayStructureData.h | ||
| Chaos/ConvexFlattenedArrayStructureData.h |