Update vector binding to work with new pybind11

This commit is contained in:
skoch
2017-02-14 18:50:58 +01:00
parent d1a22e9d39
commit 9bfa4df107
7 changed files with 118 additions and 115 deletions
+10 -10
View File
@@ -1,13 +1,3 @@
m.def("boundary_facets", []
(
const std::vector<std::vector<int> > & T,
std::vector<std::vector<int> > & F
)
{
return igl::boundary_facets(T,F);
}, __doc_igl_boundary_facets,
py::arg("T"), py::arg("F"));
m.def("boundary_facets", []
(
const Eigen::MatrixXi& T,
@@ -28,3 +18,13 @@ m.def("boundary_facets", []
return F;
}, __doc_igl_boundary_facets,
py::arg("T"));
m.def("boundary_facets", []
(
const std::vector<std::vector<int> > & T,
std::vector<std::vector<int> > & F
)
{
return igl::boundary_facets(T,F);
}, __doc_igl_boundary_facets,
py::arg("T"), py::arg("F"));