@@ -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")
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user