ShapeApproximation

Choose your operating system:

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

UE::Geometry::EDetectedSimpleShapeType

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

Public enum

UE::Geometry::ESimpleShapeType

Supported/known types of Simple Shapes

Functions

Name Description

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.

Public function

constexpr bo...

 

UE::Geometry::operator!

(
    ESimpleShapeType E
)

Public function

constexpr ES...

 

UE::Geometry::operator&

(
    ESimpleShapeType Lhs,
    ESimpleShapeType Rhs
)

Public function

ESimpleShape...

 

UE::Geometry::operator&=

(
    ESimpleShapeType& Lhs,
    ESimpleShapeType Rhs
)

Public function

constexpr ES...

 

UE::Geometry::operator^

(
    ESimpleShapeType Lhs,
    ESimpleShapeType Rhs
)

Public function

ESimpleShape...

 

UE::Geometry::operator^=

(
    ESimpleShapeType& Lhs,
    ESimpleShapeType Rhs
)

Public function

constexpr ES...

 

UE::Geometry::operator|

(
    ESimpleShapeType Lhs,
    ESimpleShapeType Rhs
)

Public function

ESimpleShape...

 

UE::Geometry::operator|=

(
    ESimpleShapeType& Lhs,
    ESimpleShapeType Rhs
)

Public function

constexpr ES...

 

UE::Geometry::operator~

(
    ESimpleShapeType E
)