another bounding box questi

New Message Reply Date view Thread view Subject view Author view

Chris Pratico (chris_pratico++at++maca.sarnoff.com)
9 Nov 1993 16:15:54 U


                      another bounding box question
While we seem to be on the subject of bounding boxes - I have a related
question.

I want to get the radius of the bounding sphere around an object, currently I
do the following:

pfBox bbox, *bboxes;
pfSphere bsphere;

pfGetNodeBBox(object, &bbox, NULL);
bboxes = &bbox;
pfSphereAroundBoxes(&bsphere, &bboxes, 1);

r1 = bsphere.radius;

Since the underlying geometery of the bounding box is actually a sphere, is
there a more direct way of doing this? Do I really need to get the bounding
box of the object and then extend a sphere around the bbox to get its radius?

Thanks

Chris Pratico
chris_pratico++at++maca.sarnoff.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:50:05 PDT

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