py_writeMESH.cpp 602 B

123456789101112131415161718192021222324
  1. m.def("writeMESH", []
  2. (
  3. const std::string mesh_file_name,
  4. const std::vector<std::vector<double> > & V,
  5. const std::vector<std::vector<int> > & T,
  6. const std::vector<std::vector<int> > & F
  7. )
  8. {
  9. return igl::writeMESH(mesh_file_name, V, T, F);
  10. }, __doc_igl_writeMESH,
  11. py::arg("mesh_file_name"), py::arg("V"), py::arg("T"), py::arg("F"));
  12. m.def("writeMESH", []
  13. (
  14. const std::string str,
  15. const Eigen::MatrixXd& V,
  16. const Eigen::MatrixXd& T,
  17. const Eigen::MatrixXi& F
  18. )
  19. {
  20. return igl::writeMESH(str, V, T, F);
  21. }, __doc_igl_writeMESH,
  22. py::arg("str"), py::arg("V"), py::arg("T"), py::arg("F"));