Developer Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Bindings.hh
Go to the documentation of this file.
1
3
#ifndef OPENMESH_PYTHON_BINDINGS_HH
4
#define OPENMESH_PYTHON_BINDINGS_HH
5
6
#include <boost/python.hpp>
7
#include <boost/python/return_internal_reference.hpp>
8
#include <boost/python/reference_existing_object.hpp>
9
#include <boost/python/copy_const_reference.hpp>
10
11
#include "OpenMesh/Core/IO/MeshIO.hh"
12
#include "OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh"
13
#include "OpenMesh/Core/Mesh/PolyMesh_ArrayKernelT.hh"
14
15
using namespace
boost::python
;
16
17
namespace
OpenMesh
{
18
23
namespace
Python {
24
29
#define OPENMESH_PYTHON_DEFAULT_POLICY return_value_policy<copy_const_reference>()
30
31
struct
MeshTraits
:
public
OpenMesh::DefaultTraits
{
33
typedef
OpenMesh::Vec3d
Point
;
34
36
typedef
OpenMesh::Vec3d
Normal
;
37
39
typedef
OpenMesh::Vec4f
Color
;
40
};
41
42
typedef
OpenMesh::TriMesh_ArrayKernelT<MeshTraits>
TriMesh
;
43
typedef
OpenMesh::PolyMesh_ArrayKernelT<MeshTraits>
PolyMesh
;
44
45
}
// namespace OpenMesh
46
}
// namespace Python
47
48
#endif
OpenMesh::Python::MeshTraits
Definition:
Bindings.hh:31
OpenMesh::Python::MeshTraits::Point
OpenMesh::Vec3d Point
Definition:
Bindings.hh:33
OpenMesh::PolyMesh_ArrayKernelT
Definition:
PolyMesh_ArrayKernelT.hh:98
OpenMesh::Python::MeshTraits::Color
OpenMesh::Vec4f Color
Definition:
Bindings.hh:39
OpenMesh
Definition:
MeshItems.hh:64
OpenMesh::TriMesh_ArrayKernelT
Definition:
TriMesh_ArrayKernelT.hh:98
python
OpenMesh::VectorT< double, 3 >
PolyMesh
OpenMesh::PolyMesh_ArrayKernelT< PolyTraits > PolyMesh
Simple Name for Mesh.
Definition:
PolyMeshTypes.hh:90
TriMesh
OpenMesh::TriMesh_ArrayKernelT< TriTraits > TriMesh
Simple Name for Mesh.
Definition:
TriangleMeshTypes.hh:90
OpenMesh::Python::MeshTraits::Normal
OpenMesh::Vec3d Normal
Definition:
Bindings.hh:36
OpenMesh::DefaultTraits
Definition:
Traits.hh:126
libs_required
OpenMesh
src
Python
Bindings.hh
Generated on Wed Jul 13 2016 13:36:22 for Developer Documentation by
1.8.8