py_doublearea.cpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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("doublearea", []
  9. (
  10. const Eigen::MatrixXd& V,
  11. const Eigen::MatrixXi& F,
  12. Eigen::MatrixXd& dblA
  13. )
  14. {
  15. return igl::doublearea(V,F,dblA);
  16. }, __doc_igl_doublearea,
  17. py::arg("V"), py::arg("F"), py::arg("dblA"));
  18. m.def("doublearea", []
  19. (
  20. const Eigen::MatrixXd& A,
  21. const Eigen::MatrixXd& B,
  22. const Eigen::MatrixXd& C,
  23. Eigen::MatrixXd& D
  24. )
  25. {
  26. return igl::doublearea(A,B,C,D);
  27. }, __doc_igl_doublearea,
  28. py::arg("A"), py::arg("B"), py::arg("C"), py::arg("D"));
  29. m.def("doublearea_single", []
  30. (
  31. const Eigen::MatrixXd& A,
  32. const Eigen::MatrixXd& B,
  33. const Eigen::MatrixXd& C
  34. )
  35. {
  36. return igl::doublearea_single(A,B,C);
  37. }, __doc_igl_doublearea_single,
  38. py::arg("A"), py::arg("B"), py::arg("C"));
  39. m.def("doublearea", []
  40. (
  41. const Eigen::MatrixXd& l,
  42. Eigen::MatrixXd& dblA
  43. )
  44. {
  45. return igl::doublearea(l,dblA);
  46. }, __doc_igl_doublearea,
  47. py::arg("l"), py::arg("dblA"));
  48. m.def("doublearea_quad", []
  49. (
  50. const Eigen::MatrixXd& V,
  51. const Eigen::MatrixXi& F,
  52. Eigen::MatrixXd& dblA
  53. )
  54. {
  55. return igl::doublearea_quad(V,F,dblA);
  56. }, __doc_igl_doublearea_quad,
  57. py::arg("V"), py::arg("F"), py::arg("dblA"));