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

Function findGrid

src/IECoreVDB/bindings/IECoreVDBModule.cpp:130–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128} // namespace iepyopenvdb
129
130boost::python::object findGrid( VDBObject::Ptr vdbObject, const std::string &gridName )
131{
132 openvdb::GridBase::Ptr grid = vdbObject->findGrid( gridName );
133 if( grid )
134 {
135 return iepyopenvdb::getPyObjectFromGrid( grid );
136 }
137 else
138 {
139 return boost::python::object();
140 }
141}
142
143void insertGrid( VDBObject::Ptr vdbObject, boost::python::object pyObject )
144{

Callers 1

metadataMethod · 0.85

Calls 2

getPyObjectFromGridFunction · 0.85
findGridMethod · 0.80

Tested by

no test coverage detected