Files
igl/python/py_igl/copyleft/cgal/py_remesh_self_intersections.cpp
T
2017-10-08 16:02:47 -04:00

29 lines
1.0 KiB
C++

// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2017 Sebastian Koch <s.koch@tu-berlin.de> and Daniele Panozzo <daniele.panozzo@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at http://mozilla.org/MPL/2.0/.
m.def("remesh_self_intersections", []
(
const Eigen::MatrixXd& V,
const Eigen::MatrixXi& F,
const igl::copyleft::cgal::RemeshSelfIntersectionsParam& params,
Eigen::MatrixXd& VV,
Eigen::MatrixXi& FF,
Eigen::MatrixXi& IF,
Eigen::MatrixXi& J,
Eigen::MatrixXi& IM
)
{
assert_is_VectorX("J", J);
assert_is_VectorX("IM", IM);
Eigen::VectorXi Jt;
Eigen::VectorXi IMt;
igl::copyleft::cgal::remesh_self_intersections(V, F, params, VV, FF, IF, Jt, IMt);
J = Jt;
IM = IMt;
}, __doc_igl_copyleft_cgal_remesh_self_intersections,
py::arg("V"), py::arg("F"), py::arg("params"), py::arg("VV")
, py::arg("FF"), py::arg("IF"), py::arg("J"), py::arg("IM"));