|
![](/i/fill.gif) |
In article <web.3fb9705e4b0664231e2d84430@news.povray.org>,
"Steely" <Rob### [at] hamburg de> wrote:
> Is there any way to ask POV-Ray where exactly the last object is located? I
> can find its location of course drawing triangles on paper ;-) but I am
> looking for some "magic" feature that writes the location directly to the
> message window or something else.
What's the location of an object? There is no such thing.
> I thought of vtransform{} and also I thought of min_extent/max_extent as the
> doc says in both cases it will return values, but I cannot figure out to
> (means, I have no clue how to get it to work correctly).
The min_extent() function returns the lower-left-front corner of the
bounding box of the object, the max_extent() function returns the
upper-right-back corner. The documentation explains this fully, I
suggest you read it again. The vtransform() macro (parentheses, not
curly brackets...it's a macro) transforms a point with a given
transformation. Pick the point you want to treat as the "center" of the
object and transform it with the same transformation you used on the
object.
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |