|
|
#declare Seed=seed(10000);
#declare N=1;
#while(N<=600)
#declare Theta=rand(Seed)*360;
#declare Z=(N/600)+1.2;
#declare R=(rand(Seed)*0.25)+((Z-1.2)*(Z-1.2)*2);
#declare X=R*cos(Theta);
#declare Y=R*sin(Theta);
<X, Y, Z> 0.02
#declare N=N+1;
#end
Ok, with this I get the general external shape I
want, but the internal points aren't as mixed up
as I'd like...how do I compute a random point in
the shape such that all parts of the sphere_sweep
stay within the shape? As it stands, if I change
Z to a random number I get the jumbled-up mess I
want, but it leaves parts of the sphere_sweep on
the outside of the shape. Solution?
--
Tim Cook
http://empyrean.scifi-fantasy.com
mirror: http://personal.lig.bellsouth.net/lig/z/9/z993126
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------
Post a reply to this message
|
|