py_readOFF.cpp 813 B

1234567891011121314151617181920212223242526272829
  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("readOFF", []
  9. (
  10. const std::string str,
  11. Eigen::MatrixXd& V,
  12. Eigen::MatrixXi& F
  13. )
  14. {
  15. return igl::readOFF(str,V,F);
  16. }, __doc_igl_readOFF,
  17. py::arg("str"), py::arg("V"), py::arg("F"));
  18. m.def("readOFF", []
  19. (
  20. const std::string str,
  21. Eigen::MatrixXd& V,
  22. Eigen::MatrixXi& F,
  23. Eigen::MatrixXd& N
  24. )
  25. {
  26. return igl::readOFF(str,V,F,N);
  27. }, __doc_igl_readOFF,
  28. py::arg("str"), py::arg("V"), py::arg("F"), py::arg("N"));