You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
py::class_<core::LandmarkMapper>(core_module, "LandmarkMapper", "Represents a mapping from one kind of landmarks to a different format(e.g.model vertices).")
.def("convert", &core::LandmarkMapper::convert, "Converts the given landmark name to the mapped name.", py::arg("landmark_name"))
96
96
.def("get_mappings", &core::LandmarkMapper::get_mappings, "Returns the mappings held by this mapper.")
97
97
.def("__repr__", [](const core::LandmarkMapper& m) {
98
-
return"<eos.core.LandmarkMapper with " + std::to_string(m.num_mappings()) + " mappings.>";
98
+
return"<eos.core.LandmarkMapper with " + std::to_string(m.num_mappings()) + " mappings>";
99
99
});
100
100
101
-
py::class_<core::Mesh>(core_module, "Mesh", "This class represents a 3D mesh consisting of vertices, vertex colour information and texture coordinates.")
101
+
py::class_<core::Mesh>(core_module, "Mesh",
102
+
"This class represents a 3D mesh consisting of vertices, vertex colour "
core_module.def("write_obj", &core::write_obj, "Writes the given Mesh to an obj file.", py::arg("mesh"), py::arg("filename"));
111
133
core_module.def("write_textured_obj", &core::write_textured_obj, "Writes the given Mesh to an obj file, including texture coordinates, and an mtl file containing a reference to the texture map in the form of <filename>.texture.png. That texture .png file has to be saved separately.", py::arg("mesh"), py::arg("filename"));
0 commit comments