py_deform_skeleton.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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("deform_skeleton", []
  10. (
  11. const Eigen::MatrixXd& C,
  12. const Eigen::MatrixXi& BE,
  13. const Eigen::MatrixXd& T,
  14. Eigen::MatrixXd& CT,
  15. Eigen::MatrixXi& BET
  16. )
  17. {
  18. return igl::deform_skeleton(C, BE, T, CT, BET);
  19. }, __doc_igl_deform_skeleton,
  20. py::arg("C"), py::arg("BE"), py::arg("T"), py::arg("CT"), py::arg("BET"));
  21. // INCOMPLETE BINDINGS ========================
  22. //m.def("deform_skeleton", []
  23. //(
  24. // const Eigen::MatrixXd& C,
  25. // const Eigen::MatrixXi& BE,
  26. // std::vector<Eigen::Affine3d, Eigen::aligned_allocator<Eigen::Affine3d> > & vA,
  27. // Eigen::MatrixXd& CT,
  28. // Eigen::MatrixXi& BET
  29. //)
  30. //{
  31. // return igl::deform_skeleton(C, BE, vA, CT, BET);
  32. //}, __doc_igl_deform_skeleton,
  33. //py::arg("C"), py::arg("BE"), py::arg("vA"), py::arg("CT"), py::arg("BET"));