This code sample demonstrates how to generates a set of points that covers a torus, 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 torus.


