POV-Ray : Newsgroups : povray.general : rotation Server Time
29 Nov 2024 11:48:26 EST (-0500)
  rotation (Message 1 to 3 of 3)  
From: Gert  Van den Eynde
Subject: rotation
Date: 25 Oct 2005 02:46:35
Message: <435dd4cb@news.povray.org>
Hi,

I have two vectors (A and B) which can be considered to be normal vectors
for objects ObjA and ObjB. How do I rotate object ObjB to have its normal B
aligned with the normal A of ObjA? Is this a built-in function in povray? 

Thanks,
gert


Post a reply to this message

From: Chris B
Subject: Re: rotation
Date: 25 Oct 2005 05:37:10
Message: <435dfcc6$1@news.povray.org>
"Gert Van den Eynde" <gvd### [at] hotmailcom> wrote in message 
news:435dd4cb@news.povray.org...
> Hi,
>
> I have two vectors (A and B) which can be considered to be normal vectors
> for objects ObjA and ObjB. How do I rotate object ObjB to have its normal 
> B
> aligned with the normal A of ObjA? Is this a built-in function in povray?
>
> Thanks,
> gert

#include "transforms.inc"
object {ObjB Reorient_Trans(B,A)}

Regards,
Chris B.


Post a reply to this message

From: Gert  Van den Eynde
Subject: Re: rotation
Date: 25 Oct 2005 06:05:23
Message: <435e0363@news.povray.org>
Chris B wrote:

> 
> #include "transforms.inc"
> object {ObjB Reorient_Trans(B,A)}
> 

marvellous!

Thanks,
gert


Post a reply to this message

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