|
![](/i/fill.gif) |
Edouard wrote:
> Can I suggest a different function than rand() for placing the cylinders - there
> is a mathematical set of functions call low discrepancy sequences, and the
> simplest one of those to implement in POV macros is a Halton Sequence. The
> output looks like the output from rand(), but the positions don't overlap (the
> positions it produces just fill in the spaces, so the points get more and more
> closely packed).
At first I was really excited by this, but then I started looking it up,
and there appears to be a lot of repetition in Halton point sets... I'll
have to try the code you provided to see how well it distributes the points.
I usually just test new elements against all other elements and place a
point where there is enough space by evaluating the radii. It's a slow
method, but must only be performed once per-application if the points
are saved to an .inc file.
Sam
Post a reply to this message
|
![](/i/fill.gif) |