Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
openmesh-python
Commits
b9abfe76
Commit
b9abfe76
authored
Jan 24, 2018
by
Alexander Dielen
Browse files
renamed bindings.hh, use double texcoords, moved define to where it is still needed
parent
99588005
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/Bindings.cc
View file @
b9abfe76
#include
"
Binding
s.hh"
#include
"
MeshType
s.hh"
#include
"Miscellaneous.hh"
#include
"Vector.hh"
#include
"Mesh.hh"
...
...
src/Circulator.hh
View file @
b9abfe76
#ifndef OPENMESH_PYTHON_CIRCULATOR_HH
#define OPENMESH_PYTHON_CIRCULATOR_HH
#include
"
Binding
s.hh"
#include
"
MeshType
s.hh"
#include
<pybind11/pybind11.h>
namespace
py
=
pybind11
;
...
...
src/InputOutput.cc
View file @
b9abfe76
#include
"InputOutput.hh"
#include
"
Binding
s.hh"
#include
"
MeshType
s.hh"
#include
<pybind11/operators.h>
...
...
src/Iterator.hh
View file @
b9abfe76
#ifndef OPENMESH_PYTHON_ITERATOR_HH
#define OPENMESH_PYTHON_ITERATOR_HH
#include
"
Binding
s.hh"
#include
"
MeshType
s.hh"
#include
<pybind11/pybind11.h>
namespace
py
=
pybind11
;
...
...
src/Mesh.hh
View file @
b9abfe76
#ifndef OPENMESH_PYTHON_MESH_HH
#define OPENMESH_PYTHON_MESH_HH
#include
"
Binding
s.hh"
#include
"
MeshType
s.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.
*
...
...
src/
Binding
s.hh
→
src/
MeshType
s.hh
View file @
b9abfe76
/** @file */
#ifndef OPENMESH_PYTHON_
BINDING
S_HH
#define OPENMESH_PYTHON_
BINDING
S_HH
#ifndef OPENMESH_PYTHON_
MESHTYPE
S_HH
#define OPENMESH_PYTHON_
MESHTYPE
S_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
;
...
...
src/PropertyManager.hh
View file @
b9abfe76
#ifndef OPENMESH_PYTHON_PROPERTYMANAGER_HH
#define OPENMESH_PYTHON_PROPERTYMANAGER_HH
#include
"
Binding
s.hh"
#include
"
MeshType
s.hh"
#include
<OpenMesh/Core/Utils/PropertyManager.hh>
#include
<pybind11/pybind11.h>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment