POV-Ray : Newsgroups : povray.general : constructing a geometry : Re: constructing a geometry Server Time
30 Jul 2024 12:28:13 EDT (-0400)
  Re: constructing a geometry  
From: clipka
Date: 6 Feb 2009 11:20:01
Message: <web.498c632639783190bdc576310@news.povray.org>
"Amir_ni" <nomail@nomail> wrote:
> if the position of eight spheres are in a cubic form in a way that the
> distance between neighbor sphere is less than 1.4 times the radius of spheres, a
> cavity is formed in the center of cube. I want to make the shape of that cavity.
> The following code contains the the coordinates of eight spheres. In advance, I
> do appreciate your help.

If I understand the problem correctly, that's an easy one:

- Create a shape with the spheres' center points as corners (should be a cube
from your description)
- Subtract the spheres
- Voila!

(BTW, I guess that 1.4 should in fact be sqrt(2)...)


Post a reply to this message

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