POV-Ray : Newsgroups : povray.general : Slice in a Sphere : Re: Slice in a Sphere Server Time
31 Jul 2024 20:20:22 EDT (-0400)
  Re: Slice in a Sphere  
From: Warp
Date: 6 Sep 2006 11:42:02
Message: <44feec4a@news.povray.org>
Alain <ele### [at] netscapenet> wrote:
> Intersection of the sphere and 2 box or 2 planes.

  I think that the problem is slightly more complicated than just that.

  If you want to cut a slice out of a sphere with 2 planes the operation
is different depending on whether the slice is less or more than 180
degrees. If it's less than 180 degrees then you have to calculate the
difference between the sphere and the intersection of the two planes.
If it's more than 180 degrees then you have to calculate the difference
between the sphere and the union of the two planes.

  Doing the same with boxes is actually needlessly more complicated,
so it's basically useless.

-- 
                                                          - Warp


Post a reply to this message

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