Re: another bounding box questi

New Message Reply Date view Thread view Subject view Author view

John Rohlf (jrohlf++at++tubes)
Tue, 9 Nov 93 14:14:21 -0800


>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?

        pfGetNodeBSphere(object, &bsphere) will be in the 1.2 release.


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.