#include <jtriangle.hpp>
Public Methods | |
triangle () | |
triangle (const triangle &obj) | |
~triangle () | |
void | draw () |
void | drawmesh () |
void | drawnormals () |
void | tform () |
void | normalize () |
void | syncnormals () |
float | angle (vect3f &) |
float | distance (vect3f &) |
Public Attributes | |
vect3f | normal |
vect3f | center |
myVertexType | vert [3] |
|
Definition at line 118 of file jtriangle.hpp. 00118 {} |
|
Definition at line 119 of file jtriangle.hpp. |
|
Definition at line 127 of file jtriangle.hpp. 00127 {} |
|
Definition at line 240 of file jtriangle.hpp. 00241 { 00242 vect3f vtop = point - center; 00243 return acos((normal * vtop) / (!normal * !vtop)); 00244 } |
|
Definition at line 248 of file jtriangle.hpp. 00249 { 00250 vect3f vtop = point - center; 00251 return normal.comp(vtop); 00252 00253 } |
|
Definition at line 150 of file jtriangle.hpp. |
|
Definition at line 165 of file jtriangle.hpp. |
|
Definition at line 180 of file jtriangle.hpp. 00181 { 00182 myVertexType tempvert[3]; 00183 00184 glBegin(GL_LINES); 00185 00186 for (int i = 0; i < 3; i++){ 00187 tempvert[i] = vert[i]; 00188 tempvert[i].tform(); 00189 tempvert[i].draw(); 00190 tempvert[i].pos += tempvert[i].normal; 00191 tempvert[i].draw(); 00192 } 00193 00194 tempvert[0].pos = center; 00195 tempvert[0].normal = normal; 00196 tempvert[0].normal += tempvert[0].pos; 00197 mstack.tform(tempvert[0].pos); 00198 tempvert[0].draw(); 00199 mstack.tform(tempvert[0].normal); 00200 tempvert[0].pos = tempvert[0].normal; 00201 tempvert[0].draw(); 00202 glEnd(); 00203 } |
|
Definition at line 220 of file jtriangle.hpp. |
|
Definition at line 232 of file jtriangle.hpp. |
|
Definition at line 207 of file jtriangle.hpp. |
|
Definition at line 131 of file jtriangle.hpp. Referenced by triangle().
|
|
Definition at line 130 of file jtriangle.hpp. Referenced by triangle().
|
|
Definition at line 133 of file jtriangle.hpp. Referenced by triangle().
|