24 inline void print(){std::cout <<
"x : " << x <<
" y : " <<
y ;}
33 std::cout <<
"Print Facette: " << std::endl;
34 std::cout <<
"Sommet 1 :" << std::endl;
36 std::cout <<
"Sommet 2 :" << std::endl;
38 std::cout <<
"Sommet 3 :" << std::endl;
49 inline void print(){std::cout <<
"r : " << r <<
" g : " << g <<
" b : " << b <<
" a : " << a << std::endl;}
54 black={0x00,0x00,0x00,0xff},
cyan ={0x00,0xff,0xff,0xff},
55 red ={0xff,0x00,0x00,0xff},
magenta={0xff,0x00,0xff,0xff},
57 blue ={0x00,0x00,0xff,0xff},
white ={0xff,0xff,0xff,0xff};
63 inline bool operator==(
const rgb &v) {
if(r == v.
r && g == v.
g && b == v.
b)
return true;
else return false; }
64 inline void set(
unsigned char t){r=g=b=t;}
66 rgb(
unsigned char t){r=g=b=t;}
67 rgb(
unsigned char r,
unsigned char g ,
unsigned char b){this->r =
r;this->g=
g ;this->b=
b;}
68 inline void print(){std::cout <<
"r : " << r <<
" g : " << g <<
" b : " << b << std::endl;}
92 pos.
x = point.
x;pos.
y = point.
y;pos.
z = point.
z;pos.
w = 1.f;
93 norm.
x = point.
nx;norm.
y = point.
ny;norm.
z = point.
nz;
94 col.
x = point.
r;col.
y = point.
g;col.
z = point.
b;
95 u = point.
u;v = point.
v;
101 pos_originel.
x = point.
pos.
x;
102 pos_originel.
y = point.
pos.
y;
103 pos_originel.
z = point.
pos.
z;
106 u = point.
u;v = point.
v;
111 pos.
x = point.
P.
x;pos.
y = point.
P.
y;pos.
z = point.
P.
z;pos.
w = 1.f;
112 norm.
x = point.
N.
x;norm.
y = point.
N.
y;norm.
z = point.
N.
z;
115 inline void set(
float x,
float y,
float z) { pos.
x=x; pos.
y=y; pos.
z=z; pos.
w = 1.f;}
118 std::cout <<
"Print Sommet: " << std::endl;
119 std::cout <<
"Position :" << std::endl;
121 std::cout <<
"Position Originel :" << std::endl;
122 pos_originel.
print();
123 std::cout <<
"Normale :" << std::endl;
125 std::cout <<
"Intensiter :" << intensiter << std::endl;
137 std::cout <<
"Print PixelIN: " << std::endl;
138 std::cout <<
"Position: " << std::endl;
148 std::cout <<
"Print PixelOUT: " << std::endl;
149 std::cout <<
"Couleur: " << std::endl;
void print()
fixe la valeur du vecteur
Math::vecteur3d norm
Normale au sommet.
Sommet & operator=(const Sommet &point)
Math::vecteur3d col
Couleur au sommet.
Math::vecteur3d pos_originel
rgb(unsigned char r, unsigned char g, unsigned char b)
structure pour les vecteurs 4D (de taille 4 = 3D + composante w).
structure pour les vecteurs 3D (de taille 3).
void set(unsigned char t)
Sommet & operator=(const Ply::POINT_PLY &point)
structure de sommet (position+normale)
void set(float x, float y, float z)
bool operator==(const rgb &v)
Sommet & operator=(const Mesh::VERTEX &point)
Math::vecteur4d pos
Coordonnées du sommet.
structure utilis�e pour lire un fichier au format PLY
float intensiter
Couleur au sommet.
float u
Coordonnées de texture (pas de modéle disponible)