py_collapse_edge.cpp 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. // INCOMPLETE BINDINGS ========================
  10. //m.def("collapse_edge", []
  11. //(
  12. // int e,
  13. // Eigen::RowVectorXd & p,
  14. // Eigen::MatrixXd& V,
  15. // Eigen::MatrixXi& F,
  16. // Eigen::MatrixXi& E,
  17. // Eigen::MatrixXi& EMAP,
  18. // Eigen::MatrixXi& EF,
  19. // Eigen::MatrixXi& EI,
  20. // int & e1,
  21. // int & e2,
  22. // int & f1,
  23. // int & f2
  24. //)
  25. //{
  26. // return igl::collapse_edge(e, p, V, F, E, EMAP, EF, EI, e1, e2, f1, f2);
  27. //}, __doc_igl_collapse_edge,
  28. //py::arg("e"), py::arg("p"), py::arg("V"), py::arg("F"), py::arg("E"), py::arg("EMAP"), py::arg("EF"), py::arg("EI"), py::arg("e1"), py::arg("e2"), py::arg("f1"), py::arg("f2"));
  29. //m.def("collapse_edge", []
  30. //(
  31. // int e,
  32. // Eigen::RowVectorXd & p,
  33. // Eigen::MatrixXd& V,
  34. // Eigen::MatrixXi& F,
  35. // Eigen::MatrixXi& E,
  36. // Eigen::MatrixXi& EMAP,
  37. // Eigen::MatrixXi& EF,
  38. // Eigen::MatrixXi& EI
  39. //)
  40. //{
  41. // return igl::collapse_edge(e, p, V, F, E, EMAP, EF, EI);
  42. //}, __doc_igl_collapse_edge,
  43. //py::arg("e"), py::arg("p"), py::arg("V"), py::arg("F"), py::arg("E"), py::arg("EMAP"), py::arg("EF"), py::arg("EI"));
  44. //m.def("collapse_edge", []
  45. //(
  46. // std::function<void (const int, const Eigen::MatrixXd &, const Eigen::MatrixXi &, const Eigen::MatrixXi &, const Eigen::VectorXi &, const Eigen::MatrixXi &, const Eigen::MatrixXi &, double &, Eigen::RowVectorXd &)> & cost_and_placement,
  47. // Eigen::MatrixXd& V,
  48. // Eigen::MatrixXi& F,
  49. // Eigen::MatrixXi& E,
  50. // Eigen::MatrixXi& EMAP,
  51. // Eigen::MatrixXi& EF,
  52. // Eigen::MatrixXi& EI,
  53. // std::set<std::pair<double, int> > & Q,
  54. // std::vector<std::set<std::pair<double, int> >::iterator> & Qit,
  55. // Eigen::MatrixXd& C
  56. //)
  57. //{
  58. // return igl::collapse_edge(cost_and_placement, V, F, E, EMAP, EF, EI, Q, Qit, C);
  59. //}, __doc_igl_collapse_edge,
  60. //py::arg("cost_and_placement"), py::arg("V"), py::arg("F"), py::arg("E"), py::arg("EMAP"), py::arg("EF"), py::arg("EI"), py::arg("Q"), py::arg("Qit"), py::arg("C"));
  61. //m.def("collapse_edge", []
  62. //(
  63. // std::function<void (const int, const Eigen::MatrixXd &, const Eigen::MatrixXi &, const Eigen::MatrixXi &, const Eigen::VectorXi &, const Eigen::MatrixXi &, const Eigen::MatrixXi &, double &, Eigen::RowVectorXd &)> & cost_and_placement,
  64. // Eigen::MatrixXd& V,
  65. // Eigen::MatrixXi& F,
  66. // Eigen::MatrixXi& E,
  67. // Eigen::MatrixXi& EMAP,
  68. // Eigen::MatrixXi& EF,
  69. // Eigen::MatrixXi& EI,
  70. // std::set<std::pair<double, int> > & Q,
  71. // std::vector<std::set<std::pair<double, int> >::iterator> & Qit,
  72. // Eigen::MatrixXd& C,
  73. // int & e,
  74. // int & e1,
  75. // int & e2,
  76. // int & f1,
  77. // int & f2
  78. //)
  79. //{
  80. // return igl::collapse_edge(cost_and_placement, V, F, E, EMAP, EF, EI, Q, Qit, C, e, e1, e2, f1, f2);
  81. //}, __doc_igl_collapse_edge,
  82. //py::arg("cost_and_placement"), py::arg("V"), py::arg("F"), py::arg("E"), py::arg("EMAP"), py::arg("EF"), py::arg("EI"), py::arg("Q"), py::arg("Qit"), py::arg("C"), py::arg("e"), py::arg("e1"), py::arg("e2"), py::arg("f1"), py::arg("f2"));