py_per_face_normals.cpp 735 B

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