py_readMESH.cpp 984 B

12345678910111213141516171819202122232425262728293031323334
  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("readMESH", []
  9. (
  10. const std::string mesh_file_name,
  11. Eigen::MatrixXd& V,
  12. Eigen::MatrixXi& T,
  13. Eigen::MatrixXi& F
  14. )
  15. {
  16. return igl::readMESH(mesh_file_name, V, T, F);
  17. }, __doc_igl_readMESH,
  18. py::arg("mesh_file_name"), py::arg("V"), py::arg("T"), py::arg("F"));
  19. m.def("readMESH", []
  20. (
  21. const std::string mesh_file_name,
  22. std::vector<std::vector<double> > & V,
  23. std::vector<std::vector<int> > & T,
  24. std::vector<std::vector<int> > & F
  25. )
  26. {
  27. return igl::readMESH(mesh_file_name, V, T, F);
  28. }, __doc_igl_readMESH,
  29. py::arg("mesh_file_name"), py::arg("V"), py::arg("T"), py::arg("F"));