POV-Ray : Newsgroups : povray.general : constructing a geometry : Re: constructing a geometry Server Time
30 Jul 2024 12:32:02 EDT (-0400)
  Re: constructing a geometry  
From: stevenvh
Date: 5 Feb 2009 01:55:00
Message: <web.498a8d0839783190c0721a1d0@news.povray.org>
Start with a cube whose vertices coincide with the sphere centers. Then subtract
the spheres from it:

difference {

  box { < -d/2, -d/2, -d/2 >, < d/2, d/2, d/2 > }

  sphere { <d/2, d/2, d/2> ,  d/1.4}
  sphere { <-d/2, -d/2, -d/2> ,  d/1.4}
  sphere { <-d/2, d/2, d/2> ,  d/1.4}
  sphere { <d/2, -d/2, -d/2> ,  d/1.4}
  sphere { <d/2, -d/2, d/2> ,  d/1.4}
  sphere { <-d/2, d/2, -d/2> ,  d/1.4}
  sphere { <d/2, d/2, -d/2> ,  d/1.4}
  sphere { <-d/2, -d/2, d/2> ,  d/1.4}

  pigment{ color rgb<1,0,0> }

}

HTH
Steven


Post a reply to this message

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