圆环面螺线
#http://xuxzmail.blog.163.com/blog/static/25131916200976114621705/#Toroidal spiralvertices = 1000t = from 0 to (2*PI)r = 5n = 20x = (r+sin(20*t))*cos(t)y = (r+sin(20*t))*sin(t)z = cos(n*t)r = 10;x = x*ry = y*rz = z*r
在前面讲了N叶结,当N值越大时,你会发现整个图形越像一个圆环.这一节就讲其他几种绕在圆环上的曲线.
vertices = 12000t = from 0 to (64*PI)p = rand_int2(2, 32)q = rand_int2(2, 32)r = 2 + cos(q/p*t)x = r*sin(t)y = sin(q/p*t)z = r*cos(t)r = 0.5 + 0.5*sin(t)g = 0.5 + 0.5*yb = 0.5 + 0.5*cos(t)
另一个圆环上的曲线
#http://www.mathcurve.com/courbes3d/solenoidtoric/solenoidtoric.shtmlvertices = 10000t = from 0 to (20*PI)n = rand2(0.5, 10)a = rand2(5, 10)b = rand2(1, 5)x = (a + b*cos(n*t))*cos(t)z = (a + b*cos(n*t))*sin(t)y = b*sin(n*t)
knot(37)
vertices = 10000t = from 0 to (6*PI)p = 3q = 7r = 2 + cos(q/p*t)x = r*sin(t)y = sin(q/p*t)z = r*cos(t)r = 0.5 + 0.5*sin(t)g = 0.5 + 0.5*yb = 0.5 + 0.5*cos(t)