Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/GeometryCollection
Inheritance Hierarchy
- FTransformCollection
- FGeometryCollectionConvexPropertiesInterface
- FGeometryCollectionProximityPropertiesInterface
- FGeometryCollection
- FTetrahedralCollection
- FFleshCollection
References
| Module | Chaos |
| Header | /Engine/Source/Runtime/Experimental/Chaos/Public/GeometryCollection/GeometryCollection.h |
| Include | #include "GeometryCollection/GeometryCollection.h" |
Syntax
class FGeometryCollection :
public FTransformCollection,
public FGeometryCollectionConvexPropertiesInterface,
public FGeometryCollectionProximityPropertiesInterface
Remarks
FGeometryCollection (FTransformCollection)
Variables
| Type | Name | Description | |
|---|---|---|---|
| TManagedArray< int32 > | BoneMap | ||
| TManagedArray< FBox > | BoundingBox | ||
| TManagedArray< FLinearColor > | Color | ||
| TManagedArray< int32 > | ExemplarIndex | ||
| TManagedArray< int32 > | FaceCount | ||
| TManagedArray< int32 > | FaceStart | ||
| TManagedArray< FIntVector > | Indices | Faces Group. | |
| TManagedArray< int32 > | InitialDynamicState | ||
| TManagedArray< float > | InnerRadius | ||
| TManagedArray< bool > | Internal | ||
| TManagedArray< int32 > | MaterialID | ||
| TManagedArray< int32 > | MaterialIndex | ||
| TManagedArray< FVector3f > | Normal | ||
| TManagedArray< float > | OuterRadius | ||
| TManagedArray< FGeometryCollectionSection > | Sections | Material Group. | |
| TManagedArray< int32 > | SimulationType | ||
| TManagedArray< int32 > | StatusFlags | ||
| TManagedArray< FVector3f > | TangentU | ||
| TManagedArray< FVector3f > | TangentV | ||
| TManagedArray< int32 > | TransformIndex | Geometry Group. | |
| TManagedArray< int32 > | TransformToGeometryIndex | Transform Group. | |
| TManagedArray< FVector3f > | Vertex | Vertices Group. | |
| TManagedArray< int32 > | VertexCount | ||
| TManagedArray< int32 > | VertexStart | ||
| TManagedArray< bool > | Visible |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AppendEmbeddedInstance
(
int32 InExemplarIndex, |
Append single embedded geometry. Returns true if the operation succeeds. | |
| int32 | AppendGeometry
(
const FGeometryCollection& GeometryCollection, |
Append a single geometric object to a FGeometryCollection | |
| bool | |||
| bool | BuildFaceToGeometryMapping
(
bool InSaved |
Update Face Attributes based on changes in the group. | |
| TArray< FGeometryCollectionSection > | BuildMeshSections
(
const TArray< FIntVector >& Indices, |
Builds mesh sections for a given index buffer that could be a subset. | |
| bool | BuildVertexToGeometryMapping
(
bool InSaved |
Build and Update Vertex Attributes based on changes in the group. | |
| void | ClearFlags
(
int32 Element, |
||
| TArray< TArray< int32 > > | Connection of leaf geometry | ||
| void | Construct () |
||
| void | |||
| void | Empty () |
Empty each managed array in each group in order to reset the collection to an initial (empty) state. | |
| TManagedArray< FVector2f > * | FindUVLayer
(
int32 UVLayer |
||
| const TManagedArray< FVector2f > * | FindUVLayer
(
int32 UVLayer |
||
| FBoxSphereBounds | GetBoundingBox | ||
| constexpr int32 | |||
| const FVector2f & | GetUV
(
int32 VertexIndex, |
||
| bool | Returns true if the faces are contiguous | ||
| bool | Returns true if the render faces are contiguous | ||
| bool | Returns true if the vertices are contiguous | ||
| bool | HasFlags
(
int32 Element, |
||
| bool | Returns true if there is anything to render | ||
| void | Init
(
FGeometryCollection* Collection, |
||
| void | Initialize any interfaces on the geometry collection (i.e., the FGeometryCollectionConvexPropertiesInterface) | ||
| bool | IsClustered
(
int32 Element |
||
| bool | IsGeometry
(
int32 Element |
||
| bool | IsRigid
(
int32 Element |
||
| bool | IsTransform
(
int32 Element |
||
| bool | IsVisible
(
int32 Element |
Return true if the Element contains any visible faces. | |
| FVector2f & | ModifyUV
(
int32 VertexIndex, |
Note: UVs have been reworked, and unfortunately there is not a safe path to provide the original UVs managed array as a deprecated accessor. | |
| FGeometryCollection * | NewGeometryCollection
(
const TArray< float >& RawVertexArray, |
Create a GeometryCollection from Vertex, Indices, BoneMap, Transform, BoneHierarchy arrays | |
| FGeometryCollection * | NewGeometryCollection
(
const TArray< float >& RawVertexArray, |
Create a GeometryCollection from Vertex and Indices arrays | |
| int32 | NumUVLayers () |
Returns number of UV layers represented by UV array. | |
| void | ReindexExemplarIndices
(
TArray< int32 >& SortedRemovedIndices |
Reindex exemplar indices to reflect removed exemplars. | |
| void | Reindex sections to keep polys with same materials together to reduce the number of draw calls | ||
| void | Reindex sections to keep polys with same materials together to reduce the number of draw calls | ||
| void | RemoveGeometryElements
(
const TArray< int32 >& SortedGeometryIndicesToDelete |
Remove Geometry elements i.e. verts, faces, etc, leaving the transform nodes intact | |
| void | ReorderGeometryElements
(
const TArray< int32 >& NewOrder |
Reorder geometry elements. | |
| void | ReorderTransformElements
(
const TArray< int32 >& NewOrder |
Reorder geometry elements based on the new transform order. | |
| void | SetFlags
(
int32 Element, |
||
| bool | SetNumUVLayers
(
int32 NumLayers |
Update a geometry collection to have the target number of UV layers (must be in the range [1, MAX_UV_LAYERS)) | |
| FName | StaticType () |
||
| void | Update bounding box entries for the geometry | ||
| void | UpdateBoundingBox
(
FManagedArrayCollection&, |
Update bounding box entries for the geometry | |
| void | |||
| void | UpdateGeometryVisibility
(
const TArray< int32 >& NodeList, |
Update the visibility of specified geometry nodes | |
| void | Backwards compatibility | ||
| void | |||
| void | WriteDataToHeaderFile
(
const FString& Name, |
||
| void | WriteDataToOBJFile
(
const FString& Name, |
Overridden from FManagedArrayCollection
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| void | MatchOptionalDefaultAttributes
(
const FManagedArrayCollection& InCollection |
Virtual helper function called by CopyMatchingAttributesFrom; adds attributes 'default, but optional' attributes that are present in InCollection This is used by FGeometryCollection to make sure all UV layers are copied over by CopyMatchingAttributesFrom() | |
| void | RemoveElements
(
const FName& Group, |
Remove Geometry and update dependent elements | |
| void | ReorderElements
(
FName Group, |
Reorders elements in a group. NewOrder must be the same length as the group. | |
| void | Reset () |
Reset internal state | |
| void | Serialize
(
Chaos::FChaosArchive& Ar |
Serialize | |
| void | SetDefaults
(
FName Group, |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FGeometryCollection & | operator=
(
FGeometryCollection&& |
||
| FGeometryCollection & | operator=
(
const FGeometryCollection& |
Enums
| Type | Name | Description | |
|---|---|---|---|
| ENodeFlags | |||
| ESimulationTypes |
Typedefs
| Name | Description |
|---|---|
| Super |