Navigation
API > API/Plugins > API/Plugins/GeometryAlgorithms
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.
| Name | TFitCapsule3 |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/GeometryAlgorithms/Public/FitCapsule3.h |
| Include Path | #include "FitCapsule3.h" |
Syntax
template<typename RealType>
class TFitCapsule3
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bResultValid | bool | Set to true in Solve() on success | FitCapsule3.h | |
| Capsule | TCapsule3< RealType > | The capsule computed in Solve() | FitCapsule3.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Solve
(
int32 NumPoints, |
Solve variants Calculate a Capsule that contains the given Point Set and store in Output variables | FitCapsule3.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool Solve
(
int32 NumPoints, |
Calculate a Capsule that contains the given Point Set and return in CapsuleOut | FitCapsule3.h |