py_jet.cpp 489 B

123456789101112131415161718192021222324
  1. m.def("jet", []
  2. (
  3. const Eigen::MatrixXd& Z,
  4. const bool normalize,
  5. Eigen::MatrixXd& C
  6. )
  7. {
  8. assert_is_VectorX("Z",Z);
  9. return igl::jet(Z,normalize,C);
  10. }, __doc_igl_jet,
  11. py::arg("Z"), py::arg("normalize"), py::arg("C"));
  12. m.def("jet", []
  13. (
  14. const Eigen::MatrixXd& Z,
  15. const double min_Z,
  16. const double max_Z,
  17. Eigen::MatrixXd& C
  18. )
  19. {
  20. assert_is_VectorX("Z",Z);
  21. return igl::jet(Z,min_Z,max_Z,C);
  22. }, __doc_igl_jet,
  23. py::arg("Z"), py::arg("min_Z"), py::arg("max_Z"), py::arg("C"));