Commit d8d4ea00 authored by Patrik Huber's avatar Patrik Huber

Added write_obj python bindings

parent 2b74c5a7
......@@ -56,6 +56,7 @@ PYBIND11_PLUGIN(eos) {
* Bindings for the eos::core namespace:
* - LandmarkMapper
* - Mesh
* - write_obj()
*/
py::module core_module = eos_module.def_submodule("core", "Essential functions and classes to work with 3D face models and landmarks.");
py::class_<core::LandmarkMapper>(core_module, "LandmarkMapper", "Represents a mapping from one kind of landmarks to a different format(e.g.model vertices).")
......@@ -74,6 +75,8 @@ PYBIND11_PLUGIN(eos) {
.def_readwrite("texcoords", &core::Mesh::texcoords, "Texture coordinates")
;
core_module.def("write_obj", &core::write_obj, "Writes the given Mesh to an obj file.", py::arg("mesh"), py::arg("filename"));
/**
* Bindings for the eos::morphablemodel namespace:
* - PcaModel
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment