|
![](/i/fill.gif) |
>Create an array which holds position values and radii for the spheres (one
>entry for each sphere). Then as you create each new sphere test it against
>all previously created spheres to make sure it doesn't touch. If it doesn't
>touch add it, if it does, discard it and try another one.
My above posted macro should do exatly this job to fill a cylinder.
BTW, what does your code do if there's no place for a new sphere? It
hangs up, doesn't it? ;-)
Bye,
Friedemann
Friedemann Schmidt
Fri### [at] Stones com
Raytracing-Gallery: http://www.rz.fhtw-berlin.de/~s0049669/
Post a reply to this message
|
![](/i/fill.gif) |