This code sample demonstrates how to generates a set of points that covers a sphere almost evenly, for any number of points. The trick is to use a spiral and the golden angle.
42 points | 256 points | 999 points |
---|---|---|
Such points sets are useful for anything that requires sampling a sphere.