Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenMesh
openmesh-python
Commits
b9abfe76
Commit
b9abfe76
authored
Jan 24, 2018
by
Alexander Dielen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
7 changed files
with
19 additions
and
15 deletions
+19
-15
src/Bindings.cc
src/Bindings.cc
+1
-1
src/Circulator.hh
src/Circulator.hh
+1
-1
src/InputOutput.cc
src/InputOutput.cc
+1
-1
src/Iterator.hh
src/Iterator.hh
+1
-1
src/Mesh.hh
src/Mesh.hh
+7
-1
src/MeshTypes.hh
src/MeshTypes.hh
+7
-9
src/PropertyManager.hh
src/PropertyManager.hh
+1
-1
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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