POV-Ray : Newsgroups : povray.newusers : how to move an object to position <0,0,0> : Re: how to move an object to position <0,0,0> Server Time
29 Jul 2024 04:32:06 EDT (-0400)
  Re: how to move an object to position <0,0,0>  
From: Penelope20k
Date: 8 Sep 2006 06:58:00
Message: <45014cb8@news.povray.org>
Nostromo do a little mistake its in fact

translate      + 0.50*(min_extent(myObject)+max_extent(myObject))






news:web.4501400e1e67056d800aa0230@news.povray.org...
> "Roman Reiner" <lim### [at] gmxde> wrote:
> > kurtz le pirate <kur### [at] yahoofr> wrote:
> > > move your "rubrics cube" by adding "translate -0.50*full_cube_size"
> >
> > This applies if your object rotates _exactly_ around that corner. In any
> > other case the following should work as long as the object is not too
> > complicated:
> >
> > translate -0.50*(min_extent(myObject)+max_extent(myObject))
> >
> > this actually centers the bounding box of the object but that should be
> > calculated correctly for a cube-ish structure
> >
> > Hope this helps
> > Regards Roman
>
> Thanks for your answer. Unfortunately the cube still doesn't rotate around
> the middle, maybe the bounding box of my cube is somewhere odd. Any other
> suggestions?
>
>


Post a reply to this message

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