Skip to content

Instantly share code, notes, and snippets.

View drsteve's full-sized avatar
💭
This is fine

Steve Morley drsteve

💭
This is fine
View GitHub Profile
@dinob0t
dinob0t / points_on_sphere
Last active February 24, 2023 16:37
Generates evenly distributed points on the surface of a sphere
"""
To generate 'num' points on a sphere of radius 'r' centred on the origin
- Random placement involves randomly chosen points for 'z' and 'phi'
- Regular placement involves chosing points such that there one point per d_area
References:
Deserno, 2004, How to generate equidistributed points on the surface of a sphere
http://www.cmu.edu/biolphys/deserno/pdf/sphere_equi.pdf
"""