POV-Ray : Newsgroups : povray.general : Rounding object : Re: Rounding object Server Time
6 Aug 2024 00:17:13 EDT (-0400)
  Re: Rounding object  
From: Rafal 'Raf256' Maj
Date: 10 Jul 2002 21:06:38
Message: <Xns92481F1206310raf256com@204.213.191.226>
"Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote in 
news:Xns### [at] 204213191226:

>> I will try to make a little work-around - to make macro that will
>> produce blob basing on any components, but probably the resoults will
>> not be too good...
> hmm I have little problem :

heh I must be "lucky" today ;)
ofcourse workaround with inside not working for mesh is to use trace(), but 
- while using it I came across little bug (?)

--- Works BAD ------
#macro IInside(obj,vec)
  #local w = <1,2,3>;//trace(obj,vec,z);
  #if ((w.x=0)&(w.y=0)&(w.z=0)) 1
  #else 0
  #end
#end
#declare aaaa = IInside(obj,<0,0,0>)  ;


--- 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 ;


-- 


Post a reply to this message

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