comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDLgrModel rotation axis's origin
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDLgrModel rotation axis's origin [message #46323] Thu, 17 November 2005 11:33
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
photosalex wrote:

> Do I understand it correct that the origin of the user-defined rotation
> axis of IDLgrModel::Rotate is always [0,0,0], that is any of such
> user-defined rotation axes passes through [0,0,0] ?

Yes. To rotate about another point you need to translate, rotate, then
translate back. For example, to rotate objects contained in oModel
about a line parallel to the Y axis passing thru [1,0,0]:

oModel -> Translate, -1, 0, 0
oModel -> Rotate, [0,1,0], 90
oModel -> Translate, 1, 0, 0

-Rick
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: pointers and IF statement
Next Topic: Re: More Mac Woes

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 22:29:06 PDT 2025

Total time taken to generate the page: 0.08344 seconds