POV-Ray : Newsgroups : povray.advanced-users : Random, Displaying values, and a parsing logistics question: : Re: Random, Displaying values, and a parsing logistics question: Server Time
29 Jul 2024 18:24:20 EDT (-0400)
  Re: Random, Displaying values, and a parsing logistics question:  
From: Warp
Date: 3 May 2001 06:12:35
Message: <3af12f13@news.povray.org>
Ron Parker <ron### [at] povrayorg> wrote:
: #debug wants string arguments.

  I still think #debug (and other streams) should be more user-friendly,
as printing functions in other scripting languages, so that you could
write something like:

#declare F1 = 5;
#declare F2 = 3.86;
#declare V = <1,2.8,-3>;
#declare S = "Hello!"

#debug "Some values: ", F1, "; ", F2, "; ", V, "; ", S, "\n"


  This would print:

5; 3.86; <1,2.8,-3>; Hello!

  With the current implementation you have to do this:

#debug concat("Some values: ", str(F1,0,0), "; ", str(F2,0,2), "; <",
              str(V.x,0,0), ",", str(V.y,0,1), ",", str(V.z,0,0), ">; ",
              S, "\n")

-- 
#local D=array[6]{11117333955,7382340,3358,3900569407,970,4254934330}
#local I=0;#macro M()<mod(D[I],13)-6,mod(div(D[I],13),8)-3,10>#end
blob{#while(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2
pigment{rgb M()}}#local I=(D[I]>99?I:I+1);#end}               /*- Warp -*/


Post a reply to this message

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