POV-Ray : Newsgroups : povray.general : Rounding object : Re: Rounding object Server Time
6 Aug 2024 00:18:39 EDT (-0400)
  Re: Rounding object  
From:
Date: 11 Jul 2002 03:11:50
Message: <hfbqiukqi8tefqb6rb0o4sv5esm6eunlvt@4ax.com>
On 10 Jul 2002 21:06:38 -0400, "Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote:
> --- Works o.k. ------
> #macro IInside(obj,vec)
>   #local w = <1,2,3>;//trace(obj,vec,z); 
>   #if ((w.x=0)&(w.y=0)&(w.z=0)) 1 ; // <-- added ;
>   #else 0 ; // <-- added ;
>   #end
> #end
> #declare aaaa = IInside(obj,<0,0,0>) // <-- removed ;

You should really spend a little of time checking old posts and not waste own
time to work with not efficient macros. Considering commented trace is some
kind of your shortcut for some content you can write your stuff this way:

#macro IInside(obj,vec)
  #local w = <1,2,3>;//trace(obj,vec,z); 
  (w.gray=0)
#end

ABX


Post a reply to this message

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