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

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -