py_jet.cpp 462 B

1234567891011121314151617181920212223
  1. m.def("jet", []
  2. (
  3. const Eigen::MatrixXd& Z,
  4. const bool normalize,
  5. Eigen::MatrixXd& C
  6. )
  7. {
  8. assert_is_VectorXd("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::VectorXd& Z,
  15. const double min_Z,
  16. const double max_Z,
  17. Eigen::MatrixXd& C
  18. )
  19. {
  20. return igl::jet(Z,min_Z,max_Z,C);
  21. }, __doc_igl_jet,
  22. py::arg("Z"), py::arg("min_Z"), py::arg("max_Z"), py::arg("C"));