[osg-users] Boundingsphere precision question
Paul Martz
pmartz at skew-matrix.com
Sun Jul 27 11:30:34 PDT 2008
> I created a NodeVisitor and traversed the loaded node, the
> boundingbox I received from the Geode is indeed smaller, but
> it confused me a little bit, since it looks like the attached
> picture -> http://img225.imageshack.us/img225/3594/tankspherexgk9.gif
> So obviously there are several geode in the model, but is
> there a quick way to get the "overall" geode? I tried to
> traverse all geodes and saving the geode with the biggest
> boundingbox radius, but then I get the center of the last
> goede's center, which is seldomly the center of the model.
The osg::ComputeBoundsVisitor might be useful. It computes the bounding box
for an entire subgraph.
-Paul
More information about the osg-users
mailing list