POV-Ray : Newsgroups : povray.general : How to center an object by visibility? : How to center an object by visibility? Server Time
24 Apr 2024 22:21:29 EDT (-0400)
  How to center an object by visibility?  
From: Kima
Date: 3 Dec 2019 06:05:01
Message: <web.5de6405a4547c21fecc0fada0@news.povray.org>
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).


Post a reply to this message

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