py_miq.cpp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. m.def("miq", []
  2. (
  3. const Eigen::MatrixXd &V,
  4. const Eigen::MatrixXi &F,
  5. const Eigen::MatrixXd &PD1,
  6. const Eigen::MatrixXd &PD2,
  7. Eigen::MatrixXd &UV,
  8. Eigen::MatrixXi &FUV,
  9. double scale,
  10. double stiffness,
  11. bool direct_round,
  12. int iter,
  13. int local_iter,
  14. bool DoRound,bool SingularityRound
  15. // std::vector<int> round_vertices,
  16. // std::vector<std::vector<int> > hard_features
  17. )
  18. {
  19. std::vector<int> round_vertices;
  20. std::vector<std::vector<int> > hard_features;
  21. igl::copyleft::comiso::miq(V,F,PD1,PD2,UV,FUV,scale,stiffness,direct_round,iter,local_iter,DoRound, SingularityRound, round_vertices, hard_features);
  22. }, __doc_igl_comiso_miq,
  23. py::arg("V"), py::arg("F"), py::arg("PD1"), py::arg("PD2"), py::arg("UV"), py::arg("FUV"), py::arg("scale") = 30.0, py::arg("stiffness") = 5.0, py::arg("direct_round") = false, py::arg("iter") = 5, py::arg("local_iter") = 5, py::arg("DoRound") = true, py::arg("SingularityRound") = true
  24. // , py::arg("round_vertices"), py::arg("hard_features")
  25. );
  26. m.def("miq", []
  27. (
  28. const Eigen::MatrixXd &V,
  29. const Eigen::MatrixXi &F,
  30. const Eigen::MatrixXd &PD1_combed,
  31. const Eigen::MatrixXd &PD2_combed,
  32. const Eigen::MatrixXi &MMatch,
  33. const Eigen::MatrixXi &Singular,
  34. const Eigen::MatrixXi &Seams,
  35. Eigen::MatrixXd &UV,
  36. Eigen::MatrixXi &FUV,
  37. double GradientSize,
  38. double Stiffness,
  39. bool DirectRound,
  40. int iter,
  41. int localIter, bool DoRound, bool SingularityRound
  42. // std::vector<int> roundVertices,
  43. // std::vector<std::vector<int> > hardFeatures
  44. )
  45. {
  46. assert_is_VectorX("Singular",Singular);
  47. std::vector<int> roundVertices;
  48. std::vector<std::vector<int> > hardFeatures;
  49. igl::copyleft::comiso::miq(V,F,PD1_combed,PD2_combed,MMatch,Singular,Seams,UV,FUV,GradientSize,Stiffness,DirectRound,iter,localIter,DoRound, SingularityRound, roundVertices, hardFeatures);
  50. }, __doc_igl_comiso_miq,
  51. py::arg("V"), py::arg("F"), py::arg("PD1_combed"), py::arg("PD2_combed"),
  52. py::arg("MMatch"), py::arg("Singular"), py::arg("Seams"),
  53. py::arg("UV"), py::arg("FUV"), py::arg("GradientSize") = 30.0, py::arg("Stiffness") = 5.0, py::arg("DirectRound") = false, py::arg("iter") = 5, py::arg("localIter") = 5, py::arg("DoRound") = true, py::arg("SingularityRound") = true
  54. // , py::arg("roundVertices"), py::arg("hardFeatures")
  55. );