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
2288f4f9
Commit
2288f4f9
authored
Dec 02, 2020
by
Isaak Lim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add missing add_face function for polymesh
parent
e61ff259
Pipeline
#16092
failed with stages
in 1 minute and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/Mesh.hh
src/Mesh.hh
+1
-3
No files found.
src/Mesh.hh
View file @
2288f4f9
...
...
@@ -418,11 +418,9 @@ void expose_type_specific_functions(py::class_<PolyMesh>& _class) {
typedef
py
::
array_t
<
typename
Point
::
value_type
>
np_point_t
;
_class
/*
.
def
(
"add_face"
,
[](
PolyMesh
&
_self
,
OM
::
VertexHandle
_vh0
,
OM
::
VertexHandle
_vh1
,
OM
::
VertexHandle
_vh2
,
OM
::
VertexHandle
_vh3
)
{
return
static_cast
<
OM
::
FaceHandle
>
(
_self
.
add_face
(
_vh0
,
_vh1
,
_vh2
,
_vh3
));
})
*/
.
def
(
"split"
,
[](
PolyMesh
&
_self
,
OM
::
EdgeHandle
_eh
,
np_point_t
_arr
)
{
_self
.
split
(
_eh
,
Point
(
_arr
.
at
(
0
),
_arr
.
at
(
1
),
_arr
.
at
(
2
)));
...
...
@@ -917,7 +915,7 @@ void expose_mesh(py::module& m, const char *_name) {
})
.
def
(
"add_vertex"
,
[](
Mesh
&
_self
,
py
::
array_t
<
typename
Point
::
value_type
>
_arr
)
{
return
_self
.
add_vertex
(
Point
(
_arr
.
at
(
0
),
_arr
.
at
(
1
),
_arr
.
at
(
2
)));
return
static_cast
<
OM
::
VertexHandle
>
(
_self
.
add_vertex
(
Point
(
_arr
.
at
(
0
),
_arr
.
at
(
1
),
_arr
.
at
(
2
)))
)
;
})
.
def
(
"delete_vertex"
,
[](
Mesh
&
_self
,
OM
::
VertexHandle
_vh
,
bool
_delete_isolated
)
{
...
...
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