py_jet.cpp 877 B

12345678910111213141516171819202122232425262728293031
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2017 Sebastian Koch <s.koch@tu-berlin.de> and Daniele Panozzo <daniele.panozzo@gmail.com>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. m.def("jet", []
  9. (
  10. const Eigen::MatrixXd& Z,
  11. const bool normalize,
  12. Eigen::MatrixXd& C
  13. )
  14. {
  15. assert_is_VectorX("Z",Z);
  16. return igl::jet(Z,normalize,C);
  17. }, __doc_igl_jet,
  18. py::arg("Z"), py::arg("normalize"), py::arg("C"));
  19. m.def("jet", []
  20. (
  21. const Eigen::MatrixXd& Z,
  22. const double min_Z,
  23. const double max_Z,
  24. Eigen::MatrixXd& C
  25. )
  26. {
  27. assert_is_VectorX("Z",Z);
  28. return igl::jet(Z,min_Z,max_Z,C);
  29. }, __doc_igl_jet,
  30. py::arg("Z"), py::arg("min_Z"), py::arg("max_Z"), py::arg("C"));