// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2017 Sebastian Koch and Daniele Panozzo // // 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/. // COMPLETE BINDINGS ======================== m.def("readTGF", [] ( const std::string tgf_filename, Eigen::MatrixXd& C, Eigen::MatrixXi& E, Eigen::MatrixXi& P, Eigen::MatrixXi& BE, Eigen::MatrixXi& CE, Eigen::MatrixXi& PE ) { Eigen::VectorXi Pv; bool ret = igl::readTGF(tgf_filename, C, E, Pv, BE, CE, PE); P = Pv; return ret; }, __doc_igl_readTGF, py::arg("tgf_filename"), py::arg("C"), py::arg("E"), py::arg("P"), py::arg("BE"), py::arg("CE"), py::arg("PE")); m.def("readTGF", [] ( const std::string tgf_filename, Eigen::MatrixXd& C, Eigen::MatrixXi& E ) { return igl::readTGF(tgf_filename, C, E); }, __doc_igl_readTGF, py::arg("tgf_filename"), py::arg("C"), py::arg("E")); // INCOMPLETE BINDINGS ======================== //m.def("readTGF", [] //( // const std::string tgf_filename, // std::vector > & C, // std::vector > & E, // std::vector & P, // std::vector > & BE, // std::vector > & CE, // std::vector > & PE //) //{ // return igl::readTGF(tgf_filename, C, E, P, BE, CE, PE); //}, __doc_igl_readTGF, //py::arg("tgf_filename"), py::arg("C"), py::arg("E"), py::arg("P"), py::arg("BE"), py::arg("CE"), py::arg("PE"));