POV-Ray : Newsgroups : povray.general : How can we check if an object is within another object? : Re: How can we check if an object is within another object? Server Time
25 Apr 2024 12:43:24 EDT (-0400)
  Re: How can we check if an object is within another object?  
From: Kima
Date: 12 Jun 2020 13:50:01
Message: <web.5ee3bf5a350b148ecc0fada0@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:

>
> > I need the CONDITION.
>
> Do you just want to do an insidedness test?
> #if (inside (prism, point)) ....
>
> If you want to have each sphere be fully inside the prism, construct a smaller
> test prism where the edges are closer to the origin by the radius of the
> spheres.   Test against that, and then render the spheres in the actual prism.

For using the "inside" function, I should test all the points on the sphere. And
then, it will check the entire prism, not the visible part.


Post a reply to this message

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