#include <graphic.hpp>
Definition at line 28 of file graphic.hpp.
anonymous enum |
Definition at line 31 of file graphic.hpp.
00031 { E_TRIANGLE, E_QUAD, E_UNSTRUCT };
graphic | ( | void | ) | [inline] |
Definition at line 40 of file graphic.hpp.
graphic | ( | int | nbv, | |
int | nbe, | |||
int | nbf, | |||
bool | hasnormal = false , |
|||
bool | hascolor = false , |
|||
int | type = E_TRIANGLE | |||
) | [inline] |
Definition at line 54 of file graphic.hpp.
References graphic< C, V >::colors, graphic< C, V >::E_QUAD, graphic< C, V >::edges, graphic< C, V >::faces, graphic< C, V >::normals, Seq< C, R >::resize(), and graphic< C, V >::vertices.
~graphic | ( | void | ) | [inline, virtual] |
Definition at line 63 of file graphic.hpp.
int edge_index | ( | unsigned | i | ) | const [inline] |
Definition at line 47 of file graphic.hpp.
References graphic< C, V >::edges.
00047 {return edges[i];}
int face_index | ( | unsigned | i | ) | const [inline] |
Definition at line 48 of file graphic.hpp.
References graphic< C, V >::faces.
00048 {return faces[i];}
unsigned nbe | ( | void | ) | const [inline] |
Definition at line 43 of file graphic.hpp.
References graphic< C, V >::edges, and Seq< C, R >::size().
00043 {return edges.size()/2;}
unsigned nbf | ( | ) | const [inline] |
unsigned nbv | ( | ) | const [inline] |
Definition at line 42 of file graphic.hpp.
References Seq< C, R >::size(), and graphic< C, V >::vertices.
00042 {return vertices.size()/3;}
bool orientation | ( | double * | q0, | |
double * | q1, | |||
double * | q2, | |||
double * | q3 | |||
) | [inherited] |
bool position | ( | double * | x, | |
double * | y, | |||
double * | z | |||
) | [inherited] |
C vertex_coord | ( | unsigned | i | ) | const [inline] |
Definition at line 46 of file graphic.hpp.
References graphic< C, V >::vertices.
00046 {return vertices[i];}
Definition at line 37 of file graphic.hpp.
Referenced by graphic< C, V >::graphic().
Definition at line 34 of file graphic.hpp.
Referenced by graphic< C, V >::edge_index(), graphic< C, V >::graphic(), and graphic< C, V >::nbe().
Definition at line 35 of file graphic.hpp.
Referenced by graphic< C, V >::face_index(), and graphic< C, V >::graphic().
unsigned m_nbf |
Definition at line 36 of file graphic.hpp.
Referenced by graphic< C, V >::nbf().
Definition at line 33 of file graphic.hpp.
Referenced by graphic< C, V >::graphic().
unsigned type |
Definition at line 30 of file graphic.hpp.
Definition at line 32 of file graphic.hpp.
Referenced by graphic< C, V >::graphic(), graphic< C, V >::nbv(), and graphic< C, V >::vertex_coord().