libcootapi
 
Loading...
Searching...
No Matches
g_triangle Class Reference

g_triangle is the container for the vertices of a triangles (indexing into the vertices vector). More...

#include <g_triangle.hh>

Inheritance diagram for g_triangle:
g_triangle_with_colour_index

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)
 

Detailed Description

g_triangle is the container for the vertices of a triangles (indexing into the vertices vector).


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