diff --git a/python/python_shared.cpp b/python/python_shared.cpp index e541d5f67..9b110b432 100644 --- a/python/python_shared.cpp +++ b/python/python_shared.cpp @@ -14,9 +14,17 @@ extern void python_export_igl_viewer(py::module &); extern void python_export_igl_comiso(py::module &); #endif -PYTHON_PLUGIN(pyigl) { - py::init_threading(); - py::module m("pyigl", "Python wrappers for libigl"); +PYBIND11_PLUGIN(pyigl) { + py::module m("pyigl", R"pyigldoc( + Python wrappers for libigl + -------------------------- + + .. currentmodule:: pyigl + + .. autosummary:: + :toctree: _generate + + )pyigldoc"); python_export_vector(m); python_export_igl(m); diff --git a/python/python_shared.h b/python/python_shared.h index 84dd86c46..865ab71eb 100644 --- a/python/python_shared.h +++ b/python/python_shared.h @@ -1,11 +1,11 @@ #pragma once -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include "py_doc.h" @@ -83,4 +83,4 @@ void assert_is_Matrix4(const std::string name, const Eigen::PlainObjectBase