generate_fibonacci_sphere

generate_fibonacci_sphere#

mrinufft.trajectories.maths.generate_fibonacci_sphere(nb_points, epsilon=0.25)[source]#

Generate 3D Cartesian coordinates as a Fibonacci sphere.

Place 3D points almost evenly over a sphere surface of radius 1 by distorting a square Fibonacci lattice into a sphere.

Parameters:
  • nb_points (int) – Number of 3D points to generate.

  • epsilon (float) – Continuous offset used to reduce initially wrong lattice behavior.

Returns:

Array of 3D Cartesian coordinates covering a sphere of radius 1.

Return type:

np.ndarray