POV-Ray : Newsgroups : povray.binaries.images : problem with functions.inc : Re: problem with functions.inc Server Time
7 Nov 2024 13:41:29 EST (-0500)
  Re: problem with functions.inc  
From: Anthony D  Baye
Date: 1 Sep 2015 15:00:01
Message: <web.55e5f483fed76a76a36927440@news.povray.org>
Cousin Ricky <ric### [at] yahoocom> wrote:
> On 2015-09-01 07:25 AM (-4), Norbert Kern wrote:
> > #declare IterFn =
> > function (N, Re, Im, Zr, Zi) {
> >          select (
> >                  N > 300 | Zr*Zr+Zi*Zi > 4,
> >                  0,
> >                  IterFn (N+1, Re, Im, Zr*Zr-Zi*Zi+Re, 2*abs (Zr*Zi)+Im),
> >                  N/300
> >          )
> > }
>
> Reducing the recursion level does not prevent the crash.  I tried all
> the way down to 1.

The reason for this, I believe, is that pic doesn't support recursive functions.
You can get away with exactly one, if -and only if- it is defined before
anything else in the file.

Regards,
A.D.B.


Post a reply to this message

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