POV-Ray : Newsgroups : povray.general : Get vector to stream... ?? Server Time
16 Nov 2024 13:22:04 EST (-0500)
  Get vector to stream... ?? (Message 1 to 2 of 2)  
From: Ryan Mooney <usa-moon47>
Subject: Get vector to stream... ??
Date: 30 Nov 2003 18:15:01
Message: <web.3fca78fcc5889ff83d7d3a20@news.povray.org>
#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...


Post a reply to this message

From: Mike Williams
Subject: Re: Get vector to stream... ??
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.