POV-Ray : Newsgroups : povray.advanced-users : Locating an Object : Re: Locating an Object Server Time
2 Nov 2024 05:19:37 EDT (-0400)
  Re: Locating an Object  
From: Greg M  Johnson
Date: 4 Apr 2000 10:11:52
Message: <38E9F726.3F322014@my-dejanews.com>
Easy, cinch,  unless your object is a BLOB!

#declare MyObject =  .....................

#declare location= <0,0,0>+max_extent(MyObject)/2+min_extent(MyObject)/2;

Tada!  Won't work with blobs.

Peter Houston wrote:

> Is there a way to determine the location of an object after it has been
> transformed.
>
> I have objects that are chained together and are each rotated individually
> then they are all rotated and translated together.  What I am trying to
> determine is the vector of the end of the chain.
>
> The only way I can think of doing it is to reverse all of the
> transformations, but I don't really want to do that if I can help it :)
>
> Any help would be appreciated.
>
> Regards,
>
> Peter H.


Post a reply to this message

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