Skip to content

Instantly share code, notes, and snippets.

View zloedi's full-sized avatar

zloedi zloedi

  • Sofia Bulgaria
View GitHub Profile
@Seanmatthews
Seanmatthews / fibonacci_sphere.py
Created May 29, 2018 02:54
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