ReTo  0.3.7
reto::ObjParser Class Reference

Class to read obj mesh files. More...

#include <ObjParser.h>

+ Collaboration diagram for reto::ObjParser:

Public Member Functions

 ObjParser (void)
 ObjParser constructor.
 
Model loadObj (const std::string &filename, bool calculateTangAndBi=false)
 Load new obj file. More...
 

Protected Member Functions

std::string loadFile (const std::string &filename)
 
std::vector< std::string > split (const std::string &s, char c)
 
bool isNumeric (const std::string &input)
 
bool isFloat (const std::string &myString)
 
std::vector< float > splitLineToFloats (std::string &line)
 
std::string trim (const std::string &str)
 
std::vector< int > splitFace (std::string &line)
 

Detailed Description

Class to read obj mesh files.

Definition at line 55 of file ObjParser.h.

Member Function Documentation

Model reto::ObjParser::loadObj ( const std::string &  filename,
bool  calculateTangAndBi = false 
)

Load new obj file.

Parameters
filenameWavefront OBJ file route.
calculateTangAndBiCalculate tangents and bitangents for object.
Returns
Model object with parsed values.

The documentation for this class was generated from the following file: