Added further python bindings, extended py_vector slightly

Former-commit-id: 13e300c8a9
This commit is contained in:
Sebastian Koch
2016-05-20 20:18:29 +02:00
parent 94b7d07f84
commit 39ade1009b
18 changed files with 582 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
m.def("writeMESH", []
(
const std::string mesh_file_name,
const std::vector<std::vector<double> > & V,
const std::vector<std::vector<int> > & T,
const std::vector<std::vector<int> > & F
)
{
return igl::writeMESH(mesh_file_name, V, T, F);
}, __doc_igl_writeMESH,
py::arg("mesh_file_name"), py::arg("V"), py::arg("T"), py::arg("F"));
m.def("writeMESH", []
(
const std::string str,
const Eigen::MatrixXd& V,
const Eigen::MatrixXd& T,
const Eigen::MatrixXi& F
)
{
return igl::writeMESH(str, V, T, F);
}, __doc_igl_writeMESH,
py::arg("str"), py::arg("V"), py::arg("T"), py::arg("F"));