Calculating the perfect bounding sphere is an expensive operation.
You need to calc the convex hull which is O(n log n).
osg uses a fast approximation which is generally good enough.

2009/8/11 Gianluca Natale <[email protected]>:
> Hi All,
> I’m having problem computing the global bounding sphere of my model.
> I debugged OSG (2.8.0) and discovered that the bounding sphere of a geode
> (BoundingSphere Geode::computeBound()) is
> computed as the bounding sphere of the bounding box that includes all its
> drawables !?!
>
>
>
> Why that?
>
> Shouldn’t it be the global bounding sphere of the drawables, merging the
> single bounding spheres
> of all the drawables?
>
>
>
> So, a drawable that represents a sphere should have as bounding sphere
> itself,
> but this is not true with the computation OSG performs. It is larger than
> strictly required.
>
>
>
> Thanks,
> Gianluca Natale
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>



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

Reply via email to