POV-Ray : Newsgroups : povray.general : Get vector to stream... ?? : Re: Get vector to stream... ?? Server Time
4 Nov 2024 13:02:13 EST (-0500)
  Re: Get vector to stream... ??  
From: Mike Williams
Date: 30 Nov 2003 18:46:21
Message: <E$8SQGAFEoy$EwWw@econym.demon.co.uk>
Wasn't it Ryan Mooney <usa-moon47> who wrote:
>#declare tmp = vaxis_rotate(q2,p3,180);
>#debug "tmp"//What is the vector of this point...
>sphere  { tmp 0.09
>           pigment { rgb <1,0,0>*5 }
>           finish { phong 1 }
>           translate p1 }
>
>How do i send a vector to the output in the messages window...
>Or how to convert a vector to a srting...
>

You could try

vstr(3, tmp, ",", 0, -1)

or

#include "strings.inc"
Vstr(tmp, 0, -1)

E.g.

#debug concat("tmp = ", Vstr(tmp, 0, -1), "\n")

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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