POV-Ray : Newsgroups : povray.newusers : Local Co-ordinates : Re: Local Co-ordinates Server Time
4 Sep 2024 18:18:44 EDT (-0400)
  Re: Local Co-ordinates  
From: insomniac
Date: 19 Sep 2002 22:25:04
Message: <web.3d8a86a349510b10dd2c03fb0@news.povray.org>
Fidel viegas wrote:
>Suppose your object is place at <4, 5, 1>. What you do is this
>
>object {
>  yourobject
>  translate -<4, 5, 1> // place the object at the origin <0, 0, 0>
>  rotate <45, 0, 0> // just an example
>  translate <4, 5, 1> // move the object back to where it was
>}
>
>Basicallly, you first move the object to the origin, by translating it by
>the negation of its current position. You then rotate it, and after rotating
>it, you just move the object to where it was before by translating the same
>amount without the '-' sign.
>
>Hope that helps.
>
>Fidel.
************************************************
Hey that worked! Thanks a lot for your help.

insomniac.


Post a reply to this message

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