#include <tgModel.h>
Public Member Functions | |
void | add (tgVertex v) |
void | add (tgFace f) |
virtual void | Clear () |
clears data of model (m_vertices and m_faces) | |
virtual void | ComputeBoundingSphere () |
computes bounding sphere which contains all vertices | |
virtual void | ComputeFaceNormals () |
computes normals of vertices of m_faces, m_polygons, m_quadstrips | |
virtual void | ComputeNormals () |
Compute normals of vertices using cross product of faces. | |
virtual void | DrawFaces () const |
draws triangles and quadrangles given by m_faces | |
virtual void | DrawLines (const vec3 &color=vec3(1, 0, 0)) const |
draws lines given by m_lines | |
virtual void | DrawNormals (float normal_length) const |
draws normals of vertices in m_faces | |
virtual void | DrawPoints (const vec3 &color=vec3(1, 0, 0)) const |
draws points given by m_points | |
tgFace | getFace (unsigned int i) |
unsigned | getFaceSize () |
tgVertex | getVertex (unsigned int i) |
unsigned | getVertexSize () |
virtual void | Print () const |
Prints infos of model to console. | |
Public Attributes | |
BoundingSphere | m_bs |
bounding sphere | |
std::vector< tgFace > | m_faces |
list of faces | |
std::vector< tgLine > | m_lines |
list of lines | |
std::vector< vec3 > | m_points |
list of points | |
std::vector< tgVertex > | m_vertices |
list of vertices |
void TomGine::tgModel::add | ( | tgVertex | v | ) | [inline] |
void TomGine::tgModel::add | ( | tgFace | f | ) | [inline] |
void tgModel::Clear | ( | ) | [virtual] |
clears data of model (m_vertices and m_faces)
Definition at line 180 of file tgModel.cpp.
void tgModel::ComputeBoundingSphere | ( | ) | [virtual] |
computes bounding sphere which contains all vertices
Definition at line 132 of file tgModel.cpp.
void tgModel::ComputeFaceNormals | ( | ) | [virtual] |
computes normals of vertices of m_faces, m_polygons, m_quadstrips
Definition at line 110 of file tgModel.cpp.
void tgModel::ComputeNormals | ( | ) | [virtual] |
Compute normals of vertices using cross product of faces.
Definition at line 84 of file tgModel.cpp.
void tgModel::DrawFaces | ( | ) | const [virtual] |
draws triangles and quadrangles given by m_faces
Definition at line 8 of file tgModel.cpp.
void tgModel::DrawLines | ( | const vec3 & | color = vec3(1,0,0) | ) | const [virtual] |
draws lines given by m_lines
Definition at line 35 of file tgModel.cpp.
void tgModel::DrawNormals | ( | float | normal_length | ) | const [virtual] |
draws normals of vertices in m_faces
Definition at line 63 of file tgModel.cpp.
void tgModel::DrawPoints | ( | const vec3 & | color = vec3(1,0,0) | ) | const [virtual] |
draws points given by m_points
Definition at line 50 of file tgModel.cpp.
tgFace TomGine::tgModel::getFace | ( | unsigned int | i | ) | [inline] |
unsigned TomGine::tgModel::getFaceSize | ( | ) | [inline] |
tgVertex TomGine::tgModel::getVertex | ( | unsigned int | i | ) | [inline] |
unsigned TomGine::tgModel::getVertexSize | ( | ) | [inline] |
void tgModel::Print | ( | ) | const [virtual] |
Prints infos of model to console.
Reimplemented in Tracking::TrackerModel.
Definition at line 190 of file tgModel.cpp.