py_reorient_facets_raycast.cpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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("reorient_facets_raycast", []
  9. (
  10. const Eigen::MatrixXd& V,
  11. const Eigen::MatrixXi& F,
  12. int rays_total,
  13. int rays_minimum,
  14. bool facet_wise,
  15. bool use_parity,
  16. bool is_verbose,
  17. Eigen::MatrixXi& I,
  18. Eigen::MatrixXi& C
  19. )
  20. {
  21. Eigen::VectorXi Iv;
  22. Eigen::VectorXi Cv;
  23. igl::embree::reorient_facets_raycast(V, F, rays_total, rays_minimum, facet_wise, use_parity, is_verbose, Iv, Cv);
  24. I = Iv;
  25. C = Cv;
  26. }, __doc_igl_embree_reorient_facets_raycast,
  27. py::arg("V"), py::arg("F"), py::arg("rays_total"), py::arg("rays_minimum"), py::arg("facet_wise"), py::arg("use_parity"), py::arg("is_verbose"), py::arg("I"), py::arg("C"));
  28. m.def("reorient_facets_raycast", []
  29. (
  30. const Eigen::MatrixXd& V,
  31. const Eigen::MatrixXi& F,
  32. Eigen::MatrixXi& FF,
  33. Eigen::MatrixXi& I
  34. )
  35. {
  36. Eigen::VectorXi Iv;
  37. igl::embree::reorient_facets_raycast(V, F, FF, Iv);
  38. I = Iv;
  39. }, __doc_igl_embree_reorient_facets_raycast,
  40. py::arg("V"), py::arg("F"), py::arg("FF"), py::arg("I"));