|
Mesh_analyzer
|
#include <tiny_obj_loader.h>
Public Member Functions | |
| bool | ParseFromFile (const std::string &filename, const ObjReaderConfig &config=ObjReaderConfig()) |
| bool | ParseFromString (const std::string &obj_text, const std::string &mtl_text, const ObjReaderConfig &config=ObjReaderConfig()) |
| bool | Valid () const |
| const attrib_t & | GetAttrib () const |
| const std::vector< shape_t > & | GetShapes () const |
| const std::vector< material_t > & | GetMaterials () const |
| const std::string & | Warning () const |
| const std::string & | Error () const |
Wavefront .obj reader class(v2 API)
|
inline |
Error message(filled when Load or Parse failed)
| bool tinyobj::ObjReader::ParseFromFile | ( | const std::string & | filename, |
| const ObjReaderConfig & | config = ObjReaderConfig() ) |
Load .obj and .mtl from a file.
| [in] | filename | wavefront .obj filename |
| [in] | config | Reader configuration |
| bool tinyobj::ObjReader::ParseFromString | ( | const std::string & | obj_text, |
| const std::string & | mtl_text, | ||
| const ObjReaderConfig & | config = ObjReaderConfig() ) |
Parse .obj from a text string. Need to supply .mtl text string by mtl_text. This function ignores mtllib line in .obj text.
| [in] | obj_text | wavefront .obj filename |
| [in] | mtl_text | wavefront .mtl filename |
| [in] | config | Reader configuration |
|
inline |
.obj was loaded or parsed correctly.
|
inline |
Warning message(may be filled after Load or Parse)