POV-Ray : Newsgroups : povray.binaries.scene-files : Recusive Objects : Recusive Objects Server Time
27 Apr 2024 20:01:25 EDT (-0400)
  Recusive Objects  
From: Gordon
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)

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