POV-Ray : Newsgroups : povray.advanced-users : isosurface: Does the order of multiple functions matter? : Re: isosurface: Does the order of multiple functions matter? Server Time
2 Oct 2023 21:42:18 EDT (-0400)
  Re: isosurface: Does the order of multiple functions matter?  
From: Thomas de Groot
Date: 29 Jan 2023 02:21:20
Message: <63d61e70$1@news.povray.org>
Op 28/01/2023 om 19:20 schreef Bald Eagle:
> Cousin Ricky <ric### [at] yahoocom> wrote:
>> On 2023-01-28 06:25 (-4), Kenneth wrote:
>>> (BTW: #if and #switch/#case do work well in the body of the isosurface, within
>>> the main function, to at least eliminate certain parts. Probably not good code
>>> practice, but it causes no problems AFAIK.)
>> Directives (#if, #switch, etc.) in functions are parsed only once, when
>> the function is defined.  Directives in functions that are coded in-line
>> in an isosurface will be observed each time the object is parsed, but
>> directives in any pre-defined functions used in the isosurface will not
>> be re-parsed.
> Say what now?
> I missed this in the first skim-through.
> I'll be trying this out at some point - but I'd like to see a working code
> example! (Considering that I had no idea this was possible)

Hmmmmm.... this makes sense, somehow, but I guess this behaviour could 
produce unexpected results, with no clue of /where/ the diverging 
behaviour would come from (if unaware of this behaviour).


Post a reply to this message

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