py_internal_angles.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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("internal_angles", []
  9. (
  10. const Eigen::MatrixXd& V,
  11. const Eigen::MatrixXi& F,
  12. Eigen::MatrixXd& K
  13. )
  14. {
  15. return igl::internal_angles(V, F, K);
  16. }, __doc_igl_internal_angles,
  17. py::arg("V"), py::arg("F"), py::arg("K"));
  18. m.def("internal_angles_using_squared_edge_lengths", []
  19. (
  20. const Eigen::MatrixXd& L_sq,
  21. Eigen::MatrixXd& K
  22. )
  23. {
  24. return igl::internal_angles_using_squared_edge_lengths(L_sq, K);
  25. }, __doc_igl_internal_angles,
  26. py::arg("L_sq"), py::arg("K"));
  27. //m.def("internal_angles_using_edge_lengths", []
  28. //(
  29. // const Eigen::MatrixXd& L,
  30. // Eigen::MatrixXd& K
  31. //)
  32. //{
  33. // return igl::internal_angles_using_edge_lengths(L, K);
  34. //}, __doc_igl_internal_angles,
  35. //py::arg("L"), py::arg("K"));