Added support for serailizing and scripting BoundingBox and BoundingSphere objects
This commit is contained in:
@@ -160,6 +160,18 @@ OutputStream& OutputStream::operator<<( const osg::Plane& p )
|
||||
{ *this << (double)p[0] << (double)p[1] << (double)p[2] << (double)p[3]; return *this; }
|
||||
|
||||
|
||||
OutputStream& OutputStream::operator<<( const osg::BoundingBoxf& bb)
|
||||
{ *this << bb.xMin() << bb.yMin() << bb.zMin() << bb.xMax() << bb.yMax() << bb.zMax(); return *this; }
|
||||
|
||||
OutputStream& OutputStream::operator<<( const osg::BoundingBoxd& bb)
|
||||
{ *this << bb.xMin() << bb.yMin() << bb.zMin() << bb.xMax() << bb.yMax() << bb.zMax(); return *this; }
|
||||
|
||||
OutputStream& OutputStream::operator<<( const osg::BoundingSpheref& bs)
|
||||
{ *this << bs.center().x() << bs.center().y() << bs.center().z() << bs.radius(); return *this; }
|
||||
|
||||
OutputStream& OutputStream::operator<<( const osg::BoundingSphered& bs)
|
||||
{ *this << bs.center().x() << bs.center().y() << bs.center().z() << bs.radius(); return *this; }
|
||||
|
||||
#if 0
|
||||
OutputStream& OutputStream::operator<<( const osg::Matrixf& mat )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user