py_parula.cpp 451 B

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