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
Post a Comment