A basic implementation of the obj file format.
More...
#include <ObjIO.hpp>
A basic implementation of the obj file format.
Definition at line 53 of file ObjIO.hpp.
◆ ObjIO()
◆ ~ObjIO()
◆ parseMtlFile()
void lvr2::ObjIO::parseMtlFile |
( |
map< string, int > & |
matNames, |
|
|
vector< Material > & |
materials, |
|
|
vector< Texture > & |
textures, |
|
|
string |
mtlname |
|
) |
| |
|
private |
◆ read()
ModelPtr lvr2::ObjIO::read |
( |
string |
filename | ) |
|
Parse the given file and load supported elements.
- Parameters
-
filename | The file to read. |
Definition at line 170 of file ObjIO.cpp.
◆ save()
void lvr2::ObjIO::save |
( |
string |
filename | ) |
|
Writes the mesh to an obj file.
- Parameters
-
model | The model containing all mesh data |
filename | The file name to use |
Definition at line 337 of file ObjIO.cpp.
The documentation for this class was generated from the following files: