Navigation
API > API/Runtime > API/Runtime/Chaos
Defines common API for calculating the bounding box on a collection
| Name | FBoundsFacade |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/GeometryCollection/Facades/CollectionBoundsFacade.h |
| Include Path | #include "GeometryCollection/Facades/CollectionBoundsFacade.h" |
Syntax
class FBoundsFacade
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FBoundsFacade
(
FManagedArrayCollection& InSelf |
FBoundsFacade Constuctor | GeometryCollection/Facades/CollectionBoundsFacade.h | |
FBoundsFacade
(
const FManagedArrayCollection& InSelf |
GeometryCollection/Facades/CollectionBoundsFacade.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BoneMapAttribute | TManagedArrayAccessor< int32 > | GeometryCollection/Facades/CollectionBoundsFacade.h | ||
| BoundingBoxAttribute | TManagedArrayAccessor< FBox > | GeometryCollection/Facades/CollectionBoundsFacade.h | ||
| Collection | FManagedArrayCollection * | GeometryCollection/Facades/CollectionBoundsFacade.h | ||
| ConstCollection | const FManagedArrayCollection & | GeometryCollection/Facades/CollectionBoundsFacade.h | ||
| TransformToGeometryIndexAttribute | TManagedArrayAccessor< int32 > | GeometryCollection/Facades/CollectionBoundsFacade.h | ||
| VertexAttribute | TManagedArrayAccessor< FVector3f > | GeometryCollection/Facades/CollectionBoundsFacade.h | ||
| VertexCountAttribute | TManagedArrayAccessor< int32 > | GeometryCollection/Facades/CollectionBoundsFacade.h | ||
| VertexStartAttribute | TManagedArrayAccessor< int32 > | GeometryCollection/Facades/CollectionBoundsFacade.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FBox ComputeBoundingBox
(
const TArray< FVector > InPoints |
Compute boundingBox for a point cloud | GeometryCollection/Facades/CollectionBoundsFacade.h | |
void DefineSchema() |
Create the facade attributes. | GeometryCollection/Facades/CollectionBoundsFacade.h | |
const TManagedArray< FBox > & GetBoundingBoxes() |
BoundingBox access | GeometryCollection/Facades/CollectionBoundsFacade.h | |
FBox GetBoundingBoxInCollectionSpace() |
BoundingBox for the whole collection in Collection space | GeometryCollection/Facades/CollectionBoundsFacade.h | |
FSphere GetBoundingSphereInCollectionSpace() |
BoundingSphere for the whole collection in Collection space | GeometryCollection/Facades/CollectionBoundsFacade.h | |
TArray< FVector > GetCentroids() |
Get center of bounding boxes warning : this is indexed on the geometry group not the transform group | GeometryCollection/Facades/CollectionBoundsFacade.h | |
const TManagedArray< int32 > & GetTransformToGeometryIndex() |
TransformToGeometryIndex Access | GeometryCollection/Facades/CollectionBoundsFacade.h | |
bool IsConst() |
Is the facade defined constant. | GeometryCollection/Facades/CollectionBoundsFacade.h | |
bool IsValid() |
Is the Facade defined on the collection? | GeometryCollection/Facades/CollectionBoundsFacade.h | |
void UpdateBoundingBox() |
UpdateBoundingBox | GeometryCollection/Facades/CollectionBoundsFacade.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void UpdateTransformBasedBoundingBox() |
Transform based bounds evaluation, where the vertices are nested within a transform | GeometryCollection/Facades/CollectionBoundsFacade.h | |
void UpdateVertexBasedBoundingBox() |
Vertex based bounds evaluation, where the vertices are NOT nested within a transform | GeometryCollection/Facades/CollectionBoundsFacade.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TArray< FVector > GetBoundingBoxVertexPositions
(
const FBox& InBox |
Returns the positions of the vertices of an FBox | GeometryCollection/Facades/CollectionBoundsFacade.h |