TFitCapsule3

Fit a Capsule to a set of 3D points.

Choose your operating system:

Windows

macOS

Linux

References

Module

GeometryAlgorithms

Header

/Engine/Plugins/Runtime/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< TVector< RealType >(i...
)

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

Public function Static

bool

 

Solve

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

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