Hi Robert,

I stumbled on a little bug with the new drawables. I was distributing points 
data into different drawables that I used in a LOD later. When simplifying the 
system to not use geodes anymore I came upon the following bug:
If Drawable::getBoundingBox would compute an invalid bounding box (if it was 
for example empty) it would make a bounding sphere with a infinite radius which 
counts as a valid sphere in osg.

Attached is a small fix.

Btw just while writing this post I noticed that the sphere is being set outside 
the if(!_boundingSphereComputed){} statement. This means it is set every time 
you call getBoundingBox, whats the reason it needs to be outside this statement?

Cheers,
Pjotr

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59489#59489



Attachment: Drawable
Description: Binary data

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to