Re: another bounding box questi
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.
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:50:05 PDT