py_nrosy.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. m.def("nrosy", []
  2. (
  3. const Eigen::MatrixXd& V,
  4. const Eigen::MatrixXi& F,
  5. const Eigen::MatrixXi& b,
  6. const Eigen::MatrixXd& bc,
  7. const Eigen::MatrixXi& b_soft,
  8. const Eigen::MatrixXd& w_soft,
  9. const Eigen::MatrixXd& bc_soft,
  10. const int N,
  11. const double soft,
  12. Eigen::MatrixXd& R,
  13. Eigen::MatrixXd& S
  14. )
  15. {
  16. assert_is_VectorX("b",b);
  17. assert_is_VectorX("b_soft",b_soft);
  18. assert_is_VectorX("w_soft",w_soft);
  19. Eigen::VectorXd St;
  20. igl::comiso::nrosy(V,F,b,bc,b_soft,w_soft,bc_soft,N,soft,R,St);
  21. S = St;
  22. }, __doc_igl_comiso_nrosy,
  23. py::arg("V"), py::arg("F"), py::arg("b"), py::arg("bc"), py::arg("b_soft"), py::arg("w_soft"), py::arg("bc_soft"), py::arg("N"), py::arg("soft"), py::arg("R"), py::arg("S"));
  24. m.def("nrosy", []
  25. (
  26. const Eigen::MatrixXd& V,
  27. const Eigen::MatrixXi& F,
  28. const Eigen::MatrixXi& b,
  29. const Eigen::MatrixXd& bc,
  30. const int N,
  31. Eigen::MatrixXd& R,
  32. Eigen::MatrixXd& S
  33. )
  34. {
  35. assert_is_VectorX("b",b);
  36. Eigen::VectorXd St;
  37. igl::comiso::nrosy(V,F,b,bc,N,R,St);
  38. S = St;
  39. }, __doc_igl_comiso_nrosy,
  40. py::arg("V"), py::arg("F"), py::arg("b"), py::arg("bc"), py::arg("N"), py::arg("R"), py::arg("S"));