TDME2 1.9.121
Public Member Functions | Private Attributes | List of all members
WFObjWriter Class Referencefinal

Wavefront object model writer. More...

#include <tdme/engine/fileio/models/WFObjWriter.h>

Collaboration diagram for WFObjWriter:
Collaboration graph

Public Member Functions

 WFObjWriter ()
 Public constructor. More...
 
void addVertex (const Vector3 &vertex)
 Adds a vertex. More...
 
void addFace (vector< int > faceVertexIndices)
 Adds a face. More...
 
void write (const string &pathName, const string &fileName)
 Writes this wave front object file. More...
 

Private Attributes

vector< Vector3vertices
 
vector< Vector3normals
 
vector< vector< array< int, 2 > > > faces
 

Detailed Description

Wavefront object model writer.

Author
andreas.drewke
Version
$Id$

Definition at line 20 of file WFObjWriter.h.

Constructor & Destructor Documentation

◆ WFObjWriter()

Public constructor.

Definition at line 26 of file WFObjWriter.cpp.

Member Function Documentation

◆ addFace()

void addFace ( vector< int >  faceVertexIndices)

Adds a face.

Parameters
faceVertexIndicesface vertex indices

Definition at line 34 of file WFObjWriter.cpp.

◆ addVertex()

void addVertex ( const Vector3 vertex)

Adds a vertex.

Parameters
vertexvertex

Definition at line 30 of file WFObjWriter.cpp.

◆ write()

void write ( const string &  pathName,
const string &  fileName 
)

Writes this wave front object file.

Parameters
pathNamepath name
fileNamefile name
Returns
model
Exceptions
tdme::os::filesystem::FileSystemException

Definition at line 59 of file WFObjWriter.cpp.

Member Data Documentation

◆ faces

vector<vector<array<int, 2> > > faces
private

Definition at line 25 of file WFObjWriter.h.

◆ normals

vector<Vector3> normals
private

Definition at line 24 of file WFObjWriter.h.

◆ vertices

vector<Vector3> vertices
private

Definition at line 23 of file WFObjWriter.h.


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