Class SphericalFibonacciPointSet
A Spherical Fibonacci Point Set is a set of points that are roughly evenly distributed on
a sphere. Basically the points lie on a spiral, see pdf below.
The i-th SF point of 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.
math from http://lgdv.cs.fau.de/uploads/publications/spherical_fibonacci_mapping_opt.pdf
Inheritance
SphericalFibonacciPointSet
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class SphericalFibonacciPointSet
Constructors
SphericalFibonacciPointSet(Int32)
Declaration
public SphericalFibonacciPointSet(int n = 64)
Parameters
Type |
Name |
Description |
Int32 |
n |
|
Fields
N
Declaration
Field Value
Properties
Count
Declaration
public int Count { get; }
Property Value
Item[Int32]
Declaration
public Vector3d this[int i] { get; }
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Property Value
Methods
NearestPoint(Vector3d, Boolean)
Find index of nearest point-set point for input arbitrary point
Declaration
public int NearestPoint(Vector3d p, bool bIsNormalized = false)
Parameters
Returns
Point(Int32)
Compute i'th spherical point
Declaration
public Vector3d Point(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns