#http://www.mathcurve.com/courbes3d/cycloidspheric/trochoidspheric.shtml

vertices = 12000

t = from 0 to (80*PI)

a = rand2(0.1, 10)
b = rand2(0.1, 10)
d = rand2(0.1, 10)

q = rand2(0.5, 10)
w = rand2(PI*0.1, PI*0.9)

s = sin(w)
c = cos(w)
 
x = (a - b*c + d*c*cos(q*t))*cos(t) + d*sin(t)*sin(q*t)
z = (a - b*c + d*c*cos(q*t))*sin(t) - d*cos(t)*sin(q*t)
y = s*(b - d*cos(q*t))
