Recursive programming with POVRAY
Recursion comes from the Latin and means ‘leading back’. An object is recursive if it contains variants of itself or is defined with the help of variants of itself (e.g. stories within stories, images within images, ...).
The first image is produced in this way.
The second way to create an image within an image is to compile the image several times,
which itself serves as a template.
The second picture was made like this.
 |
Recursion with iterations |
 |
The picture within the picture |
Recursive programming with iterations
In the first screen (see the povscript by mouse click), an object consisting of a cone and three spheres is defined, which in turn is then used for the object definition of six further objects. Using the keyword
clock, these individual objects can be rotated with the corresponding entry in pov.ini; only the last object is then drawn.
Not all recursion objects are visible on all images.
 |
For Christine, 7. 10. 1998 |
The picture within the picture