py_boundary_facets.cpp 946 B

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