Hello Robert, I use your technique based on osg::ComputeBoundsVisitor (starting 
from the J-S example).

osg::ComputeBoundsVisitor cbbv;
root->accept(cbbv);
osg::BoundingBox bb = cbbv.getBoundingBox();

It works very well for what I want.

Matthieu.



-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Robert Osfield
Envoyé : jeudi 2 octobre 2008 18:07
À : OpenSceneGraph Users
Objet : Re: [osg-users] Bounding Parallelepiped

On Thu, Oct 2, 2008 at 4:13 PM, Matthieu DIRRENBERGER
<[EMAIL PROTECTED]> wrote:
> Robert & J-S thanks for precisions, I have not conscience of all that points.
> I had understood that osg::BoundingBox can 'store' a Bounding "Model" with 
> different axis sizes, but I asked the question to understand the best way to 
> 'compute' them ;-)

Just to be clear, you did read the bit I wrote about the
osg::ComputeBoundsVisitor???  This is exactly what you need to use if
you want a tight bound on the subgraph.  I believe Gordon's example
pre-dates the the existance of ComputeBoundsVisitor and isn't as
general purpose as the visitor now in the core OSG.

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

Reply via email to