| 13 | | bool valid = false; is >> valid; |
| 14 | | if ( valid ) |
| 15 | | { |
| 16 | | osg::Vec3d min, max; |
| 17 | | is >> osgDB::BEGIN_BRACKET >> osgDB::PROPERTY("Minimum") >> min; |
| 18 | | is >> osgDB::PROPERTY("Maximum") >> max >> osgDB::END_BRACKET; |
| 19 | | drawable.setInitialBound( osg::BoundingBox(min, max) ); |
| 20 | | } |
| | 13 | osg::Vec3d min, max; |
| | 14 | is >> osgDB::BEGIN_BRACKET; |
| | 15 | is >> osgDB::PROPERTY("Minimum") >> min; |
| | 16 | is >> osgDB::PROPERTY("Maximum") >> max; |
| | 17 | is >> osgDB::END_BRACKET; |
| | 18 | drawable.setInitialBound( osg::BoundingBox(min, max) ); |
| 27 | | os << bb.valid(); |
| 28 | | if ( bb.valid() ) |
| 29 | | { |
| 30 | | os << osgDB::BEGIN_BRACKET << std::endl; |
| 31 | | os << osgDB::PROPERTY("Minimum") << osg::Vec3d(bb._min) << std::endl; |
| 32 | | os << osgDB::PROPERTY("Maximum") << osg::Vec3d(bb._max) << std::endl; |
| 33 | | os << osgDB::END_BRACKET; |
| 34 | | } |
| | 25 | os << osgDB::BEGIN_BRACKET << std::endl; |
| | 26 | os << osgDB::PROPERTY("Minimum") << osg::Vec3d(bb._min) << std::endl; |
| | 27 | os << osgDB::PROPERTY("Maximum") << osg::Vec3d(bb._max) << std::endl; |
| | 28 | os << osgDB::END_BRACKET; |