py_boundary_loop.cpp 947 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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("boundary_loop", []
  9. (
  10. const Eigen::MatrixXi& F,
  11. Eigen::MatrixXi& L
  12. )
  13. {
  14. Eigen::VectorXi T;
  15. igl::boundary_loop(F,T);
  16. L = T;
  17. }, __doc_igl_boundary_loop,
  18. py::arg("F"), py::arg("L"));
  19. m.def("boundary_loop", []
  20. (
  21. const Eigen::MatrixXi& F,
  22. std::vector<std::vector<int> >& L
  23. )
  24. {
  25. return igl::boundary_loop(F,L);
  26. }, __doc_igl_boundary_loop,
  27. py::arg("F"), py::arg("L"));
  28. m.def("boundary_loop", []
  29. (
  30. const Eigen::MatrixXi& F,
  31. std::vector<int>& L
  32. )
  33. {
  34. return igl::boundary_loop(F,L);
  35. }, __doc_igl_boundary_loop,
  36. py::arg("F"), py::arg("L"));