py_point_mesh_squared_distance.cpp 817 B

12345678910111213141516171819202122
  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("point_mesh_squared_distance", []
  9. (
  10. const Eigen::MatrixXd& P,
  11. const Eigen::MatrixXd& V,
  12. const Eigen::MatrixXi& Ele,
  13. Eigen::MatrixXd& sqrD,
  14. Eigen::MatrixXi& I,
  15. Eigen::MatrixXd& C
  16. )
  17. {
  18. // assert_is_VectorX("I",I);
  19. return igl::point_mesh_squared_distance(P, V, Ele, sqrD, I, C);
  20. }, __doc_igl_point_mesh_squared_distance,
  21. py::arg("P"), py::arg("V"), py::arg("Ele"), py::arg("sqrD"), py::arg("I"), py::arg("C"));