POV-Ray : Newsgroups : povray.newusers : Finding extents of an object : Re: Finding extents of an object Server Time
26 Sep 2021 22:14:38 EDT (-0400)
  Re: Finding extents of an object  
From: Thomas de Groot
Date: 16 Jun 2021 11:04:06
Message: <60ca12e6$1@news.povray.org>
Op 16-6-2021 om 15:51 schreef Alain Martel:
> I know that, but, in many cases, it's good enough.
> In the present case, it may be just what is needed. It will always 
> ensure that the whole object is visible, even if the use of the image's 
> real estate may not be optimal.
> 
> Also, the solution proposed ensure that the object do not extend beyond 
> the camera.

Absolutely.

Thanks Alain! I was just in need of something like this for the 
granite_21 macro, and you took away the need to write my own macro. ;-)

I changed your code into a macro which I include here. Herbert might 
want to use it.

-- 
Thomas


Post a reply to this message


Attachments:
Download 'am_resize.inc.txt' (2 KB)

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