py_read_triangle_mesh.cpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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("read_triangle_mesh", []
  9. (
  10. const std::string str,
  11. Eigen::MatrixXd& V,
  12. Eigen::MatrixXi& F,
  13. Eigen::MatrixXd& TC
  14. )
  15. {
  16. return igl::read_triangle_mesh(str,V,F, TC);
  17. }, __doc_igl_read_triangle_mesh,
  18. py::arg("str"), py::arg("V"), py::arg("F"), py::arg("TC"));
  19. m.def("read_triangle_mesh", []
  20. (
  21. const std::string str,
  22. Eigen::MatrixXd& V,
  23. Eigen::MatrixXi& F,
  24. Eigen::MatrixXd& TC,
  25. std::string & dir,
  26. std::string & base,
  27. std::string & ext,
  28. std::string & name
  29. )
  30. {
  31. return igl::read_triangle_mesh(str,V,F,TC,dir,base,ext,name);
  32. }, __doc_igl_read_triangle_mesh,
  33. py::arg("str"), py::arg("V"), py::arg("F"), py::arg("TC"), py::arg("dir"), py::arg("base"), py::arg("ext"), py::arg("name"));
  34. m.def("read_triangle_mesh", []
  35. (
  36. const std::string str,
  37. std::vector<std::vector<double> >& V,
  38. std::vector<std::vector<int> >& F,
  39. std::vector<std::vector<double> >& TC
  40. )
  41. {
  42. return igl::read_triangle_mesh(str,V,F, TC);
  43. }, __doc_igl_read_triangle_mesh,
  44. py::arg("str"), py::arg("V"), py::arg("F"), py::arg("TC"));