22 lines
523 B
C++
22 lines
523 B
C++
m.def("slice_tets", []
|
|
(
|
|
const Eigen::MatrixXd& V,
|
|
const Eigen::MatrixXi& T,
|
|
const Eigen::MatrixXd& plane,
|
|
Eigen::MatrixXd& U,
|
|
Eigen::MatrixXi& G,
|
|
Eigen::MatrixXi& J,
|
|
Eigen::SparseMatrix<double> & BC
|
|
)
|
|
{
|
|
assert_is_VectorX("plane", plane);
|
|
Eigen::VectorXd pl;
|
|
if (plane.size() != 0)
|
|
pl = plane;
|
|
Eigen::VectorXi Jv;
|
|
igl::slice_tets(V, T, pl, U, G, Jv, BC);
|
|
J = Jv;
|
|
}, __doc_igl_slice_tets,
|
|
py::arg("V"), py::arg("T"), py::arg("plane"), py::arg("U"), py::arg("G"), py::arg("J"), py::arg("BC"));
|
|
|