POV-Ray : Newsgroups : povray.general : How to center an object by visibility? : Re: How to center an object by visibility? Server Time
25 Apr 2024 20:27:39 EDT (-0400)
  Re: How to center an object by visibility?  
From: jr
Date: 3 Dec 2019 08:40:01
Message: <web.5de665505a7e05f5feeb22ff0@news.povray.org>
hi,

"Kima" <nomail@nomail> wrote:
> Consider an object as
>
> #declare obj = union {
> cylinder{ <-1,-1,-1>,<1,1,1>,.1
> cylinder{ <-1.5,-1.5,-1.5>,<1,1,1>,.1
> }
>
> I can center the object by its bounding box using max_extent and min_extent.
> Evidently, the bounding box is centered not the visible object.
>
> In this case, the right side is empty because there's nothing in the bounding
> (the cylinder side is at z=1, the farthest point).

adjust the BB?

<http://news.povray.org/povray.text.scene-files/message/%3Cweb.5dc0bff634d8ef06feeb22ff0%40news.povray.org%3E/#%3Cweb.5
dc0bff634d8ef06feeb22ff0%40news.povray.org%3E>


regards, jr.


Post a reply to this message

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