TSphericalFibonacci

A Spherical Fibonacci (SF) Point Set is a set of points that are roughly evenly distributed on a sphere.

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Sampling/SphericalFibonacci.h

Include

#include "Sampling/SphericalFibonacci.h"

Syntax

template<typename RealType>
class TSphericalFibonacci

Remarks

A Spherical Fibonacci (SF) Point Set is a set of points that are roughly evenly distributed on a sphere. The points lie on a spiral, see https://dl.acm.org/doi/10.1145/2816795.2818131 for more information. The i-th SF point an N-point set can be calculated directly. For a given (normalized) point P, finding the nearest SF point (ie mapping back to i) can be done in constant time.

Z is "up" in the sphere.

Variables

Name Description

Public variable

int32

 

N

Constructors

Name Description

Public function

TSphericalFibonacci

(
    int32 NumPoints
)

Functions

Name Description

Public function

int32

 

FindIndex

(
    const FVector3< RealType >& P
)

Protected function Static

RealType

 

MultiplyAddFrac

(
    RealType a,
    RealType b
)

MultiplyAddFrac(A,B) = multiply_add( A ,B, -floor(A*B) )

Public function Const

int32

 

Num()

Public function Const

FVector3< Re...

 

Point

(
    int32 Index
)

Operators

Name Description

Public function Const

FVector3< Re...

 

operator[]

(
    int32 Index
)

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