py_per_face_normals.cpp 763 B

12345678910111213141516171819202122232425262728293031323334
  1. m.def("per_face_normals", []
  2. (
  3. const Eigen::MatrixXd& V,
  4. const Eigen::MatrixXi& F,
  5. const Eigen::MatrixXd& Z,
  6. Eigen::MatrixXd& N
  7. )
  8. {
  9. assert_is_VectorX("Z",Z);
  10. return igl::per_face_normals(V,F,Z,N);
  11. }, __doc_igl_per_face_normals,
  12. py::arg("V"), py::arg("F"), py::arg("Z"), py::arg("N"));
  13. m.def("per_face_normals", []
  14. (
  15. const Eigen::MatrixXd& V,
  16. const Eigen::MatrixXi& F,
  17. Eigen::MatrixXd& N
  18. )
  19. {
  20. return igl::per_face_normals(V,F,N);
  21. }, __doc_igl_per_face_normals,
  22. py::arg("V"), py::arg("F"), py::arg("N"));
  23. m.def("per_face_normals_stable", []
  24. (
  25. const Eigen::MatrixXd& V,
  26. const Eigen::MatrixXi& F,
  27. Eigen::MatrixXd& N
  28. )
  29. {
  30. return igl::per_face_normals_stable(V,F,N);
  31. }, __doc_igl_per_face_normals,
  32. py::arg("V"), py::arg("F"), py::arg("N"));