POV-Ray : Newsgroups : povray.advanced-users : Too many nested Conditionals or macros : Re: Too many nested Conditionals or macros Server Time
6 Oct 2024 14:45:57 EDT (-0400)
  Re: Too many nested Conditionals or macros  
From: Warp
Date: 23 Oct 2006 07:09:16
Message: <453ca2dc@news.povray.org>
Neddahk <Ned### [at] hotmailcom> wrote:
> I have been writing a complicated recursive macro that draws a tree.  I have
> had some success with the project, but I am now running into a message
> saying "Too many nested conditionals or macros."  I know the macro does not
> create an infinite loop, and I'd be happy to wait another few minutes while
> it parses.  Is there a way around this?

  Macros in POV-Ray have a very small stack for recursive calls, for some
reason. You can make about 100 recursive calls or so. I don't think there's
any way around that.
  You'll have to make an iterative version of your algorithm using a #while
loop. If it can't be made iterative you'll have to use #while and an array
as a stack.

-- 
                                                          - Warp


Post a reply to this message

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