POV-Ray : Newsgroups : povray.general : Rotations to align to a vector Server Time
5 Nov 2024 11:17:54 EST (-0500)
  Rotations to align to a vector (Message 1 to 3 of 3)  
From: Sebastiaan
Subject: Rotations to align to a vector
Date: 20 May 2003 14:46:38
Message: <3ECA780D.4000801@ch.twi.tudelft.nl>
Hi,

is there a way to align an object to a predifined vector?

For example, how do I rotate the object

cone{<0,0,0>,1 <1,0,0>,1}

to align with the vector <1,1,1> (i.e. I should have drawn the cone with 
<0,0,0>,1 <1,1,1>,1).

The 'rotate' command doesn't help me much.

Thanks in advance,
Sebastiaan


Post a reply to this message

From: Christopher James Huff
Subject: Re: Rotations to align to a vector
Date: 20 May 2003 17:01:08
Message: <cjameshuff-54586A.16015720052003@netplex.aussie.org>
In article <3EC### [at] chtwitudelftnl>,
 Sebastiaan <no.### [at] chtwitudelftnl> wrote:

> is there a way to align an object to a predifined vector?

Look at Point_At_Trans() and Reorient_Trans() in transforms.inc. There 
is additional documentation in the manual.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Sebastiaan
Subject: Re: Rotations to align to a vector
Date: 21 May 2003 09:07:06
Message: <3ECB79FA.1060404@ch.twi.tudelft.nl>
Christopher James Huff wrote:
> In article <3EC### [at] chtwitudelftnl>,
>  Sebastiaan <no.### [at] chtwitudelftnl> wrote:
> 
> 
>>is there a way to align an object to a predifined vector?
> 
> 
> Look at Point_At_Trans() and Reorient_Trans() in transforms.inc. There 
> is additional documentation in the manual.
> 

Hey, those two just did the trick ^_^.

Thanks,
Sebastiaan


Post a reply to this message

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