[osg-users] Problems porting from osg-3.4.0 to osg-3.6.0
Herman Varma
hermanvarma at eastlink.ca
Mon Oct 1 21:18:28 PDT 2018
Hi,
I have encountered another problem. what is the replacement for
_boundingBoxComputed in osg-3.6.2
in osg-3.4.0
It was defined in osg\Drawable
BoundingBox _initialBound;
ref_ptr<ComputeBoundingBoxCallback> _computeBoundCallback;
mutable BoundingBox _boundingBox;
mutable bool _boundingBoxComputed;
in osg-3.6.2
it is not defined in osg\Drawable
BoundingBox _initialBoundingBox;
ref_ptr<ComputeBoundingBoxCallback>_computeBoundingBoxCallback;
mutable BoundingBox _boundingBox;
The code to be ported is
osg::BoundingBox OsgDynMesh::computeBoundingBox() const
{
FBox3 box;
m_pDynGeom->DoCalcBoundBox(box);
// convert it to OSG bounds
v2s(box.min, _boundingBox._min);
v2s(box.max, _boundingBox._max);
_boundingBoxComputed=true;
return _boundingBox;
}
Thank you!
Cheers,
Herman
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75006#75006
More information about the osg-users
mailing list