py_per_edge_normals.cpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. py::enum_<igl::PerEdgeNormalsWeightingType>(m, "PerEdgeNormalsWeightingType")
  2. .value("PER_EDGE_NORMALS_WEIGHTING_TYPE_UNIFORM", igl::PER_EDGE_NORMALS_WEIGHTING_TYPE_UNIFORM)
  3. .value("PER_EDGE_NORMALS_WEIGHTING_TYPE_AREA", igl::PER_EDGE_NORMALS_WEIGHTING_TYPE_AREA)
  4. .value("PER_EDGE_NORMALS_WEIGHTING_TYPE_DEFAULT", igl::PER_EDGE_NORMALS_WEIGHTING_TYPE_DEFAULT)
  5. .value("NUM_PER_EDGE_NORMALS_WEIGHTING_TYPE", igl::NUM_PER_EDGE_NORMALS_WEIGHTING_TYPE)
  6. .export_values();
  7. m.def("per_edge_normals", []
  8. (
  9. const Eigen::MatrixXd& V,
  10. const Eigen::MatrixXi& F,
  11. const igl::PerEdgeNormalsWeightingType weight,
  12. const Eigen::MatrixXd& FN,
  13. Eigen::MatrixXd& N,
  14. Eigen::MatrixXi& E,
  15. Eigen::MatrixXi& EMAP
  16. )
  17. {
  18. return igl::per_edge_normals(V, F, weight, FN, N, E, EMAP);
  19. }, __doc_igl_per_edge_normals,
  20. py::arg("V"), py::arg("F"), py::arg("weight"), py::arg("FN"), py::arg("N"), py::arg("E"), py::arg("EMAP"));
  21. m.def("per_edge_normals", []
  22. (
  23. const Eigen::MatrixXd& V,
  24. const Eigen::MatrixXi& F,
  25. const igl::PerEdgeNormalsWeightingType weight,
  26. Eigen::MatrixXd& N,
  27. Eigen::MatrixXi& E,
  28. Eigen::MatrixXi& EMAP
  29. )
  30. {
  31. return igl::per_edge_normals(V, F, weight, N, E, EMAP);
  32. }, __doc_igl_per_edge_normals,
  33. py::arg("V"), py::arg("F"), py::arg("weight"), py::arg("N"), py::arg("E"), py::arg("EMAP"));
  34. m.def("per_edge_normals", []
  35. (
  36. const Eigen::MatrixXd& V,
  37. const Eigen::MatrixXi& F,
  38. Eigen::MatrixXd& N,
  39. Eigen::MatrixXi& E,
  40. Eigen::MatrixXi& EMAP
  41. )
  42. {
  43. return igl::per_edge_normals(V, F, N, E, EMAP);
  44. }, __doc_igl_per_edge_normals,
  45. py::arg("V"), py::arg("F"), py::arg("N"), py::arg("E"), py::arg("EMAP"));