how to get AABB Bounding Box from MatrixTransform Node in OpenSceneGraph -


the structure here is

   osg::matrixtransform             |         osg::geode             |      several drawables 

how can aabb bounding box osg::matrixtransform?

there's not direct method, matrixtransform exposes getter bounding sphere, boundingbox available on drawable class , derivatives.

with scene graph structure collect drawables , expand bounding box include every drawable's bb this method.
give bb includes of others in drawables coordinates. if need world coords, you'll have apply matrixtransform (and other transformation might have along nodepath root of graph)


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -