py_barycentric_coordinates.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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("barycentric_coordinates", []
  9. (
  10. const Eigen::MatrixXd& P,
  11. const Eigen::MatrixXd& A,
  12. const Eigen::MatrixXd& B,
  13. const Eigen::MatrixXd& C,
  14. const Eigen::MatrixXd& D,
  15. Eigen::MatrixXd& L
  16. )
  17. {
  18. return igl::barycentric_coordinates(P, A, B, C, D, L);
  19. }, __doc_igl_barycentric_coordinates,
  20. py::arg("P"), py::arg("A"), py::arg("B"), py::arg("C"), py::arg("D"), py::arg("L"));
  21. m.def("barycentric_coordinates", []
  22. (
  23. const Eigen::MatrixXd& P,
  24. const Eigen::MatrixXd& A,
  25. const Eigen::MatrixXd& B,
  26. const Eigen::MatrixXd& C,
  27. Eigen::MatrixXd& L
  28. )
  29. {
  30. return igl::barycentric_coordinates(P, A, B, C, L);
  31. }, __doc_igl_barycentric_coordinates,
  32. py::arg("P"), py::arg("A"), py::arg("B"), py::arg("C"), py::arg("L"));