Michael T. Jones (mtj++at++babar.asd.sgi.com)
Thu, 11 Jul 1996 12:32:03 -0700
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
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:10 PDT