OpenVDB
6.2.1
openvdb
python
pyopenvdb.h
Go to the documentation of this file.
1
//
3
// Copyright (c) DreamWorks Animation LLC
4
//
5
// All rights reserved. This software is distributed under the
6
// Mozilla Public License 2.0 ( http://www.mozilla.org/MPL/2.0/ )
7
//
8
// Redistributions of source code must retain the above copyright
9
// and license notice and the following restrictions and disclaimer.
10
//
11
// * Neither the name of DreamWorks Animation nor the names of
12
// its contributors may be used to endorse or promote products derived
13
// from this software without specific prior written permission.
14
//
15
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY INDIRECT, INCIDENTAL,
20
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
// IN NO EVENT SHALL THE COPYRIGHT HOLDERS' AND CONTRIBUTORS' AGGREGATE
27
// LIABILITY FOR ALL CLAIMS REGARDLESS OF THEIR BASIS EXCEED US$250.00.
28
//
30
//
83
84
#ifndef PYOPENVDB_HAS_BEEN_INCLUDED
85
#define PYOPENVDB_HAS_BEEN_INCLUDED
86
87
#include <boost/python.hpp>
88
#include "
openvdb/Grid.h
"
89
90
91
namespace
pyopenvdb
{
92
94
openvdb::GridBase::Ptr
getGridFromPyObject
(PyObject*);
98
openvdb::GridBase::Ptr
getGridFromPyObject
(
const
boost::python::object&);
100
105
boost::python::object
getPyObjectFromGrid
(
const
openvdb::GridBase::Ptr&);
106
107
}
// namespace pyopenvdb
108
109
#endif // PYOPENVDB_HAS_BEEN_INCLUDED
110
111
// Copyright (c) DreamWorks Animation LLC
112
// All rights reserved. This software is distributed under the
113
// Mozilla Public License 2.0 ( http://www.mozilla.org/MPL/2.0/ )
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
pyopenvdb
Definition:
pyopenvdb.h:91
Generated by
1.8.17