数学图形(2.17)pappus螺线

时间:2014-07-13 19:57:15   收藏:0   阅读:243

帕波斯(Pappus of Alexandria) 生于亚历山大,活跃于公元300—350前后.该螺线是一种绕在圆锥上的曲线.

#http://www.mathcurve.com/courbes3d/spiraleconic/pappus.shtml

vertices = 12000

t = from (-20*PI) to (20*PI)

r = 1
a = rand2(PI*0.2, PI*0.8)

x = r*sin(a)*t*cos(t)
z = r*sin(a)*t*sin(t)
y = r*cot(a)*t

bubuko.com,布布扣

 另一种写法:

vertices = 12000

t = from (-8*PI) to (8*PI)

r = 10
a = rand2(PI*0.1, PI*0.9)

x = r*t*sin(a)*cos(t)
y = r*t*cos(a)
z = r*t*sin(a)*sin(t)

bubuko.com,布布扣

 

 

数学图形(2.17)pappus螺线,布布扣,bubuko.com

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!