Dispersing n points uniformly on a sphere

后端 未结 4 1725
Happy的楠姐
Happy的楠姐 2020-12-15 20:23

I am trying to disperse n points on a sphere such that each point has the \"same\" area \"around\" it. Basically, I\'m trying to integrate a function over a sphere by evalua

4条回答
  •  天命终不由人
    2020-12-15 20:52

    Could be wrong, but if

    1. setup interactions between two points as I(a,b) = (a-b) / (|a-b|)^3, a,b are threatened as vectors in 3D space
    2. for the first iterations place points as usual (at equal angle distances, how it has been mentioned in the wim post)
    3. at each step of algorithm you will move each point against gradient of summ of I (from 1.) where I is calculated only on direct neighbours
    4. repeat 3 until gradient at each point will become 0.

    the algorithm will converge to the configuration what you need. It is time consumpting, but you could cache results for various number of points.

提交回复
热议问题