OpenVDB  7.0.0
pyopenvdb.h
Go to the documentation of this file.
1 // Copyright Contributors to the OpenVDB Project
2 // SPDX-License-Identifier: MPL-2.0
3 //
56 
57 #ifndef PYOPENVDB_HAS_BEEN_INCLUDED
58 #define PYOPENVDB_HAS_BEEN_INCLUDED
59 
60 #include <boost/python.hpp>
61 #include "openvdb/Grid.h"
62 
63 
64 namespace pyopenvdb {
65 
71 openvdb::GridBase::Ptr getGridFromPyObject(const boost::python::object&);
73 
78 boost::python::object getPyObjectFromGrid(const openvdb::GridBase::Ptr&);
79 
80 } // namespace pyopenvdb
81 
82 #endif // PYOPENVDB_HAS_BEEN_INCLUDED
Definition: pyopenvdb.h:64
SharedPtr< GridBase > Ptr
Definition: Grid.h:80
boost::python::object getPyObjectFromGrid(const openvdb::GridBase::Ptr &)
Return a new Python object that holds the given OpenVDB grid.
openvdb::GridBase::Ptr getGridFromPyObject(PyObject *)
Return a pointer to the OpenVDB grid held by the given Python object.