一切都在标题中,我想在球体的表面上构建一个网格。做起来并不难,但我不知道它是否已经存在?
例如我这样做了:
import scipy as sp
from scipy import pi, cos, sin
d = 1.0
for theta in sp.linspace(0, pi, 20, endpoint = False):
for phi in sp.linspace(0, 2. * pi, 20, endpoint = False):
x = d * sin(theta) * cos(phi)
y = d * sin(theta) * sin(phi)
z = d * cos(theta)
谢谢