TMinVolumeSphere3

Calculate a Minimal-Volume Sphere for a set of 3D points.

Choose your operating system:

Windows

macOS

Linux

Warnings

  • Currently this processes input points in a randomized order so the results are not strictly deterministic. In particular if it fails you might try calling it again...

References

Module

GeometryAlgorithms

Header

/Engine/Plugins/Runtime/GeometryProcessing/Source/GeometryAlgorithms/Public/MinVolumeSphere3.h

Include

#include "MinVolumeSphere3.h"

Syntax

template<typename RealType>
class TMinVolumeSphere3

Remarks

Calculate a Minimal-Volume Sphere for a set of 3D points.

Currently this processes input points in a randomized order so the results are not strictly deterministic. In particular if it fails you might try calling it again...

Variables

Name Description

Protected variable

TPimplPtr< TMin...

 

Internal

Functions

Name Description

Public function

void

 

GetResult

(
    TSphere3< RealType >& SphereOut
)

Protected function

void

 

Initialize

(
    int32 NumPoints,
    bool bUseExactComputation
)

Public function Const

bool

 

IsSolutionAvailable()

Public function

bool

 

Solve

(
    int32 NumPoints,
    TFunctionRef< TVector< RealType >(i...,
    bool bUseExactComputation
)

Calculate the minimal sphere for the given point set.