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
|