Added PNG module and tutorial 607

Former-commit-id: c0e04685e2
This commit is contained in:
Sebastian Koch
2016-06-17 18:51:38 +02:00
parent 54d4e1a9e4
commit b275c3672a
11 changed files with 179 additions and 1 deletions
+4 -1
View File
@@ -63,6 +63,9 @@ def map_parameter_types(name, cpp_type, parsed_types, errors, enum_types):
if cpp_type.startswith("MatY"):
result.append("Eigen::SparseMatrix<double>&")
skip_parsing = True
if cpp_type.startswith("Eigen::Matrix<unsigned char, Eigen::Dynamic, Eigen::Dynamic>"):
result.append("Eigen::Matrix<unsigned char, Eigen::Dynamic, Eigen::Dynamic>")
skip_parsing = True
if cpp_type == "std::vector<std::vector<Scalar> > &":
result.append("std::vector<std::vector<double> > &")
skip_parsing = True
@@ -298,4 +301,4 @@ if __name__ == '__main__':
for k in l:
fs.write("%s: %i \n" %(k, len(files[k])))
fs.writelines("\n".join(files[k]))
fs.write("\n\n\n")
fs.write("\n\n\n")
+8
View File
@@ -30,6 +30,10 @@ extern void python_export_igl_triangle(py::module &);
extern void python_export_igl_cgal(py::module &);
#endif
#ifdef PY_PNG
extern void python_export_igl_png(py::module &);
#endif
PYBIND11_PLUGIN(pyigl) {
py::module m("pyigl", R"pyigldoc(
Python wrappers for libigl
@@ -74,5 +78,9 @@ PYBIND11_PLUGIN(pyigl) {
python_export_igl_cgal(m);
#endif
#ifdef PY_PNG
python_export_igl_png(m);
#endif
return m.ptr();
}