title: Algorithm for a geodesic sphere
body: <p>I have to make a sphere out of smaller uniformely distributed balls. I think the optimal way is to build a triangle-based geodesic sphere and use the vertices as the middle points of my balls. But I fail to write an algorithm generating the vertices.
  Answer in C++ or pseudo-code will be better.</p>
  
  <p>Example of a geodesic sphere: <a href="http://i.stack.imgur.com/iNQfP.png" rel="noreferrer">http://i.stack.imgur.com/iNQfP.png</a></p>