#include
osg::BoundingBox boundingBox;
osg::ComputeBoundsVisitor bounderVisitor;
geode->accept(bounderVisitor); // 授权
boundingBox = bounderVisitor.getBoundingBox();
// 其中geode为模型节点。
暂无评论
#include
osg::BoundingBox boundingBox;
osg::ComputeBoundsVisitor bounderVisitor;
geode->accept(bounderVisitor); // 授权
boundingBox = bounderVisitor.getBoundingBox();
// 其中geode为模型节点。