Skip to content

Instantly share code, notes, and snippets.

Avatar

zloedi zloedi

  • Sofia Bulgaria
View GitHub Profile
@Seanmatthews
Seanmatthews / fibonacci_sphere.py
Created May 29, 2018
Create equidistant points on the surface of a sphere using Fibonacci sphere algorithm
View fibonacci_sphere.py
#!/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