|
![](/i/fill.gif) |
Hi All,
This is a simple pair of macros that implement the creation of recursive
objects. That is an object where each part is a copy of the whole. It is a
little like the iterated-system type of fractal.
To use it, create a base object of some kind. Decide how to "fill" the
object with a few copies of itself, scaled, rotated, and, translated. Use
calls to the ROAddCopy macro to define the copies. Then, call RODraw to
create the final object. Be careful with the maximum level of recursion as
the total number of objects depends on the number of copies to the POWER of
the maximum level plus 1. ie 4 copies at level 4 is 1024 objects!
If you want to see an example, check out "The Temple of Recursive Delight"
in the binaries.scenes group.
Good Luck
Gordon
<gbe### [at] birdcameron com au>
Post a reply to this message
Attachments:
Download 'Recursiv.inc.txt' (3 KB)
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
I had an email today from a POVer who was having trouble using these macros.
So, herewith a sample file that makes a simple building of blocks. You can
vary the recursion level to see how it works. There are some comments in the
file that explain what is going on.
The key that I've found so far is to try and make sure that the "copies"
pretty muck fill the volume of the base object. They shouldn't stick out too
much though. But, try whatever you can think of, it should do all kinds of
strange stuff.
Regards
Gordon
<gbe### [at] birdcameron com au>
Gordon wrote in message <36f5d40e.0@news.povray.org>...
>Hi All,
>
>This is a simple pair of macros that implement the creation of recursive
>objects. That is an object where each part is a copy of the whole. It is a
>little like the iterated-system type of fractal.
>
>To use it, create a base object of some kind. Decide how to "fill" the
>object with a few copies of itself, scaled, rotated, and, translated. Use
>calls to the ROAddCopy macro to define the copies. Then, call RODraw to
>create the final object. Be careful with the maximum level of recursion as
>the total number of objects depends on the number of copies to the POWER of
>the maximum level plus 1. ie 4 copies at level 4 is 1024 objects!
>
>If you want to see an example, check out "The Temple of Recursive Delight"
>in the binaries.scenes group.
>
>Good Luck
>Gordon
><gbe### [at] birdcameron com au>
>
>
>
>
Post a reply to this message
Attachments:
Download 'RecuTest.pov.txt' (2 KB)
Download 'Recursiv.inc.txt' (3 KB)
|
![](/i/fill.gif) |