POV-Ray : Newsgroups : povray.general : Convert Vector to UV_Vector Server Time
2 Jun 2024 16:10:02 EDT (-0400)
  Convert Vector to UV_Vector (Message 1 to 2 of 2)  
From: Charles Worm
Subject: Convert Vector to UV_Vector
Date: 27 Aug 2004 01:21:36
Message: <opsddk58unmctz8s@enggltt10114.staff.ad.cqu.edu.au>
I'm attempting to render a very old scene I created in POV-Ray v3.1 with
  

POV-Ray 3.6 and am getting an error on a lathe object where I've used a 
 

vector instead of a UV_Vector.
Unfortunately the value for the vector is generated by vrotate() like so
...

#declare brace1_1 = vrotate(<curve+ringThickness, 0, 0>, maxAngle*z) -
  

<curve-barrelRadius, 0, 0>

How do I convert brace1_1 to a uv_vector so x=u and y=v?


Post a reply to this message

From: Slime
Subject: Re: Convert Vector to UV_Vector
Date: 27 Aug 2004 01:37:04
Message: <412ec880@news.povray.org>
> How do I convert brace1_1 to a uv_vector so x=u and y=v?

Simplest solution IMO:

#macro VectorToUV(vec)
(<vec.x, vec.y>)
#end

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


Post a reply to this message

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