Revert "Revert "Marching Tetrahedra (#716)" (#924)" (#925)

This reverts commit 65aa93e9ef [formerly 47634615ce].

Former-commit-id: fd8d66156c
This commit is contained in:
Alec Jacobson
2018-10-14 19:17:01 -04:00
committed by GitHub
parent 65aa93e9ef
commit 1fe4eb190f
17 changed files with 462 additions and 467 deletions
+28
View File
@@ -0,0 +1,28 @@
// 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("marching_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 planev;
if (plane.size() != 0)
planev = plane;
Eigen::VectorXi Jv;
igl::marching_tets(V, T, planev, U, G, Jv, BC);
J = Jv;
}, __doc_igl_marching_tets,
py::arg("V"), py::arg("T"), py::arg("plane"), py::arg("U"), py::arg("G"), py::arg("J"), py::arg("BC"));