POV-Ray : Newsgroups : povray.text.tutorials : Rotate around central axis : Re: Rotate around central axis Server Time
19 Apr 2024 16:55:34 EDT (-0400)
  Re: Rotate around central axis  
From: Warp
Date: 20 Dec 2000 06:50:13
Message: <3a409cf5@news.povray.org>
Philippe-H Cadet <del### [at] videotronca> wrote:
:         box
:         {
                  ...
:                 translate <0,0,0>
:         }

  A translate <0,0,0> does nothing. Absolutely nothing.

  The 'translate' command does NOT mean "translate to".
  It means "translate by". Or "add this vector to the current location".

  That's why you should decide what is the center of the object and then
do something like this (supposing that you decide that the center of the
object is located at <1,2,3>):

#declare ObjectCenter = <1,2,3>;

object
{ MyObject
  translate -ObjectCenter
  rotate whatever
  translate ObjectCenter
}

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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