数学图形(2.7)sphere sine wave

在球上以SIN曲线的轨迹游走.

#http://www.mathcurve.com/courbes3d/couronnetangentoidale/couronnetangentoidale.shtml

vertices = 12000

t = from 0 to (40*PI)

a = 10
n = rand2(0.5, 10)
 
x = a*sin(n*t)*cos(t)
y = a*sin(n*t)*sin(t)
z = a*cos(n*t)

 有SIN的就会有与它相反的COS的:

#http://www.mathcurve.com/courbes3d/clelie/clelie.shtml

vertices = 12000

t = from 0 to (80*PI)

a = 10
n = rand2(0.1, 10)
 
x = a*cos(n*t)*cos(t)
y = a*cos(n*t)*sin(t)
z = a*sin(n*t)

二者生成的图形差不多

 

 

 

posted on 2014-07-12 15:58  叶飞影  阅读(900)  评论(0编辑  收藏  举报