POV-Ray : Newsgroups : povray.general : Rounding object : Re: Rounding object Server Time
6 Aug 2024 00:11:06 EDT (-0400)
  Re: Rounding object  
From: Slime
Date: 10 Jul 2002 21:35:50
Message: <3d2ce0f6@news.povray.org>
When returning values from macros, you're supposed to do it like this:

 #macro IInside(obj,vec)
  #local toreturn = 0;
   #local w = <1,2,3>;//trace(obj,vec,z);
   #if ((w.x=0)&(w.y=0)&(w.z=0)) #local toreturn =1 ;
   #end
  (toreturn)
 #end

Only actually place a value in there once. Don't do it multiple times within
ifs and elses.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

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