ShapeApproximation

Windows
MacOS
Linux

Classes

Name

Description

Public struct

FBoxShape3d

FBoxShape is a 3D oriented box

Public struct

FCapsuleShape3d

FCapsuleShape is a 3D oriented capsule/sphyl

Public struct

FConvexShape3d

FConvexShape is a 3D convex hull, currently stored as a triangle mesh

Public class

FMeshSimpleShapeApproximation

FMeshSimpleShapeApproximation can calculate various "simple" shape approximations for a set of meshes, by fitting various primitives/hulls/etc to each mesh.

Public struct

FSimpleShapeSet3d

FSimpleShapeSet stores a set of simple geometry shapes useful for things like collision detection/etc.

Public class

FSphereShape3d

FSphereShape is a 3D sphere

Enums

Name

Description

Public enum

EDetectedSimpleShapeType

EDetectedSimpleShapeType is used to identify auto-detected simple shapes for a mesh/etc

Public enum

ESimpleShapeType

Supported/known types of Simple Shapes

Functions

Name Description

Public function

constexpr bo...

 

operator!

(
    ESimpleShapeType E
)

Public function

constexpr ES...

 

operator&

(
    ESimpleShapeType Lhs,
    ESimpleShapeType Rhs
)

Public function

ESimpleShape...

 

operator&=

(
    ESimpleShapeType& Lhs,
    ESimpleShapeType Rhs
)

Public function

constexpr ES...

 

operator^

(
    ESimpleShapeType Lhs,
    ESimpleShapeType Rhs
)

Public function

ESimpleShape...

 

operator^=

(
    ESimpleShapeType& Lhs,
    ESimpleShapeType Rhs
)

Public function

constexpr ES...

 

operator|

(
    ESimpleShapeType Lhs,
    ESimpleShapeType Rhs
)

Public function

ESimpleShape...

 

operator|=

(
    ESimpleShapeType& Lhs,
    ESimpleShapeType Rhs
)

Public function

constexpr ES...

 

operator~

(
    ESimpleShapeType E
)

Public function

bool

 

UE::Geometry::IsBoxMesh

(
    const FDynamicMesh3& Mesh,
    FOrientedBox3d& BoxOut,
    double AngleToleranceDeg
)

Detect if input Mesh is a meshed box, and if so return analytic box in BoxOut.

Public function

bool

 

UE::Geometry::IsCapsuleMesh

(
    const FDynamicMesh3& Mesh,
    FCapsule3d& CapsuleOut,
    double RelativeDeviationTol
)

Detect if input Mesh is a meshed approximation of an analytic Capsule, and if so return best guess in CapsuleOut.

Public function

bool

 

UE::Geometry::IsSphereMesh

(
    const FDynamicMesh3& Mesh,
    FSphere3d& SphereOut,
    double RelativeDeviationTol
)

Detect if input Mesh is a meshed approximation of an analytic Sphere, and if so return best guess in SphereOut.

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