|
osg::ref_ptr<osg::Geode>qiu=new osg::Geode;
float radius=540;
qiu->addDrawable(new osg::ShapeDrawable(new osg::Sphere(_eye,radius)));
const osg::BoundingSphere bs=qiu->getBound();
std::cout<<bs.radius()<<std::endl;
输出结果:935.307,而不是540 为什么?
请指点一下,不胜感激 |
|