POV-Ray : Newsgroups : povray.newusers : rotate around an axis? Server Time
31 Jul 2024 02:28:35 EDT (-0400)
  rotate around an axis? (Message 1 to 3 of 3)  
From: Bill Hails
Subject: rotate around an axis?
Date: 29 Apr 2003 16:57:03
Message: <3eaee71f@news.povray.org>
Hi.
I'm probably missing something obvious.

I have an object, and a vector representing an axis.
I want to rotate the object by n degrees around that
axis. I know about vaxis_rotate for points, and I know
that rotate takes a vector of 3 angles to rotate about,
but beyond that I'm stuck.

I'll keep hammering at it by myself for now :-)
-- 
Bill Hails


Post a reply to this message

From: Warp
Subject: Re: rotate around an axis?
Date: 29 Apr 2003 17:12:55
Message: <3eaeead7@news.povray.org>
Bill Hails <bil### [at] europeyahoo-inccom> wrote:
> I have an object, and a vector representing an axis.
> I want to rotate the object by n degrees around that
> axis.

  Axis_Rotate_Trans() in transforms.inc (see the section 7.19 of the
documentation for more info).

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Bill Hails
Subject: Re: rotate around an axis?
Date: 29 Apr 2003 17:42:44
Message: <3eaef1d4@news.povray.org>
Warp wrote:

>   Axis_Rotate_Trans() in transforms.inc (see the section 7.19 of the
> documentation for more info).
> 

that worked, thanks!

-- 
Bill Hails


Post a reply to this message

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