py_lbs_matrix.cpp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. // COMPLETE BINDINGS ========================
  9. m.def("lbs_matrix", []
  10. (
  11. const Eigen::MatrixXd& V,
  12. const Eigen::MatrixXd& W,
  13. Eigen::MatrixXd& M
  14. )
  15. {
  16. return igl::lbs_matrix(V, W, M);
  17. }, __doc_igl_lbs_matrix,
  18. py::arg("V"), py::arg("W"), py::arg("M"));
  19. m.def("lbs_matrix_column", []
  20. (
  21. const Eigen::MatrixXd& V,
  22. const Eigen::MatrixXd& W,
  23. Eigen::MatrixXd& M
  24. )
  25. {
  26. return igl::lbs_matrix_column(V, W, M);
  27. }, __doc_igl_lbs_matrix_column,
  28. py::arg("V"), py::arg("W"), py::arg("M"));
  29. m.def("lbs_matrix_column", []
  30. (
  31. const Eigen::MatrixXd& V,
  32. const Eigen::MatrixXd& W,
  33. const Eigen::MatrixXi& WI,
  34. Eigen::MatrixXd& M
  35. )
  36. {
  37. return igl::lbs_matrix_column(V, W, WI, M);
  38. }, __doc_igl_lbs_matrix_column,
  39. py::arg("V"), py::arg("W"), py::arg("WI"), py::arg("M"));
  40. // INCOMPLETE BINDINGS ========================
  41. m.def("lbs_matrix_column", []
  42. (
  43. const Eigen::MatrixXd& V,
  44. const Eigen::MatrixXd& W,
  45. Eigen::SparseMatrix<double>& M
  46. )
  47. {
  48. return igl::lbs_matrix_column(V, W, M);
  49. }, __doc_igl_lbs_matrix_column,
  50. py::arg("V"), py::arg("W"), py::arg("M"));
  51. m.def("lbs_matrix_column", []
  52. (
  53. const Eigen::MatrixXd& V,
  54. const Eigen::MatrixXd& W,
  55. const Eigen::MatrixXi& WI,
  56. Eigen::SparseMatrix<double>& M
  57. )
  58. {
  59. return igl::lbs_matrix_column(V, W, WI, M);
  60. }, __doc_igl_lbs_matrix_column,
  61. py::arg("V"), py::arg("W"), py::arg("WI"), py::arg("M"));