py_writeMESH.cpp 990 B

12345678910111213141516171819202122232425262728293031
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2017 Sebastian Koch <s.koch@tu-berlin.de> and Daniele Panozzo <daniele.panozzo@gmail.com>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. m.def("writeMESH", []
  9. (
  10. const std::string mesh_file_name,
  11. const std::vector<std::vector<double> > & V,
  12. const std::vector<std::vector<int> > & T,
  13. const std::vector<std::vector<int> > & F
  14. )
  15. {
  16. return igl::writeMESH(mesh_file_name, V, T, F);
  17. }, __doc_igl_writeMESH,
  18. py::arg("mesh_file_name"), py::arg("V"), py::arg("T"), py::arg("F"));
  19. m.def("writeMESH", []
  20. (
  21. const std::string str,
  22. const Eigen::MatrixXd& V,
  23. const Eigen::MatrixXd& T,
  24. const Eigen::MatrixXi& F
  25. )
  26. {
  27. return igl::writeMESH(str, V, T, F);
  28. }, __doc_igl_writeMESH,
  29. py::arg("str"), py::arg("V"), py::arg("T"), py::arg("F"));