POV-Ray : Newsgroups : povray.newusers : Basic question : Re: Basic question Server Time
28 Jul 2024 14:26:54 EDT (-0400)
  Re: Basic question  
From: alphaQuad
Date: 30 Sep 2008 20:35:01
Message: <web.48e2c58a9ccf92ace2914abb0@news.povray.org>
> #debug concat("The value is: ", str(atan2(5), 0, -1), "\n")

I saw something like that and thought, I am not typing all that every time I
want to see a val.


#macro echo(Str)
  #if (1)
      #debug Str
  #end
#end
#macro echof(f)
  echo(str(f,2,5))
#end
#macro echov(V)
  echo(concat("<",str(V.x,2,5),",",str(V.y,2,5),",",str(V.z,2,5),">"))
#end
#macro echov2(V)
  echo(concat("<",str(V.x,2,5),",",str(V.y,2,5),">"))
#end

echof(a)
echo("\n") // always follows or delayed in echoing


Post a reply to this message

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