py_per_vertex_normals.cpp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. py::enum_<igl::PerVertexNormalsWeightingType>(m, "PerVertexNormalsWeightingType")
  2. .value("PER_VERTEX_NORMALS_WEIGHTING_TYPE_UNIFORM", igl::PER_VERTEX_NORMALS_WEIGHTING_TYPE_UNIFORM)
  3. .value("PER_VERTEX_NORMALS_WEIGHTING_TYPE_AREA", igl::PER_VERTEX_NORMALS_WEIGHTING_TYPE_AREA)
  4. .value("PER_VERTEX_NORMALS_WEIGHTING_TYPE_ANGLE", igl::PER_VERTEX_NORMALS_WEIGHTING_TYPE_ANGLE)
  5. .value("PER_VERTEX_NORMALS_WEIGHTING_TYPE_DEFAULT", igl::PER_VERTEX_NORMALS_WEIGHTING_TYPE_DEFAULT)
  6. .value("NUM_PER_VERTEX_NORMALS_WEIGHTING_TYPE", igl::NUM_PER_VERTEX_NORMALS_WEIGHTING_TYPE)
  7. .export_values();
  8. m.def("per_vertex_normals", []
  9. (
  10. const Eigen::MatrixXd& V,
  11. const Eigen::MatrixXi& F,
  12. const igl::PerVertexNormalsWeightingType weighting,
  13. Eigen::MatrixXd& N
  14. )
  15. {
  16. return igl::per_vertex_normals(V,F,weighting,N);
  17. }, __doc_igl_per_vertex_normals,
  18. py::arg("V"), py::arg("F"), py::arg("weighting"), py::arg("N"));
  19. m.def("per_vertex_normals", []
  20. (
  21. const Eigen::MatrixXd& V,
  22. const Eigen::MatrixXi& F,
  23. Eigen::MatrixXd& N
  24. )
  25. {
  26. return igl::per_vertex_normals(V,F,N);
  27. }, __doc_igl_per_vertex_normals,
  28. py::arg("V"), py::arg("F"), py::arg("N"));
  29. m.def("per_vertex_normals", []
  30. (
  31. const Eigen::MatrixXd& V,
  32. const Eigen::MatrixXi& F,
  33. const igl::PerVertexNormalsWeightingType weighting,
  34. const Eigen::MatrixXd& FN,
  35. Eigen::MatrixXd& N
  36. )
  37. {
  38. return igl::per_vertex_normals(V,F,weighting,FN,N);
  39. }, __doc_igl_per_vertex_normals,
  40. py::arg("V"), py::arg("F"), py::arg("weighting"), py::arg("FN"), py::arg("N"));
  41. m.def("per_vertex_normals", []
  42. (
  43. const Eigen::MatrixXd& V,
  44. const Eigen::MatrixXi& F,
  45. const Eigen::MatrixXd& FN,
  46. Eigen::MatrixXd& N
  47. )
  48. {
  49. return igl::per_vertex_normals(V,F,FN,N);
  50. }, __doc_igl_per_vertex_normals,
  51. py::arg("V"), py::arg("F"), py::arg("FN"), py::arg("N"));