From: Don Burns (don_burns++at++peru.engr.sgi.com)
Date: 10/17/2000 17:39:38
Should return the radius. You can test this by averaging all the verticies in
your geoset for a center, then finding the vertex that is furthest from your
center. The distance from the center to your furthest vertex should be your
radius.
you might have a stray vertex out there somewhere.
-don
On Oct 17, 5:27pm, Ken Lindsay wrote:
> Subject: almost trivial, but . . .
>
> hi,
>
> I'm setting a bounding volume on some geometry and discover that the radius
of the pfSphere
> is almost double what Creator 2.4 generates for the same model. I don't do
any scaling in
> performer so the measure should be almost identical to what Creator
calculates, don't you
> think? is pfNode->getBound() doing the right thing or is it really returning
the diameter
> of the pfSphere or something? I need this for intersection testing so I'd
like to be as
> tight as possible for the effect to work well.
>
> thanks
>
> ken
> -==-
>
> ken "fire a few neurons" lindsay kl++at++mars.arc.nasa.gov
> NASA Ames Research Center QSS Group, Inc.
> Bldg 269, Room 281 (650) 604 0461 (lab)
> Mail Stop 269-1 (650) 604 3594 (fax)
> Moffett Field, CA 94035-1000 (650) 604 3181 (vox)
>
> When inlaws are outlawed, only outlaws will have inlaws
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-- End of excerpt from Ken Lindsay
This archive was generated by hypermail 2b29 : Tue Oct 17 2000 - 17:40:54 PDT