Skip to content

Commit

Permalink
added missing ArrayKernel functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Dielen committed Jun 9, 2018
1 parent 3d6daaf commit 56c54ad
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Mesh.hh
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,20 @@ void expose_mesh(py::module& m, const char *_name) {
.def("copy_all_properties", copy_all_properties_fh_fh_bool,
py::arg("fh_from"), py::arg("fh_to"), py::arg("copy_build_in")=false)

//======================================================================
// ArrayKernel
//======================================================================

.def("is_valid_handle", (bool (Mesh::*)(OM::VertexHandle) const) &Mesh::is_valid_handle)
.def("is_valid_handle", (bool (Mesh::*)(OM::HalfedgeHandle) const) &Mesh::is_valid_handle)
.def("is_valid_handle", (bool (Mesh::*)(OM::EdgeHandle) const) &Mesh::is_valid_handle)
.def("is_valid_handle", (bool (Mesh::*)(OM::FaceHandle) const) &Mesh::is_valid_handle)

.def("delete_isolated_vertices", [](Mesh& _self) {
if (!_self.has_vertex_status()) _self.request_vertex_status();
_self.delete_isolated_vertices();
})

//======================================================================
// PolyConnectivity
//======================================================================
Expand Down

0 comments on commit 56c54ad

Please sign in to comment.