POV-Ray : Newsgroups : povray.binaries.scene-files : Recusive Objects Server Time
28 Mar 2024 14:17:33 EDT (-0400)
  Recusive Objects (Message 1 to 2 of 2)  
From: Gordon
Subject: Recusive Objects
Date: 22 Mar 1999 00:24:30
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] birdcameroncomau>


Post a reply to this message


Attachments:
Download 'Recursiv.inc.txt' (3 KB)

From: Gordon
Subject: Re: Recusive Objects
Date: 23 Mar 1999 08:11:30
Message: <36f79302.0@news.povray.org>
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] birdcameroncomau>

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] birdcameroncomau>
>
>
>
>


Post a reply to this message


Attachments:
Download 'RecuTest.pov.txt' (2 KB) Download 'Recursiv.inc.txt' (3 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.