这一节主要是发布我自己写的3D曲线,
(1)立体flower线圈
vertices =
a = 10.1
b = 3.1
s = (a + b) / b
o = i = from to (**PI)
j = mod(i, *PI)
k = mod(s*i, *PI) m = a*sin(j)
n = a*cos(j) x = m + o*sin(k)
y = n
z = o*cos(k)
(2)乱
vertices = t = from (0.0) to (*PI) r = 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