how can i build a spherical wireframe grid in unity?

Actually I am able to develop a wireframe. However, all points are static in this. I want to make it dynamic such that user can input any number of points and would be able to develop spherical wireframe according to that. All meshes are created using code. [16302-screen+shot+2013-10-09+at+10.52.40+am.png|16302]

  1. You start with a random set of
    vertices on the sphere.
  2. Then you
    iteratively push them apart, but
    keep them on the sphere.
  3. When the iterations are having too little
    effect, you stop.
  4. These vertices you then link into triangles using Delaunay triangulation. (Just
    replace circles on a plane with
    spheres on a sphere.)