Melchior FRANZ writes:
> 
> A bounding sphere may be empty, which is perfectly valid. 
> Such empty spheres have negative radius, but undefined center.
> (I checked both sg and fgfs for further occurrences of this
> problem.)

AFAICT The added check can't hurt anything but ....
It is a 'serious' bug if we are inserting anything into the 
Scenery that doesn't have an extent 

Valgrind has no way of knowing this 

Norman
 
> m.
> 
> 
> 
> RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Scenery/hitlist.cxx,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 hitlist.cxx
> --- hitlist.cxx 10 Sep 2002 01:14:07 -0000      1.1.1.1
> +++ hitlist.cxx 3 Jun 2003 19:54:21 -0000
> @@ -348,7 +348,7 @@ void FGHitList::IntersectBranch( ssgBran
>              kid != NULL;
>              kid = branch->getNextKid() )
>      {
> -        if ( kid->getTraversalMask() & SSGTRAV_HOT )
> +        if ( kid->getTraversalMask() & SSGTRAV_HOT && 
> !kid->getBSphere()->isEmpty() )
>          {
>              sgdVec3 center;
>              sgdSetVec3( center,
> 
> _______________________________________________
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> 

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to