这一节是将由2D曲线变换为3D曲线
#http://www.mathcurve.com/surfaces/catenoid/catenoid.shtmlvertices = 12000u = from (-2*PI) to (PI)v = rand2(0, 2*PI)a = 10.0x = a*ch(u)*cos(v)y = a*ch(u)*sin(v)z = a*u
上述脚本代码中使用了一个随机数v = rand2(0, 2*PI)
将其由变成一个输入维度则脚本代码为:
#http://www.mathcurve.com/surfaces/catenoid/catenoid.shtmlvertices = D1:360 D2:100u = from (-PI) to (PI) D1v = from (0) to (2*PI) D2a = 10.0x = a*ch(u)*cos(v)y = a*ch(u)*sin(v)z = a*u
生成了一个悬链面