Skip to content
GitLab
Menu
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
437accc1
Commit
437accc1
authored
Jan 22, 2018
by
Alexander Dielen
Browse files
exposed meshes
parent
d58bdfdc
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
src/Bindings.cc
View file @
437accc1
#include
"Bindings.hh"
#include
"Miscellaneous.hh"
#include
"Vector.hh"
#include
"Mesh.hh"
#include
"Iterator.hh"
#include
"Circulator.hh"
...
...
@@ -22,8 +23,8 @@ PYBIND11_MODULE(openmesh, m) {
expose_vec
<
double
,
3
>
(
m
,
"Vec3d"
);
expose_vec
<
double
,
4
>
(
m
,
"Vec4d"
);
//
expose_mesh<PolyMesh>("PolyMesh");
//
expose_mesh<TriMesh>("TriMesh");
expose_mesh
<
PolyMesh
>
(
m
,
"PolyMesh"
);
expose_mesh
<
TriMesh
>
(
m
,
"TriMesh"
);
expose_iterator
<
OM
::
PolyConnectivity
::
VertexIter
,
&
OM
::
ArrayKernel
::
n_vertices
>
(
m
,
"VertexIter"
);
expose_iterator
<
OM
::
PolyConnectivity
::
HalfedgeIter
,
&
OM
::
ArrayKernel
::
n_halfedges
>
(
m
,
"HalfedgeIter"
);
...
...
src/Bindings.hh
View file @
437accc1
...
...
@@ -7,6 +7,14 @@
#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
;
...
...
src/Mesh.hh
View file @
437accc1
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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