POV-Ray : Newsgroups : povray.general : access object attributes : Re: access object attributes Server Time
25 Nov 2024 21:41:24 EST (-0500)
  Re: access object attributes  
From: Nekar Xenos
Date: 15 May 2013 23:42:25
Message: <op.ww5q8yd1ufxv4h@xena>
On Wed, 15 May 2013 23:46:07 +0200, Christian Froeschlin <chr### [at] chrfrde>  
wrote:

> Nekar Xenos wrote:
>
>> ObjectCenter =  
>> min_extent(Object)+.5*(max_extent(Object)-minExtent(Object))
>
> Or 0.5*(min + max) if you're a fan of distributive law ;)
>
> Also note that min/max_extend is actually the bounding
> box and may not yield the expected position for all objects.
>

It seems it's too long since I've done proper algebra. Your solution makes  
perfect sense, yet can't seem to get from my solution to yours  
algebraically.

-- 
-Nekar Xenos-


Post a reply to this message

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