双曲圆锥螺线
#http://www.mathcurve.com/courbes3d/spiralehyperbolique/spiralehyperbolique.shtml vertices = 12000 t = from (-20*PI) to (20*PI) r = 10 a = rand2(PI*0.2, PI*0.8) x = r*cos(t)/t z = r*sin(t)/t y = r*cot(a)/t
看其脚本代码与截图,当t为无穷大时,上下两端的曲线才会相交.可以逆向思维一下,将t取倒数,脚本代码变为:
#http://www.mathcurve.com/courbes3d/spiralehyperbolique/spiralehyperbolique.shtml vertices = 12000 w = from (-1) to (1) t = 1/w r = 10 a = rand2(PI*0.2, PI*0.8) x = r*cos(t)/t z = r*sin(t)/t y = r*cot(a)/t