Commit b9abfe76 authored by Alexander Dielen's avatar Alexander Dielen

renamed bindings.hh, use double texcoords, moved define to where it is still needed

parent 99588005
#include "Bindings.hh"
#include "MeshTypes.hh"
#include "Miscellaneous.hh"
#include "Vector.hh"
#include "Mesh.hh"
......
#ifndef OPENMESH_PYTHON_CIRCULATOR_HH
#define OPENMESH_PYTHON_CIRCULATOR_HH
#include "Bindings.hh"
#include "MeshTypes.hh"
#include <pybind11/pybind11.h>
namespace py = pybind11;
......
#include "InputOutput.hh"
#include "Bindings.hh"
#include "MeshTypes.hh"
#include <pybind11/operators.h>
......
#ifndef OPENMESH_PYTHON_ITERATOR_HH
#define OPENMESH_PYTHON_ITERATOR_HH
#include "Bindings.hh"
#include "MeshTypes.hh"
#include <pybind11/pybind11.h>
namespace py = pybind11;
......
#ifndef OPENMESH_PYTHON_MESH_HH
#define OPENMESH_PYTHON_MESH_HH
#include "Bindings.hh"
#include "MeshTypes.hh"
#include "Iterator.hh"
#include "Circulator.hh"
......@@ -12,6 +12,12 @@ namespace py = pybind11;
namespace OM = OpenMesh;
/**
* Return value policy for functions that return references to objects that are
* managed by %OpenMesh.
*/
#define OPENMESH_PYTHON_DEFAULT_POLICY py::return_value_policy::copy
/**
* Set the status of an item.
*
......
/** @file */
#ifndef OPENMESH_PYTHON_BINDINGS_HH
#define OPENMESH_PYTHON_BINDINGS_HH
#ifndef OPENMESH_PYTHON_MESHTYPES_HH
#define OPENMESH_PYTHON_MESHTYPES_HH
#include <OpenMesh/Core/IO/MeshIO.hh>
#include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh>
#include <OpenMesh/Core/Mesh/PolyMesh_ArrayKernelT.hh>
/**
* Return value policy for functions that return references to objects that are
* managed by %OpenMesh.
*/
#define OPENMESH_PYTHON_DEFAULT_POLICY py::return_value_policy::copy
struct MeshTraits : public OpenMesh::DefaultTraits {
/** Use double precision points */
typedef OpenMesh::Vec3d Point;
......@@ -24,6 +17,11 @@ struct MeshTraits : public OpenMesh::DefaultTraits {
/** Use RGBA colors */
typedef OpenMesh::Vec4f Color;
/** Use double precision texcoords */
typedef double TexCoord1D;
typedef OpenMesh::Vec2d TexCoord2D;
typedef OpenMesh::Vec3d TexCoord3D;
};
typedef OpenMesh::TriMesh_ArrayKernelT<MeshTraits> TriMesh;
......
#ifndef OPENMESH_PYTHON_PROPERTYMANAGER_HH
#define OPENMESH_PYTHON_PROPERTYMANAGER_HH
#include "Bindings.hh"
#include "MeshTypes.hh"
#include <OpenMesh/Core/Utils/PropertyManager.hh>
#include <pybind11/pybind11.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment