Skip to content

Instantly share code, notes, and snippets.


zloedi zloedi

  • Sofia Bulgaria
View GitHub Profile
Seanmatthews /
Created May 29, 2018
Create equidistant points on the surface of a sphere using Fibonacci sphere algorithm
#!/usr/bin/env python3
import argparse
import mpl_toolkits.mplot3d.axes3d as ax3d
import matplotlib.pyplot as plt
import numpy as np
def fibonacci_sphere(num_points: int):
ga = (3 - np.sqrt(5)) * np.pi # golden angle