"daniele argiolas" writes:

> Hi,
> how can I retrieve the dimension of an OSG model loaded in the scene?
>
> I see that with getBound().radius() I can retrieve informations about the 
> BoundingSphere.
>
> But I need also the three dimensions..

Hi Daniele,

Assuming that no transformation nodes exist in the graph describing your
node, you can write a node visitor that joins all the bounding boxes of
every geode.

Else you'll need to modify every bounding box by its parent transforms
in order to join them.

--
Alberto
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to