Re: pfBoxIsectFrust vs pfShereIsectFrust

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Wed, 02 Aug 95 18:34:16 -0700


> Does anybody knows which of pfBoxIsectFrust and pfSphereIsectFrust is the
> faster function and the performance ratio between them ?
   
The times depend on the exact geometric configuration,
since some rejections are quicker than others, but in
general, spheres are a fair amount quicker to test than
bounding boxes.

Also, a 2.0 note. As part of the C++ conversion, these
CAPI were changed since they are now member functions of
pfFrustum.

 pfFrustum::contains(pfSphere) -> pfFrustContainsSphere(frust, sphere)
 pfFrustum::contains(pfBox) -> pfFrustContainsBox(frust, box)

Note that the new API names reflects the fact that these
are really cull tests to see if "A contains B" rather than
symmetric tests of the intersection of two volumes "A and B".
We apologize for breaking API like this, but the 2.0 porting
scripts will take care of nettlesome name changes like these.

rgds,

-jim helman

jimh++at++surreal.asd.sgi.com
415/390-1151


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:51:45 PDT

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