g_triangle is the container for the vertices of a triangles (indexing into the vertices vector). More...
#include <g_triangle.hh>
Public Member Functions | |
| g_triangle (const unsigned int &a0, const unsigned int &a1, const unsigned int &a2) | |
| constructor | |
| unsigned int & | operator[] (const unsigned int &i) |
| int colour_index; | |
| const unsigned int & | operator[] (const unsigned int &i) const |
| void | rebase (const unsigned int &idx_base) |
use rebase() when adding more vertices and triangles into a mesh. | |
| void | reverse_winding () |
| in-place reverse the winding of this triangle | |
Public Attributes | |
| unsigned int | point_id [3] |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const g_triangle &t) |
g_triangle is the container for the vertices of a triangles (indexing into the vertices vector).