33 #ifndef __LIBMESH_LOADER_OBJ__
34 #define __LIBMESH_LOADER_OBJ__
38 #include "../../math/ugmath.h"
78 bool load_file(
const char* strFilename,
bool convertQuadsToTris =
true);
location name
Definition: checkpoint_util.lua:128
Definition: loader_obj.h:65
float m_fAlpha
Definition: loader_obj.h:70
ug::vector4 m_vDiffuse
Definition: loader_obj.h:69
std::string m_strTextureDiffuse
Definition: loader_obj.h:68
std::string m_strName
Definition: loader_obj.h:67
Definition: loader_obj.h:50
std::vector< int > m_vTriangleListTex
Definition: loader_obj.h:60
std::string m_strName
Definition: loader_obj.h:54
Object()
Definition: loader_obj.h:52
std::vector< int > m_vQuadListTex
Definition: loader_obj.h:59
std::vector< int > m_vTriangleList
Definition: loader_obj.h:58
int m_iMaterialIndex
Definition: loader_obj.h:56
std::string m_strMaterialName
Definition: loader_obj.h:55
std::vector< int > m_vQuadList
Definition: loader_obj.h:57
std::vector< int > m_vEdgeList
Definition: loader_obj.h:61
Definition: loader_obj.h:47
std::vector< Object * > ObjectVector
Definition: loader_obj.h:73
std::vector< Material > MaterialVector
Definition: loader_obj.h:75
ObjectIterator objects_end()
Definition: loader_obj.h:82
bool load_file(const char *strFilename, bool convertQuadsToTris=true)
Definition: loader_obj.cpp:138
const Object * get_object(int index) const
Definition: loader_obj.h:84
std::vector< ug::vector2 >::const_iterator uv_begin()
Definition: loader_obj.h:94
std::vector< ug::vector2 >::const_iterator uv_end()
Definition: loader_obj.h:95
MaterialVector m_vMaterials
Definition: loader_obj.h:103
std::vector< ug::vector3 >::const_iterator points_begin()
Definition: loader_obj.h:89
int num_materials() const
Definition: loader_obj.h:86
std::vector< ug::vector3 >::const_iterator points_end()
Definition: loader_obj.h:90
ObjectIterator objects_begin()
Definition: loader_obj.h:81
~LoaderObj()
Definition: loader_obj.cpp:126
int num_objects() const
Definition: loader_obj.h:83
std::vector< ug::vector3 > m_vPoints
Definition: loader_obj.h:105
ObjectVector m_vObjects
Definition: loader_obj.h:102
ObjectVector::iterator ObjectIterator
Definition: loader_obj.h:74
std::vector< ug::vector2 > m_vTexCoords
Definition: loader_obj.h:106
int num_points()
Definition: loader_obj.h:92
int get_material_index_by_name(const char *name) const
Definition: loader_obj.cpp:449
const Material & get_material(int index) const
Definition: loader_obj.h:87
const ug::vector2 * uv(int index) const
Definition: loader_obj.h:96
void clear()
Definition: loader_obj.cpp:131
int num_uvs()
Definition: loader_obj.h:97
const ug::vector3 * point(int index) const
Definition: loader_obj.h:91