TFitCapsule3

Fit a Capsule to a set of 3D points.

Windows
MacOS
Linux

References

Module

GeometryAlgorithms

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometryAlgorithms/Public/FitCapsule3.h

Include

#include "FitCapsule3.h"

Syntax

template<typename RealType>
class TFitCapsule3

Remarks

Fit a Capsule to a set of 3D points. Currently solved by using least-squares to fit a line to the point set. This does not guarantee that the capsule is the minimal possible volume.

Variables

Name Description

Public variable

bool

 

bResultValid

Set to true in Solve() on success

Public variable

TCapsule3< Real...

 

Capsule

The capsule computed in Solve()

Functions

Name Description

Public function

bool

 

Solve

(
    int32 NumPoints,
    TFunctionRef< FVector3< RealType >(...
)

Solve variants Calculate a Capsule that contains the given Point Set and store in Output variables

Public function Static

bool

 

Solve

(
    int32 NumPoints,
    TFunctionRef< FVector3< RealType >(...,
    TCapsule3< RealType >& CapsuleOut
)

Calculate a Capsule that contains the given Point Set and return in CapsuleOut

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