py_readOBJ.cpp 942 B

1234567891011121314151617181920212223242526272829303132
  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("readOBJ", []
  9. (
  10. const std::string str,
  11. Eigen::MatrixXd& V,
  12. Eigen::MatrixXd& TC,
  13. Eigen::MatrixXd& CN,
  14. Eigen::MatrixXi& F,
  15. Eigen::MatrixXi& FTC,
  16. Eigen::MatrixXi& FN
  17. )
  18. {
  19. return igl::readOBJ(str,V,TC,CN,F,FTC,FN);
  20. }, __doc_igl_readOBJ,
  21. py::arg("str"), py::arg("V"), py::arg("TC"), py::arg("CN"), py::arg("F"), py::arg("FTC"), py::arg("FN"));
  22. m.def("readOBJ", []
  23. (
  24. const std::string str,
  25. Eigen::MatrixXd& V,
  26. Eigen::MatrixXi& F
  27. )
  28. {
  29. return igl::readOBJ(str,V,F);
  30. }, __doc_igl_readOBJ,
  31. py::arg("str"), py::arg("V"), py::arg("F"));