这一节主要是发布我自己写的3D曲线,
(1)立体flower线圈
vertices = 8000 a = 10.1 b = 3.1 s = (a + b) / b o = 4 i = 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 = n z = o*cos(k)
(2)乱
vertices = 12000 t = from (0.0) to (100*PI) r = 10 a = 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
时间: 2024-10-12 15:37:21