Public Member Functions | |
OBJFace (long mtl_index_in=-1) | |
unsigned long | num_vertices () const |
unsigned long | num_texcoords () const |
unsigned long | num_normals () const |
unsigned long | get_vertex_idx (unsigned long idx) const |
unsigned long | get_texcoord_idx (unsigned long idx) const |
unsigned long | get_normal_idx (unsigned long idx) const |
bool | has_texcoords () const |
bool | has_normals () const |
bool | add_vertex (long vertex, unsigned long total_vertices) |
bool | add_texcoord (long texcoord, unsigned long total_texcoords) |
bool | add_normal (long normal, unsigned long total_normals) |
bool | good () const |
Checks ot see if this face has consistent numbers of vertices, texture coordinates, and normals. | |
Private Member Functions | |
bool | process_index (long index, unsigned long max_val, vector< unsigned long > &index_list) |
Process a vertex position, texture coordinate or normal index to see if it is valid and, if so, to normalize it and add it to the given vector. | |
Private Attributes | |
long | mtl_index |
vector< unsigned long > | vertices |
vector< unsigned long > | texcoords |
vector< unsigned long > | normals |
Definition at line 256 of file objreader.C.
|
Definition at line 260 of file objreader.C. |
|
Definition at line 316 of file objreader.C. References normals, and process_index(). Referenced by OBJReaderImpl::read_f(). |
|
Definition at line 308 of file objreader.C. References process_index(), and texcoords. Referenced by OBJReaderImpl::read_f(). |
|
Definition at line 300 of file objreader.C. References process_index(), and vertices. Referenced by OBJReaderImpl::read_f(). |
|
Definition at line 272 of file objreader.C. References normals. Referenced by OBJReaderImpl::add_tri(). |
|
Definition at line 270 of file objreader.C. References texcoords. Referenced by OBJReaderImpl::add_tri(). |
|
Definition at line 268 of file objreader.C. References vertices. Referenced by OBJReaderImpl::add_tri(). |
|
Checks ot see if this face has consistent numbers of vertices, texture coordinates, and normals.
Definition at line 324 of file objreader.C. References normals, texcoords, and vertices. Referenced by OBJReaderImpl::read_f(). |
|
Definition at line 276 of file objreader.C. References num_normals(). Referenced by OBJReaderImpl::add_tri(). |
|
Definition at line 275 of file objreader.C. References num_texcoords(). Referenced by OBJReaderImpl::add_tri(). |
|
Definition at line 266 of file objreader.C. References normals. Referenced by has_normals(). |
|
Definition at line 265 of file objreader.C. References texcoords. Referenced by has_texcoords(). |
|
Definition at line 264 of file objreader.C. References vertices. |
|
Process a vertex position, texture coordinate or normal index to see if it is valid and, if so, to normalize it and add it to the given vector.
Definition at line 348 of file objreader.C. Referenced by add_normal(), add_texcoord(), and add_vertex(). |
|
Definition at line 291 of file objreader.C. |
|
Definition at line 295 of file objreader.C. Referenced by add_normal(), get_normal_idx(), good(), and num_normals(). |
|
Definition at line 294 of file objreader.C. Referenced by add_texcoord(), get_texcoord_idx(), good(), and num_texcoords(). |
|
Definition at line 293 of file objreader.C. Referenced by add_vertex(), get_vertex_idx(), good(), and num_vertices(). |