POV-Ray : Newsgroups : povray.general : joining objects for latter manipulation : Re: joining objects for latter manipulation Server Time
1 Aug 2024 18:27:54 EDT (-0400)
  Re: joining objects for latter manipulation  
From: Mike Williams
Date: 15 Jun 2005 13:01:40
Message: <6CYNfDAs7FsCFwlR@econym.demon.co.uk>
Wasn't it Andrej who wrote:
>Thank you.
>
>Can you move the reference point (coordinate system) for the rotation?
>I translate the object <0 0 10>. From there I would like to rotate <0 90 0>.
>Right now, I still rotate from <0 0 0> so the object is also translated. 

You have to translate the object to the origin, rotate it there and
translate it back. Or you could use Rotate_Around_Trans() which does
exactly those operations.

#include "transforms.inc"
object {BALLS
  transform { Rotate_Around_Trans(<0,90,0>, <0,0,10>) }
}

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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