Herman Varma
2018-10-02 04:18:28 UTC
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
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