POV-Ray : Newsgroups : povray.beta-test : More To Test : Re: More To Test Server Time
29 Apr 2024 12:35:42 EDT (-0400)
  Re: More To Test  
From: Jim Holsenback
Date: 26 Nov 2016 10:13:06
Message: <5839a682$1@news.povray.org>
On 11/26/2016 8:35 AM, clipka wrote:
> Am 26.11.2016 um 14:30 schrieb clipka:
>
>> The proper solution is to redefine the macro to include the intended
>> parentheses:
>>
>>     #macro OTO_Get_Offset(Cell)
>>       #local CX = Cell.x;
>>       #local CY = Cell.y;
>>       (  (1-Bev*2)*<1,1,0>*(.5-OTO_FOffs(CX,CY,0))  )
>>     #end
>
> ... or use the "result variable" idiom:
>
>     #macro OTO_Get_Offset(Cell)
>       #local CX = Cell.x;
>       #local CY = Cell.y;
>       #local result = (1-Bev*2)*<1,1,0>*(.5-OTO_FOffs(CX,CY,0));
>       result
>     #end
>

yes that's what i ended up doing, but got distracted (woof) with 
something else before i could reply. i'm trying to make sure i 
understand the pathology here ... earlier in this thread a bug was 
mentioned. the array/dictionary changes exposed the issue? devils 
advocate would say that this should be documented as a {{Change}} ... 
i'm guessing somewhere in the array talk page that's been currently 
reworked?


Post a reply to this message

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