POV-Ray : Newsgroups : povray.newusers : Another newbie question : Re: Another newbie question Server Time
29 Jul 2024 08:16:23 EDT (-0400)
  Re: Another newbie question  
From: Warp
Date: 26 Mar 2006 16:41:33
Message: <44270a8c@news.povray.org>
Chris B <c_b### [at] btconnectcomnospam> wrote:
> You can specify any rotation angles you like.

  Note that if you rotate the object with the 'rotate' keyword, it will
not only translate the object to that place but also rotate it.

  In some cases you just want to place the object on the circumference
but you don't want to rotate the object. In that case you just need to
calculate the location of the object and 'translate' it there from the
origin (instead of putting it at a certain distance from the origin and
then using 'rotate').

  This can be achieved for example like this:

object
{ YourObject // assuming your object is centered at <0,0,0>
  translate vrotate(<1, 0, 0>, y*267)
}

  This will translate 'YourObject' to that location without rotating it.

-- 
                                                          - Warp


Post a reply to this message

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