MCPcopy Create free account
hub / github.com/ImageEngine/cortex / grid

Method grid

src/IECoreVDB/VDBObject.cpp:408–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408openvdb::GridBase::Ptr VDBObject::HashedGrid::grid() const
409{
410 auto tmp = m_lockedFile;
411 if ( tmp && tmp->file )
412 {
413 std::lock_guard<std::recursive_mutex> l( tmp->mutex );
414
415 m_grid = tmp->file->readGrid( m_grid->getName() );
416 m_lockedFile.reset();
417 }
418 return m_grid;
419}
420
421IECore::MurmurHash VDBObject::HashedGrid::hash() const
422{

Callers 1

findGridMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected