Browse Source

expose overloaded version of tetrahedralize in pyigl

Former-commit-id: 910482ca5089870152eda0df9985a50c0b994abd
Janis Born 7 years ago
parent
commit
816e51da05
1 changed files with 16 additions and 0 deletions
  1. 16 0
      python/py_igl/copyleft/tetgen/py_tetrahedralize.cpp

+ 16 - 0
python/py_igl/copyleft/tetgen/py_tetrahedralize.cpp

@@ -20,4 +20,20 @@ m.def("tetrahedralize", []
 }, __doc_igl_copyleft_tetgen_tetrahedralize,
 py::arg("V"), py::arg("F"), py::arg("switches"), py::arg("TV"), py::arg("TT"), py::arg("TF"));
 
+m.def("tetrahedralize", []
+(
+  const Eigen::MatrixXd& V,
+  const Eigen::MatrixXi& F,
+  const Eigen::MatrixXi& VM,
+  const Eigen::MatrixXi& FM,
+  const std::string switches,
+  Eigen::MatrixXd& TV,
+  Eigen::MatrixXi& TT,
+  Eigen::MatrixXi& TF,
+  Eigen::MatrixXi& TM
+)
+{
+  return igl::copyleft::tetgen::tetrahedralize(V, F, VM, FM, switches, TV, TT, TF, TM);
+}, __doc_igl_copyleft_tetgen_tetrahedralize,
+py::arg("V"), py::arg("F"), py::arg("VM"), py::arg("FM"), py::arg("switches"), py::arg("TV"), py::arg("TT"), py::arg("TF"), py::arg("TM"));