POV-Ray : Newsgroups : povray.general : Recursion in POV : Re: Recursion in POV Server Time
31 Jul 2024 12:17:22 EDT (-0400)
  Re: Recursion in POV  
From: Florian Brucker
Date: 19 Mar 2007 19:14:55
Message: <45ff277f$1@news.povray.org>
Anthony D. Baye wrote:
<snip>
> I was wondering, however, is this an inherent limitation, or an imposed
> limitation?  And might it be possible to adapt the parser to allow advanced
> recursion?

I've run into that, too, but as others have already pointed out using a
loop together with a stack will allow you as much recursion depth as you
can provide memory (and parse time :) for. You can use a simple array as
a stack. Considering how POV parses macros right now it might be even
faster.


HTH,
Florian


Post a reply to this message

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