首页 > 代码库 > 数学图形(2.20)3D曲线

数学图形(2.20)3D曲线

这一节主要是发布我自己写的3D曲线,

(1)立体flower线圈

vertices = 8000a = 10.1b = 3.1s = (a + b) / bo = 4i = from 0 to (40*2*PI)j = mod(i, 2*PI)k = mod(s*i, 2*PI)m = a*sin(j)n = a*cos(j)x = m + o*sin(k)y = nz = o*cos(k)

 

(2)乱

vertices = 12000t = from (0.0) to (100*PI)r = 10a = rand2(PI*0.1, PI*0.9)s = sin(t)c = cos(t)x = r*s*cos(t/sin(a))z = r*s*sin(t/cos(a))y = r*c