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