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
67 openvdb::GridBase::Ptr getGridFromPyObject(PyObject*);
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
pyopenvdb::getGridFromPyObject
openvdb::GridBase::Ptr getGridFromPyObject(PyObject *)
Return a pointer to the OpenVDB grid held by the given Python object.
pyopenvdb::getPyObjectFromGrid
boost::python::object getPyObjectFromGrid(const openvdb::GridBase::Ptr &)
Return a new Python object that holds the given OpenVDB grid.
Grid.h
openvdb::v7_0::GridBase::Ptr
SharedPtr< GridBase > Ptr
Definition: Grid.h:80
pyopenvdb
Definition: pyopenvdb.h:64