spheres and boxes

New Message Reply Date view Thread view Subject view Author view

Michael T. Jones (mtj++at++babar.asd.sgi.com)
Thu, 11 Jul 1996 12:32:03 -0700


I diasgree with a previous posting, but may have misunderstood what was
said.

It is absolutely true that a box is inside a sphere if the eight
vertices of the box are inside (or on) the sphere. Therefore, the test
that Jenny Zhao suggested will work exactly as she says.

On Jul 10, 12:47pm, Jenny Zhao wrote:
> Subject: Re: pfSphereContainsBox?
> Hi, there,
>
> how about check if the 8 vertices are in by pfSphereContainsPt?

The other test, "pfBoxContainsSphere", requires comparing the sphere's
center and radius with the distances from the center of the box to each
face.

Michael

P.S. We realize that we should add the full cross-product of
      containment tests to Performer.

Be seeing you, Phone:415.933.1455 Fax:415.965.2658 M/S:8U-590
Michael T. Jones Silicon Graphics, Advanced Systems Division
mtj++at++sgi.com 2011 N. Shoreline Blvd., Mtn. View, CA 94039-7311
                    "Du musst Amboss oder Hammer sein" -- Goethe

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:10 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.