| 194 | } |
| 195 | |
| 196 | Imath::Box3f VDBObject::bound() const |
| 197 | { |
| 198 | Imath::Box3f combinedBounds; |
| 199 | |
| 200 | for( const auto &it : m_grids ) |
| 201 | { |
| 202 | Imath::Box3f gridBounds = worldBound<float>( it.second.metadata().get() ); |
| 203 | |
| 204 | combinedBounds.extendBy( gridBounds ); |
| 205 | } |
| 206 | |
| 207 | return combinedBounds; |
| 208 | } |
| 209 | |
| 210 | IECore::CompoundObjectPtr VDBObject::metadata( const std::string &name ) |
| 211 | { |