数学图形(2.21) 帖在抛物面上的曲线

在前面的章节数学图形(2.11) 帖在球上的曲线图形中,介绍了帖在球面上的曲线.与之类似,帖在抛物面上的曲线需要将新一维度的数值用抛物线的函数来运算即可.

y = a*(x*x + z*z)

 

vasque3d

#http://www.mathcurve.com/courbes3d/vasque3d/vasque3d.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*pow(cos(n*t), 2)

 

 

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