py_remesh_self_intersections.cpp 1.0 KB

1234567891011121314151617181920212223242526272829
  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("remesh_self_intersections", []
  9. (
  10. const Eigen::MatrixXd& V,
  11. const Eigen::MatrixXi& F,
  12. const igl::copyleft::cgal::RemeshSelfIntersectionsParam& params,
  13. Eigen::MatrixXd& VV,
  14. Eigen::MatrixXi& FF,
  15. Eigen::MatrixXi& IF,
  16. Eigen::MatrixXi& J,
  17. Eigen::MatrixXi& IM
  18. )
  19. {
  20. assert_is_VectorX("J", J);
  21. assert_is_VectorX("IM", IM);
  22. Eigen::VectorXi Jt;
  23. Eigen::VectorXi IMt;
  24. igl::copyleft::cgal::remesh_self_intersections(V, F, params, VV, FF, IF, Jt, IMt);
  25. J = Jt;
  26. IM = IMt;
  27. }, __doc_igl_copyleft_cgal_remesh_self_intersections,
  28. py::arg("V"), py::arg("F"), py::arg("params"), py::arg("VV")
  29. , py::arg("FF"), py::arg("IF"), py::arg("J"), py::arg("IM"));