Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18bb83f commit 7337053Copy full SHA for 7337053
python/bindings.cc
@@ -35,10 +35,13 @@ PYBIND11_MODULE(tinyobjloader, tobj_module)
35
tobj_module.doc() = "Python bindings for TinyObjLoader.";
36
37
// register struct
38
+ // py::init<>() for default constructor
39
py::class_<attrib_t>(tobj_module, "Attrib")
40
.def(py::init<>());
- py::class_<shape_t>(tobj_module, "Shape");
41
- py::class_<material_t>(tobj_module, "Material");
+ py::class_<shape_t>(tobj_module, "Shape")
42
+ .def(py::init<>());
43
+ py::class_<material_t>(tobj_module, "Material")
44
45
46
tobj_module.def("load_obj", &load_obj, "Load wavefront .obj file.");
47
tobj_module.def("load_mtl", &load_mtl, "Load wavefront material file.");
python/main.cpp
0 commit comments