POV-Ray : Newsgroups : povray.advanced-users : recursion : Re: recursion Server Time
30 Jul 2024 02:19:16 EDT (-0400)
  Re: recursion  
From: Thorsten Froehlich
Date: 19 Apr 2000 11:31:03
Message: <38fdd137$1@news.povray.org>
In article <38FDC62F.D85DBD1B@psu.edu> , Paul Jones <pdj### [at] psuedu>  wrote:

> How do I make a macro call itself with out getting an error message such
> as "too many nested symbols"?

You need to add a parameter you pass on to make sure you do not enter an
infinite recursion (or use another method ending the recursion depending on
your algorithm).  There is an example scene using recursive macro calls in
the 'macros' directory (in the 'scenes' directory) called 'pyramid.pov'.


      Thorsten


Post a reply to this message

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