POV-Ray : Newsgroups : povray.beta-test : More To Test : Re: More To Test Server Time
29 Apr 2024 05:08:17 EDT (-0400)
  Re: More To Test  
From: clipka
Date: 26 Nov 2016 08:35:54
Message: <58398fba$1@news.povray.org>
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


Post a reply to this message

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