| FConvexFlattenedArrayStructureData
|
Module |
|
Header |
/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/ConvexFlattenedArrayStructureData.h |
Include |
#include "Chaos/ConvexFlattenedArrayStructureData.h" |
template<typename T_INDEX, typename T_OFFSETINDEX>
class TConvexFlattenedArrayStructureData : public Chaos::Legacy::FConvexFlattenedArrayStructureData
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 | Description | ||
---|---|---|---|
|
PlaneVertices |
A flattened ragged array. For each plane: the set of vertex indices that form the corners of the face in counter-clockwise order. |
|
|
PlaneVerticesOffsetCount |
Array of [offset, count] for each plane that gives the set of indices in the PlaneVertices flattened array. |
|
|
VertexPlanes |
A flattened ragged array. For each vertex: the set of plane indices that use the vertex. |
|
|
VertexPlanesOffsetCount |
Array of [offset, count] for each vertex that gives the set of indices in the VertexPlanes flattened array. |
Name | Description | ||
---|---|---|---|
|
GetPlaneVertex |
Get the vertex index (in the outer convex container) of one of the vertices making up the corners of the specified face. |
|
|
GetVertexPlane |
Get the plane index (in the outer convex container) of one of the planes that uses the specified vertex. |
|
|
NumPlanes() |
||
|
NumPlaneVertices ( |
The number of vertices that make up the corners of the specified face. |
|
|
NumVertexPlanes ( |
The number of planes that use the specified vertex. |
|
|
NumVertices() |
||
|
Reset() |
||
|
Serialize ( |
||
|
SetPlaneVertices |
Name |
Description |
---|---|
FIndex |
|
FOffsetIndex |