py_read_triangle_mesh.cpp 1.2 KB

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