HI Matthieu,

An osg::BoundingBox is an axis aligned bounding box, all faces could
be the same size as in a cube, but this is certainly not constrained
to represent cubes.

Secondly the scene graph uses BoundingBox for the Drawable leaves, and
BoundingSphere for nodes of the scene graph.  This combination
provides the best combination of cull performance.

Third, the bounding volumes in the scene graph hierarchy enclose all
of the subgraph below them.  This normally leads to the root bounding
sphere being larger than the tightest bounding box you could create
for the scene graph.  If you wish to compute the tightest bound
BounidingBox for your scene you need to use the
osg::ComputeBoundsVisitor.

Robert.

On Thu, Oct 2, 2008 at 3:03 PM, Matthieu DIRRENBERGER
<[EMAIL PROTECTED]> wrote:
> Hello OSG masters,
>
>
>
> I have a question about BoundingBox (I checked the mailing archives before).
>
> You know that OSG generate BoundingBox, but it is really a box (all faces
> have the same size).
>
> I need the Bounding Parallelepiped of my scene. Not just the bigger radius
> from the center applied on each side, but the min/max coordinates on Z axis,
> on X axis and on Y axis individually.
>
> I have wasted some time to try myself, but I don't understand how to do that
> simply?
>
> I saw this example:
> http://www.3drealtimesimulation.com/osg/code/osgcode_bbox1.htm
>
> But it is the same problem than with OSG integrated functions. Can you help
> me?
>
>
>
> Thanks in advance
>
>
>
> Matthieu DIRRENBERGER
>
> _______________________________________________
> 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